#pragma once #include "mtmd.h" #include #include // !!! Internal header, to be used by mtmd and its unit tests only !!! #define MTMD_INTERNAL_HEADER // bitmap is null for text parts struct mtmd_internal_part { std::string text; const mtmd_bitmap * bitmap; // only used for text parts bool parse_special = false; }; // [QWEN_VIDEO] merged parts are erased from `parts`, so one group always maps to one part std::vector> mtmd_group_mergeable_bitmaps(std::vector & parts, int n_merge); struct mtmd_image_preprocessor; // mtmd_get_video_config() for a given template, without a context mtmd_video_config mtmd_video_config_init(mtmd_video_template tmpl, const mtmd_image_preprocessor * preproc, int32_t src_width, int32_t src_height, int32_t src_n_frames, float src_fps);