mediatype-video-raw: add P012_LE and P012_BE

This commit is contained in:
Haihao Xiang 2020-03-10 11:14:37 +08:00 committed by Tim-Philipp Müller
parent a51c082de7
commit ffa1486d76

View file

@ -1340,3 +1340,55 @@
tile width: 6
tile height: 5
```
- **"P012\_LE"** planar 4:2:0 YUV with interleaved UV plane, 2 bytes per channel where color data is stored in MSB 12 bits, LE
```
Component 0: Y
depth: 12 LE
pstride: 2
default offset: 0
default rstride: RU4 (width * 2)
default size: rstride (component0) * RU2 (height)
Component 1: U
depth: 12 LE
pstride: 4
default offset: size (component0)
default rstride: RU4 (width * 2)
Component 2: V
depth 12 LE
pstride: 4
default offset: offset (component1) + 2
default rstride: RU4 (width * 2)
Image
default size: RU4 (width * 2) * RU2 (height) * 3 / 2
```
- **"P012\_BE"** planar 4:2:0 YUV with interleaved UV plane, 2 bytes per channel where color data is stored in MSB 12 bits, BE
```
Component 0: Y
depth: 12 BE
pstride: 2
default offset: 0
default rstride: RU4 (width * 2)
default size: rstride (component0) * RU2 (height)
Component 1: U
depth: 12 BE
pstride: 4
default offset: size (component0)
default rstride: RU4 (width * 2)
Component 2: V
depth 12 BE
pstride: 4
default offset: offset (component1) + 2
default rstride: RU4 (width * 2)
Image
default size: RU4 (width * 2) * RU2 (height) * 3 / 2
```