aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorFrank Barchard <fbarchard@google.com>2017-11-20 11:37:36 -0800
committerFrank Barchard <fbarchard@google.com>2017-11-20 22:05:45 +0000
commitf2978400d5723ce8897dc629a04cda37cfe6fb34 (patch)
tree730e07f7b3ebfd07c7bae780ecdfbf613710445a /docs
parent12c904a97c81c3ef4cab0fc8fb1f0485b4ec4e8c (diff)
downloadlibyuv-f2978400d5723ce8897dc629a04cda37cfe6fb34.tar.gz
Document AR30 format
Bug: libyuv:751 Test: none Change-Id: If6d5e7b9c5e6e8d2a272e03ce5a1cc199ef364ca Reviewed-on: https://chromium-review.googlesource.com/779980 Reviewed-by: Weiyong Yao <braveyao@chromium.org> Reviewed-by: Frank Barchard <fbarchard@google.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/formats.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/formats.md b/docs/formats.md
index 2b75d31a..550e14bc 100644
--- a/docs/formats.md
+++ b/docs/formats.md
@@ -54,6 +54,7 @@ The following is extracted from video_common.h as a complete list of formats sup
FOURCC_ARGB = FOURCC('A', 'R', 'G', 'B'),
FOURCC_BGRA = FOURCC('B', 'G', 'R', 'A'),
FOURCC_ABGR = FOURCC('A', 'B', 'G', 'R'),
+ FOURCC_AR30 = FOURCC('A', 'R', '3', '0'),
FOURCC_24BG = FOURCC('2', '4', 'B', 'G'),
FOURCC_RAW = FOURCC('r', 'a', 'w', ' '),
FOURCC_RGBA = FOURCC('R', 'G', 'B', 'A'),
@@ -145,3 +146,13 @@ There are 2 RGB layouts - RGB24 (aka 24BG) and RAW
RGB24 is B,G,R in memory
RAW is R,G,B in memory
+
+# AR30
+
+AR30 is 2 10 10 10 ARGB stored in little endian order.
+The 2 bit alpha has 4 values. Here are the comparable 8 bit alpha values.
+0 - 0. 00000000b = 0x00 = 0
+1 - 33%. 01010101b = 0x55 = 85
+2 - 66%. 10101010b = 0xaa = 170
+3 - 100%. 11111111b = 0xff = 255
+The 10 bit RGB values range from 0 to 1023.