From 1b84e51251f3a6c3a8046ff50ebe189c41eb6495 Mon Sep 17 00:00:00 2001 From: Haihao Xiang Date: Wed, 18 Mar 2020 12:28:31 +0800 Subject: [PATCH] mediatype-video-raw: add Y412_LE and Y412_BE --- markdown/additional/design/mediatype-video-raw.md | 56 +++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/markdown/additional/design/mediatype-video-raw.md b/markdown/additional/design/mediatype-video-raw.md index e2aa34d..356daad 100644 --- a/markdown/additional/design/mediatype-video-raw.md +++ b/markdown/additional/design/mediatype-video-raw.md @@ -1436,3 +1436,59 @@ default rstride: RU8 (width * 4) default size: rstride (image) * height ``` + +- **"Y412\_LE"** Packed 4:4:4:4 AYUV, 2 bytes per channel where color value is stored in MSB 12 bits (U-Y-V-A), LE + +``` + Component 0: Y + depth: 12 LE + pstride: 8 + default offset: 2 + + Component 1: U + depth: 12 LE + pstride: 8 + offset: 0 + + Component 2: V + depth 12 LE + pstride: 8 + offset: 4 + + Component 2: A + depth 12 LE + pstride: 8 + offset: 6 + + Image + default rstride: width * 8 + default size: rstride (image) * height +``` + +- **"Y412\_BE"** Packed 4:4:4:4 AYUV, 2 bytes per channel where color value is stored in MSB 12 bits (U-Y-V-A), BE + +``` + Component 0: Y + depth: 12 BE + pstride: 8 + default offset: 2 + + Component 1: U + depth: 12 BE + pstride: 8 + offset: 0 + + Component 2: V + depth 12 BE + pstride: 8 + offset: 4 + + Component 2: A + depth 12 BE + pstride: 8 + offset: 6 + + Image + default rstride: width * 8 + default size: rstride (image) * height +``` -- 2.7.4