mediatype-video-raw: add ARGB64_LE/BE and variants
authorPiotrek Brzeziński <piotr@centricular.com>
Sun, 31 Oct 2021 19:20:08 +0000 (20:20 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sun, 31 Oct 2021 22:28:23 +0000 (22:28 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1286>

subprojects/gst-docs/markdown/additional/design/mediatype-video-raw.md

index ea898a4..f638ad6 100644 (file)
           default size:    rstride (image) * height
 ```
 
-- **"RGBx"** sparse rgb packed into 32 bit, space last
+- **"RGBx"** sparse RGB packed into 32 bit, space last
 
 ```
        +--+--+--+--+ +--+--+--+--+
           default size:    rstride (image) * height
 ```
 
-- **"BGRx"** sparse reverse rgb packed into 32 bit, space last
+- **"BGRx"** sparse reverse RGB packed into 32 bit, space last
 
 ```
        +--+--+--+--+ +--+--+--+--+
           default size:    rstride (image) * height
 ```
 
-- **"xRGB"** sparse rgb packed into 32 bit, space first
+- **"xRGB"** sparse RGB packed into 32 bit, space first
 
 ```
        +--+--+--+--+ +--+--+--+--+
           default size:    rstride (image) * height
 ```
 
-- **"xBGR"** sparse reverse rgb packed into 32 bit, space first
+- **"xBGR"** sparse reverse RGB packed into 32 bit, space first
 
 ```
        +--+--+--+--+ +--+--+--+--+
           default size:    rstride (image) * height
 ```
 
-- **"RGBA"** rgb with alpha channel last
+- **"RGBA"** RGB with alpha channel last
 
 ```
        +--+--+--+--+ +--+--+--+--+
           default size:    rstride (image) * height
 ```
 
-- **"BGRA"** reverse rgb with alpha channel last
+- **"BGRA"** reverse RGB with alpha channel last
 
 ```
        +--+--+--+--+ +--+--+--+--+
           default size:    rstride (image) * height
 ```
 
-- **"ARGB"** rgb with alpha channel first
+- **"ARGB"** RGB with alpha channel first
 
 ```
        +--+--+--+--+ +--+--+--+--+
           default size:    rstride (image) * height
 ```
 
-- **"ABGR"** reverse rgb with alpha channel first
+- **"ABGR"** reverse RGB with alpha channel first
 
 ```
        +--+--+--+--+ +--+--+--+--+
           default size:    rstride (image) * height
 ```
 
-- **"RGB"** rgb
+- **"RGB"** RGB
 
 ```
        +--+--+--+ +--+--+--+
           default size:    rstride (image) * height
 ```
 
-- **"BGR"** reverse rgb
+- **"BGR"** reverse RGB
 
 ```
        +--+--+--+ +--+--+--+
           default size:    rstride (image) * height
 ```
 
-- **"RGB16"** rgb 5-6-5 bits per component
+- **"RGB16"** RGB 5-6-5 bits per component
 
 ```
        +--+--+--+ +--+--+--+
           default size:    rstride (image) * height
 ```
 
-- **"BGR16"** reverse rgb 5-6-5 bits per component
+- **"BGR16"** reverse RGB 5-6-5 bits per component
 
 ```
        +--+--+--+ +--+--+--+
           default size:    rstride (image) * height
 ```
 
-- **"RGB15"** rgb 5-5-5 bits per component
+- **"RGB15"** RGB 5-5-5 bits per component
 
 ```
        +--+--+--+ +--+--+--+
           default size:    rstride (image) * height
 ```
 
-- **"BGR15"** reverse rgb 5-5-5 bits per component
+- **"BGR15"** reverse RGB 5-5-5 bits per component
 
 ```
        +--+--+--+ +--+--+--+
           default size:    rstride (image) * height
 ```
 
-- **"ARGB64"** rgb with alpha channel first, 16 bits per channel
+- **"ARGB64"** RGB with alpha channel first, 16 bits per channel in native endianness
 
 ```
        +--+--+--+--+ +--+--+--+--+
        +--+--+--+--+ +--+--+--+--+
 
         Component 0: R
-          depth:           16 LE
+          depth:           16
           pstride:         8
           offset:          2
 
         Component 1: G
-          depth            16 LE
+          depth            16
           pstride:         8
           offset:          4
 
         Component 2: B
-          depth:           16 LE
+          depth:           16
           pstride:         8
           offset:          6
 
         Component 3: A
-          depth:           16 LE
+          depth:           16
           pstride:         8
           offset:          0
 
           default size:    rstride (image) * height
 ```
 
-- **"AYUV64"** packed 4:4:4 YUV with alpha channel, 16 bits per channel (A0-Y0-U0-V0 ...)
+- **"AYUV64"** packed 4:4:4 YUV with alpha channel, 16 bits per channel (A0-Y0-U0-V0 ...) in native endianness
 
 ```
        +--+--+--+--+ +--+--+--+--+
        +--+--+--+--+ +--+--+--+--+
 
         Component 0: Y
-          depth:           16 LE
+          depth:           16
           pstride:         8
           offset:          2
 
         Component 1: U
-          depth            16 LE
+          depth            16
           pstride:         8
           offset:          4
 
         Component 2: V
-          depth:           16 LE
+          depth:           16
           pstride:         8
           offset:          6
 
         Component 3: A
-          depth:           16 LE
+          depth:           16
           pstride:         8
           offset:          0
 
 ```
 - **"RGBP"** planar 4:4:4 RGB, R-G-B order, 8 bits per channel
 - **"BGRP"** planar 4:4:4 RGB, B-G-R order, 8 bits per channel
+
+- **"RGBA64\_LE"** RGB with alpha channel last, 16 bits per channel, LE
+
+```
+       +--+--+--+--+ +--+--+--+--+
+       |R0|G0|B0|A0| |R1|G1|B1|A1| ...
+       +--+--+--+--+ +--+--+--+--+
+
+        Component 0: R
+          depth:           16 LE
+          pstride:         8
+          offset:          0
+
+        Component 1: G
+          depth            16 LE
+          pstride:         8
+          offset:          2
+
+        Component 2: B
+          depth:           16 LE
+          pstride:         8
+          offset:          4
+
+        Component 3: A
+          depth:           16 LE
+          pstride:         8
+          offset:          6
+
+        Image
+          default rstride: width * 8
+          default size:    rstride (image) * height
+```
+
+- **"RGBA64\_BE"** RGB with alpha channel last, 16 bits per channel, BE
+
+```
+       +--+--+--+--+ +--+--+--+--+
+       |R0|G0|B0|A0| |R1|G1|B1|A1| ...
+       +--+--+--+--+ +--+--+--+--+
+
+        Component 0: R
+          depth:           16 BE
+          pstride:         8
+          offset:          0
+
+        Component 1: G
+          depth            16 BE
+          pstride:         8
+          offset:          2
+
+        Component 2: B
+          depth:           16 BE
+          pstride:         8
+          offset:          4
+
+        Component 3: A
+          depth:           16 BE
+          pstride:         8
+          offset:          6
+
+        Image
+          default rstride: width * 8
+          default size:    rstride (image) * height
+```
+
+- **"BGRA64\_LE"** reverse RGB with alpha channel last, 16 bits per channel, LE
+
+```
+       +--+--+--+--+ +--+--+--+--+
+       |B0|G0|R0|A0| |B1|G1|R1|A1| ...
+       +--+--+--+--+ +--+--+--+--+
+
+        Component 0: R
+          depth:           16 LE
+          pstride:         8
+          offset:          4
+
+        Component 1: G
+          depth            16 LE
+          pstride:         8
+          offset:          2
+
+        Component 2: B
+          depth:           16 LE
+          pstride:         8
+          offset:          0
+
+        Component 3: A
+          depth:           16 LE
+          pstride:         8
+          offset:          6
+
+        Image
+          default rstride: width * 8
+          default size:    rstride (image) * height
+```
+
+- **"BGRA64\_BE"** reverse RGB with alpha channel last, 16 bits per channel, BE
+
+```
+       +--+--+--+--+ +--+--+--+--+
+       |B0|G0|R0|A0| |B1|G1|R1|A1| ...
+       +--+--+--+--+ +--+--+--+--+
+
+        Component 0: R
+          depth:           16 BE
+          pstride:         8
+          offset:          4
+
+        Component 1: G
+          depth            16 BE
+          pstride:         8
+          offset:          2
+
+        Component 2: B
+          depth:           16 BE
+          pstride:         8
+          offset:          0
+
+        Component 3: A
+          depth:           16 BE
+          pstride:         8
+          offset:          6
+
+        Image
+          default rstride: width * 8
+          default size:    rstride (image) * height
+```
+
+- **"ARGB64\_LE"** RGB with alpha channel first, 16 bits per channel, LE
+
+```
+       +--+--+--+--+ +--+--+--+--+
+       |A0|R0|G0|B0| |A1|R1|G1|B1| ...
+       +--+--+--+--+ +--+--+--+--+
+
+        Component 0: R
+          depth:           16 LE
+          pstride:         8
+          offset:          2
+
+        Component 1: G
+          depth            16 LE
+          pstride:         8
+          offset:          4
+
+        Component 2: B
+          depth:           16 LE
+          pstride:         8
+          offset:          6
+
+        Component 3: A
+          depth:           16 LE
+          pstride:         8
+          offset:          0
+
+        Image
+          default rstride: width * 8
+          default size:    rstride (image) * height
+```
+
+- **"ARGB64\_BE"** RGB with alpha channel first, 16 bits per channel, BE
+
+```
+       +--+--+--+--+ +--+--+--+--+
+       |A0|R0|G0|B0| |A1|R1|G1|B1| ...
+       +--+--+--+--+ +--+--+--+--+
+
+        Component 0: R
+          depth:           16 BE
+          pstride:         8
+          offset:          2
+
+        Component 1: G
+          depth            16 BE
+          pstride:         8
+          offset:          4
+
+        Component 2: B
+          depth:           16 BE
+          pstride:         8
+          offset:          6
+
+        Component 3: A
+          depth:           16 BE
+          pstride:         8
+          offset:          0
+
+        Image
+          default rstride: width * 8
+          default size:    rstride (image) * height
+```
+
+- **"ABGR64\_LE"** reverse RGB with alpha channel first, 16 bits per channel, LE
+
+```
+       +--+--+--+--+ +--+--+--+--+
+       |A0|B0|G0|R0| |A1|B1|G1|R1| ...
+       +--+--+--+--+ +--+--+--+--+
+
+        Component 0: R
+          depth:           16 LE
+          pstride:         8
+          offset:          6
+
+        Component 1: G
+          depth            16 LE
+          pstride:         8
+          offset:          4
+
+        Component 2: B
+          depth:           16 LE
+          pstride:         8
+          offset:          2
+
+        Component 3: A
+          depth:           16 LE
+          pstride:         8
+          offset:          0
+
+        Image
+          default rstride: width * 8
+          default size:    rstride (image) * height
+```
+
+- **"ABGR64\_BE"** reverse RGB with alpha channel first, 16 bits per channel, BE
+
+```
+       +--+--+--+--+ +--+--+--+--+
+       |A0|B0|G0|R0| |A1|B1|G1|R1| ...
+       +--+--+--+--+ +--+--+--+--+
+
+        Component 0: R
+          depth:           16 BE
+          pstride:         8
+          offset:          6
+
+        Component 1: G
+          depth            16 BE
+          pstride:         8
+          offset:          4
+
+        Component 2: B
+          depth:           16 BE
+          pstride:         8
+          offset:          2
+
+        Component 3: A
+          depth:           16 BE
+          pstride:         8
+          offset:          0
+
+        Image
+          default rstride: width * 8
+          default size:    rstride (image) * height
+```