From 600351a30daf94d3015fb149321de2ed870fe0c0 Mon Sep 17 00:00:00 2001 From: Haihao Xiang Date: Wed, 18 Mar 2020 10:48:43 +0800 Subject: [PATCH] mediatype-video-raw: add Y212_LE and Y212_BE --- markdown/additional/design/mediatype-video-raw.md | 44 +++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/markdown/additional/design/mediatype-video-raw.md b/markdown/additional/design/mediatype-video-raw.md index 15c4101..e2aa34d 100644 --- a/markdown/additional/design/mediatype-video-raw.md +++ b/markdown/additional/design/mediatype-video-raw.md @@ -1392,3 +1392,47 @@ Image default size: RU4 (width * 2) * RU2 (height) * 3 / 2 ``` + +- **"Y212\_LE"** Packed 4:2:2 YUV, 2 bytes per channel where color value is stored in MSB 12 bits (Y-U-Y-V), LE + +``` + Component 0: Y + depth: 12 LE + pstride: 4 + default offset: 0 + + Component 1: U + depth: 12 LE + pstride: 8 + offset: 2 + + Component 2: V + depth 12 LE + pstride: 8 + offset: 6 + Image + default rstride: RU8 (width * 4) + default size: rstride (image) * height +``` + +- **"Y212\_BE"** Packed 4:2:2 YUV, 2 bytes per channel where color value is stored in MSB 12 bits (Y-U-Y-V), BE + +``` + Component 0: Y + depth: 12 BE + pstride: 4 + default offset: 0 + + Component 1: U + depth: 12 BE + pstride: 8 + offset: 2 + + Component 2: V + depth 12 BE + pstride: 8 + offset: 6 + Image + default rstride: RU8 (width * 4) + default size: rstride (image) * height +``` -- 2.7.4