mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user