diff options
Diffstat (limited to 'video/img_format.h')
-rw-r--r-- | video/img_format.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/video/img_format.h b/video/img_format.h index 96ac78f66e..ebdbd66e29 100644 --- a/video/img_format.h +++ b/video/img_format.h @@ -151,6 +151,9 @@ struct mp_imgfmt_desc { struct mp_imgfmt_desc mp_imgfmt_get_desc(int imgfmt); +// Return the number of component types, or 0 if unknown. +int mp_imgfmt_desc_get_num_comps(struct mp_imgfmt_desc *desc); + // For MP_IMGFLAG_PACKED_SS_YUV formats (packed sub-sampled YUV): positions of // further luma samples. luma_offsets must be an array of align_x size, and the // function will return the offset (like in mp_imgfmt_comp_desc.offset) of each |