video/img_format: make mp_imgfmt_desc_get_num_comps input param const
This commit is contained in:
1 parent
3f1b23abd0
commit
bc5684c2cf
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -553,7 +553,7 @@ static bool get_native_desc(int mpfmt, struct mp_imgfmt_desc *desc)
|
||||
return true;
|
||||
}
|
||||
|
||||
int mp_imgfmt_desc_get_num_comps(struct mp_imgfmt_desc *desc)
|
||||
int mp_imgfmt_desc_get_num_comps(const struct mp_imgfmt_desc *desc)
|
||||
{
|
||||
int flags = desc->flags;
|
||||
if (!(flags & MP_IMGFLAG_COLOR_MASK))
|
||||
|
||||
+1
-1
@@ -147,7 +147,7 @@ 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);
|
||||
int mp_imgfmt_desc_get_num_comps(const 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
|
||||
|
||||
Reference in new issue
Block a user