design: mediatype-video: add markup to figures and diagrams
authorReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Tue, 27 Dec 2016 19:34:42 +0000 (11:34 -0800)
committerReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Tue, 27 Dec 2016 19:34:59 +0000 (11:34 -0800)
Drop some trailing whitespace while at it.

markdown/design/mediatype-video-raw.md

index 338a0d0..a447e1b 100644 (file)
@@ -71,6 +71,7 @@
 
 - **"I420"** planar 4:2:0 YUV
 
+```
         Component 0: Y
           depth:           8
           pstride:         1
           default size:    rstride (component2) * RU2 (height) / 2
 
         Image
-          default size: size (component0) + 
+          default size: size (component0) +
                         size (component1) +
                         size (component2)
+```
 
 - **"YV12"** planar 4:2:0 YUV
 
         Same as I420 but with U and V planes swapped
 
+```
         Component 0: Y
           depth:           8
           pstride:         1
           default size:    rstride (component2) * RU2 (height) / 2
 
         Image
-          default size: size (component0) + 
+          default size: size (component0) +
                         size (component1) +
                         size (component2)
+```
 
 - **"YUY2"** packed 4:2:2 YUV
 
+```
        +--+--+--+--+ +--+--+--+--+
        |Y0|U0|Y1|V0| |Y2|U2|Y3|V2| ...
        +--+--+--+--+ +--+--+--+--+
         Image
           default rstride: RU4 (width * 2)
           default size:    rstride (image) * height
+```
 
 - **"YVYU"** packed 4:2:2 YUV
 
       Same as "YUY2" but with U and V planes swapped
 
+```
        +--+--+--+--+ +--+--+--+--+
        |Y0|V0|Y1|U0| |Y2|V2|Y3|U2| ...
        +--+--+--+--+ +--+--+--+--+
         Image
           default rstride: RU4 (width * 2)
           default size:    rstride (image) * height
+```
 
 - **"UYVY"** packed 4:2:2 YUV
 
+```
        +--+--+--+--+ +--+--+--+--+
        |U0|Y0|V0|Y1| |U2|Y2|V2|Y3| ...
        +--+--+--+--+ +--+--+--+--+
         Image
           default rstride: RU4 (width * 2)
           default size:    rstride (image) * height
+```
 
 - **"AYUV"** packed 4:4:4 YUV with alpha channel
 
+```
        +--+--+--+--+ +--+--+--+--+
        |A0|Y0|U0|V0| |A1|Y1|U1|V1| ...
        +--+--+--+--+ +--+--+--+--+
         Image
           default rstride: width * 4
           default size:    rstride (image) * height
+```
 
 - **"RGBx"** sparse rgb packed into 32 bit, space last
 
+```
        +--+--+--+--+ +--+--+--+--+
        |R0|G0|B0|X | |R1|G1|B1|X | ...
        +--+--+--+--+ +--+--+--+--+
         Image
           default rstride: width * 4
           default size:    rstride (image) * height
+```
 
 - **"BGRx"** sparse reverse rgb packed into 32 bit, space last
 
+```
        +--+--+--+--+ +--+--+--+--+
        |B0|G0|R0|X | |B1|G1|R1|X | ...
        +--+--+--+--+ +--+--+--+--+
         Image
           default rstride: width * 4
           default size:    rstride (image) * height
+```
 
 - **"xRGB"** sparse rgb packed into 32 bit, space first
 
+```
        +--+--+--+--+ +--+--+--+--+
        |X |R0|G0|B0| |X |R1|G1|B1| ...
        +--+--+--+--+ +--+--+--+--+
         Image
           default rstride: width * 4
           default size:    rstride (image) * height
+```
 
 - **"xBGR"** sparse reverse rgb packed into 32 bit, space first
 
+```
        +--+--+--+--+ +--+--+--+--+
        |X |B0|G0|R0| |X |B1|G1|R1| ...
        +--+--+--+--+ +--+--+--+--+
         Image
           default rstride: width * 4
           default size:    rstride (image) * height
+```
 
 - **"RGBA"** rgb with alpha channel last
 
+```
        +--+--+--+--+ +--+--+--+--+
        |R0|G0|B0|A0| |R1|G1|B1|A1| ...
        +--+--+--+--+ +--+--+--+--+
         Image
           default rstride: width * 4
           default size:    rstride (image) * height
+```
 
 - **"BGRA"** reverse rgb with alpha channel last
 
+```
        +--+--+--+--+ +--+--+--+--+
        |B0|G0|R0|A0| |B1|G1|R1|A1| ...
        +--+--+--+--+ +--+--+--+--+
         Image
           default rstride: width * 4
           default size:    rstride (image) * height
+```
 
 - **"ARGB"** rgb with alpha channel first
 
+```
        +--+--+--+--+ +--+--+--+--+
        |A0|R0|G0|B0| |A1|R1|G1|B1| ...
        +--+--+--+--+ +--+--+--+--+
         Image
           default rstride: width * 4
           default size:    rstride (image) * height
+```
 
 - **"ABGR"** reverse rgb with alpha channel first
 
+```
        +--+--+--+--+ +--+--+--+--+
        |A0|R0|G0|B0| |A1|R1|G1|B1| ...
        +--+--+--+--+ +--+--+--+--+
         Image
           default rstride: width * 4
           default size:    rstride (image) * height
+```
 
 - **"RGB"** rgb
 
+```
        +--+--+--+ +--+--+--+
        |R0|G0|B0| |R1|G1|B1| ...
        +--+--+--+ +--+--+--+
         Image
           default rstride: RU4 (width * 3)
           default size:    rstride (image) * height
+```
 
 - **"BGR"** reverse rgb
 
+```
        +--+--+--+ +--+--+--+
        |B0|G0|R0| |B1|G1|R1| ...
        +--+--+--+ +--+--+--+
         Image
           default rstride: RU4 (width * 3)
           default size:    rstride (image) * height
+```
 
 - **"Y41B"** planar 4:1:1 YUV
 
+```
         Component 0: Y
           depth:           8
           pstride:         1
           default size:    rstride (component2) * height
 
         Image
-          default size: size (component0) + 
+          default size: size (component0) +
                         size (component1) +
                         size (component2)
+```
 
 - **"Y42B"** planar 4:2:2 YUV
 
+```
         Component 0: Y
           depth:           8
           pstride:         1
           default size:    rstride (component2) * height
 
         Image
-          default size: size (component0) + 
+          default size: size (component0) +
                         size (component1) +
                         size (component2)
+```
 
 - **"Y444"** planar 4:4:4 YUV
 
+```
         Component 0: Y
           depth:           8
           pstride:         1
           default size:    rstride (component2) * height
 
         Image
-          default size: size (component0) + 
+          default size: size (component0) +
                         size (component1) +
                         size (component2)
 
 - **"v210"** packed 4:2:2 10-bit YUV, complex format
 
+```
         Component 0: Y
           depth:           10
 
         Image
           default rstride: RU48 (width) * 128
           default size:    rstride (image) * height
+```
 
 - **"v216"** packed 4:2:2 16-bit YUV, Y0-U0-Y1-V1 order
 
+```
        +--+--+--+--+ +--+--+--+--+
        |U0|Y0|V0|Y1| |U1|Y2|V1|Y3| ...
        +--+--+--+--+ +--+--+--+--+
         Image
           default rstride: RU8 (width * 2)
           default size:    rstride (image) * height
+```
 
 - **"NV12"** planar 4:2:0 YUV with interleaved UV plane
 
+```
         Component 0: Y
           depth:           8
           pstride:         1
 
         Image
           default size: RU4 (width) * RU2 (height) * 3 / 2
+```
 
 - **"NV21"** planar 4:2:0 YUV with interleaved VU plane
 
+```
         Component 0: Y
           depth:           8
           pstride:         1
 
         Image
           default size: RU4 (width) * RU2 (height) * 3 / 2
+```
 
 - **"GRAY8"** 8-bit grayscale "Y800" same as "GRAY8"
 
+```
         Component 0: Y
           depth:           8
           offset:          0
 
         Image
           default size:    size (component0)
+```
 
 - **"GRAY16\_BE"** 16-bit grayscale, most significant byte first
 
+```
         Component 0: Y
           depth:           16
           offset:          0
 
         Image
           default size:    size (component0)
+```
 
 - **"GRAY16\_LE"** 16-bit grayscale, least significant byte first
 - **"Y16"** same as "GRAY16\_LE"
 
+```
         Component 0: Y
           depth:           16 LE
           offset:          0
 
         Image
           default size:    size (component0)
+```
 
 - **"v308"** packed 4:4:4 YUV
 
+```
        +--+--+--+ +--+--+--+
        |Y0|U0|V0| |Y1|U1|V1| ...
        +--+--+--+ +--+--+--+
         Image
           default rstride: RU4 (width * 3)
           default size:    rstride (image) * height
+```
 
 - **"IYU2"** packed 4:4:4 YUV, U-Y-V order
 
+```
        +--+--+--+ +--+--+--+
        |U0|Y0|V0| |U1|Y1|V1| ...
        +--+--+--+ +--+--+--+
         Image
           default rstride: RU4 (width * 3)
           default size:    rstride (image) * height
+```
 
 - **"RGB16"** rgb 5-6-5 bits per component
 
+```
        +--+--+--+ +--+--+--+
        |R0|G0|B0| |R1|G1|B1| ...
        +--+--+--+ +--+--+--+
         Image
           default rstride: RU4 (width * 2)
           default size:    rstride (image) * height
+```
 
 - **"BGR16"** reverse rgb 5-6-5 bits per component
 
+```
        +--+--+--+ +--+--+--+
        |B0|G0|R0| |B1|G1|R1| ...
        +--+--+--+ +--+--+--+
         Image
           default rstride: RU4 (width * 2)
           default size:    rstride (image) * height
+```
 
 - **"RGB15"** rgb 5-5-5 bits per component
 
+```
        +--+--+--+ +--+--+--+
        |R0|G0|B0| |R1|G1|B1| ...
        +--+--+--+ +--+--+--+
         Image
           default rstride: RU4 (width * 2)
           default size:    rstride (image) * height
+```
 
 - **"BGR15"** reverse rgb 5-5-5 bits per component
 
+```
        +--+--+--+ +--+--+--+
        |B0|G0|R0| |B1|G1|R1| ...
        +--+--+--+ +--+--+--+
         Image
           default rstride: RU4 (width * 2)
           default size:    rstride (image) * height
+```
 
 - **"UYVP"** packed 10-bit 4:2:2 YUV (U0-Y0-V0-Y1 U2-Y2-V2-Y3 U4 ...)
 
+```
         Component 0: Y
           depth:           10
 
         Image
           default rstride: RU4 (width * 2 * 5)
           default size:    rstride (image) * height
+```
 
 - **"A420"** planar 4:4:2:0 AYUV
 
+```
         Component 0: Y
           depth:           8
           pstride:         1
 
         Image
           default size:    size (component0) +
-                           size (component1) + 
+                           size (component1) +
                            size (component2) +
                            size (component3)
+```
 
 - **"RGB8P"** 8-bit paletted RGB
 
+```
         Component 0: INDEX
           depth:           8
           pstride:         1
 
         Image
           default size:    size (component0) + size (component1)
+```
 
 - **"YUV9"** planar 4:1:0 YUV
 
+```
         Component 0: Y
           depth:           8
           pstride:         1
           default size:    rstride (component2) * (RU4 (height) / 4)
 
         Image
-          default size: size (component0) + 
+          default size: size (component0) +
                         size (component1) +
                         size (component2)
+```
 
 - **"YVU9"** planar 4:1:0 YUV (like YUV9 but UV planes swapped)
 
+```
         Component 0: Y
           depth:           8
           pstride:         1
           default size:    rstride (component2) * (RU4 (height) / 4)
 
         Image
-          default size: size (component0) + 
+          default size: size (component0) +
                         size (component1) +
                         size (component2)
+```
 
 - **"IYU1"** packed 4:1:1 YUV (Cb-Y0-Y1-Cr-Y2-Y3 ...)
 
+```
        +--+--+--+ +--+--+--+
        |B0|G0|R0| |B1|G1|R1| ...
        +--+--+--+ +--+--+--+
         Image
           default rstride: RU4 (RU4 (width) + RU4 (width) / 2)
           default size:    rstride (image) * height
+```
 
 - **"ARGB64"** rgb with alpha channel first, 16 bits per channel
 
+```
        +--+--+--+--+ +--+--+--+--+
        |A0|R0|G0|B0| |A1|R1|G1|B1| ...
        +--+--+--+--+ +--+--+--+--+
         Image
           default rstride: width * 8
           default size:    rstride (image) * height
+```
 
 - **"AYUV64"** packed 4:4:4 YUV with alpha channel, 16 bits per channel (A0-Y0-U0-V0 ...)
 
+```
        +--+--+--+--+ +--+--+--+--+
        |A0|Y0|U0|V0| |A1|Y1|U1|V1| ...
        +--+--+--+--+ +--+--+--+--+
         Image
           default rstride: width * 8
           default size:    rstride (image) * height
+```
 
 - **"r210"** packed 4:4:4 RGB, 10 bits per channel
 
+```
        +--+--+--+ +--+--+--+
        |R0|G0|B0| |R1|G1|B1| ...
        +--+--+--+ +--+--+--+
         Image
           default rstride: width * 4
           default size:    rstride (image) * height
+```
 
 - **"I420\_10LE"** planar 4:2:0 YUV, 10 bits per channel LE
 
+```
         Component 0: Y
           depth:           10 LE
           pstride:         2
           default size:    rstride (component2) * RU2 (height) / 2
 
         Image
-          default size: size (component0) + 
+          default size: size (component0) +
                         size (component1) +
                         size (component2)
+```
 
 - **"I420\_10BE"** planar 4:2:0 YUV, 10 bits per channel BE
 
+```
         Component 0: Y
           depth:           10 BE
           pstride:         2
           default size:    rstride (component2) * RU2 (height) / 2
 
         Image
-          default size: size (component0) + 
+          default size: size (component0) +
                         size (component1) +
                         size (component2)
+```
 
 - **"I422\_10LE"** planar 4:2:2 YUV, 10 bits per channel LE
 
+```
         Component 0: Y
           depth:           10 LE
           pstride:         2
           default size:    rstride (component2) * RU2 (height)
 
         Image
-          default size: size (component0) + 
+          default size: size (component0) +
                         size (component1) +
                         size (component2)
+```
 
 - **"I422\_10BE"** planar 4:2:2 YUV, 10 bits per channel BE
 
+```
         Component 0: Y
           depth:           10 BE
           pstride:         2
           default size:    rstride (component2) * RU2 (height)
 
         Image
-          default size: size (component0) + 
+          default size: size (component0) +
                         size (component1) +
                         size (component2)
+```
 
 - **"Y444\_10BE"** planar 4:4:4 YUV, 10 bits per channel
 - **"Y444\_10LE"** planar 4:4:4 YUV, 10 bits per channel
 
 - **"NV12\_64Z32"** planar 4:2:0 YUV with interleaved UV plane in 64x32 tiles zigzag
 
+```
         Component 0: Y
           depth:           8
           pstride:         1
           tile mode:    ZFLIPZ_2X2
           tile width:   6
           tile height:  5
+```