From cfa44f4e9077d712be5c1c3cf9a4d7bbe79e605e Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 9 Mar 2015 22:47:33 +0100 Subject: vo_opengl: move minor helper to common code The generic image format code should cary most of the "knowledge" about image formats. --- video/img_format.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'video/img_format.c') diff --git a/video/img_format.c b/video/img_format.c index f717ff9c1e..5451dd9ad1 100644 --- a/video/img_format.c +++ b/video/img_format.c @@ -249,6 +249,9 @@ struct mp_imgfmt_desc mp_imgfmt_get_desc(int mpfmt) desc.plane_bits = 8; // usually restricted to 8 bit; may change } + if (desc.chroma_xs || desc.chroma_ys) + desc.flags |= MP_IMGFLAG_SUBSAMPLED; + return desc; } -- cgit v1.2.3