vo_opengl: move minor helper to common code

The generic image format code should cary most of the "knowledge" about
image formats.
This commit is contained in:
wm4
2015-03-09 22:47:33 +01:00
parent b9307b7175
commit cfa44f4e90
3 changed files with 6 additions and 10 deletions

View File

@@ -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;
}