#pragma once #include #ifdef CAMU_HAVE_FFMPEG #include AL_IGNORE_WARNING("-Wswitch") AL_IGNORE_WARNING("-Wunused-parameter") // PL_LIBAV_IMPLEMENTATION defined in queue_libplacebo.c. #include AL_IGNORE_WARNING_END #endif #ifdef CAMU_HAVE_SUBTITLES #include #endif #include "../buffer/frame_queue.h" struct camu_frame_queue_lp { struct camu_frame_queue q; pl_gpu gpu; pl_queue queue; struct pl_queue_params params; #ifdef CAMU_HAVE_FFMPEG bool copy_frame_fallback; AVFrame *swframe; #endif #ifdef CAMU_HAVE_SUBTITLES ASS_Library *ass; ASS_Renderer *ass_renderer; ASS_Track *ass_track; struct nn_mutex subtitle_lock; struct camu_overlay *last_subtitle; array(struct camu_overlay *) subtitles; bool has_subtitles; #endif }; struct camu_frame_queue *camu_frame_queue_lp_create(void);