VideoPixelFormat [1] amalgamates a few things but in particular
it's now bundling bit depth and planarity/buffer formats, i.e.
PIXEL_FORMAT_YUV420P9 = 16,
PIXEL_FORMAT_YUV420P10 = 17,
PIXEL_FORMAT_YUV422P9 = 18,
PIXEL_FORMAT_YUV422P10 = 19,
PIXEL_FORMAT_YUV444P9 = 20,
PIXEL_FORMAT_YUV444P10 = 21,
PIXEL_FORMAT_YUV420P12 = 22,
PIXEL_FORMAT_YUV422P12 = 23,
PIXEL_FORMAT_YUV444P12 = 24,
are equivalent to
PIXEL_FORMAT_I420 and
PIXEL_FORMAT_I422 / PIXEL_FORMAT_YV16 (these are synonyms)
PIXEL_FORMAT_YV24
and then we have PIXEL_FORMAT_Y16 which is PIXEL_FORMAT_Y8
with a different bit depth.
--> Consider deprecating the bit-depth versions and instead
carrying bit depth in the VideoFrame. Note that passing bit
depth to the VF methods might touch a bazillion places, we'll
see.
[1] https://cs.chromium.org/chromium/src/media/base/video_types.h?type=cs&sq=package:chromium&l=19
Comment 1 by mcasas@chromium.org
, Dec 15 2017