diff options
author | Yuan Tong <tongyuan200097@gmail.com> | 2021-03-13 17:17:02 +0800 |
---|---|---|
committer | Frank Barchard <fbarchard@chromium.org> | 2021-03-13 20:55:21 +0000 |
commit | f37014fcfffd62f00a80a900f016964763c56864 (patch) | |
tree | 45ee1ace11dca893dd46b99d1c7bfed857e9f3af /docs | |
parent | 19bbedfd3e37329900d34e104021f04d7205ad78 (diff) | |
download | libyuv-f37014fcfffd62f00a80a900f016964763c56864.tar.gz |
Add support for AR64 format
Add following conversions:
ARGB,ABGR <-> AR64,AB64
AR64 <-> AB64
R=fbarchard@chromium.org
Change-Id: I5ca5b40a98bffea11981e136afae4a511ba6c564
Bug: libyuv:886
Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/2746780
Reviewed-by: Frank Barchard <fbarchard@chromium.org>
Commit-Queue: Frank Barchard <fbarchard@chromium.org>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/formats.md | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/docs/formats.md b/docs/formats.md index 5fc19d45..d628f7f9 100644 --- a/docs/formats.md +++ b/docs/formats.md @@ -54,12 +54,14 @@ The following is extracted from video_common.h as a complete list of formats sup // 1 Secondary YUV format: row biplanar. FOURCC_M420 = FOURCC('M', '4', '2', '0'), // deprecated. - // 11 Primary RGB formats: 4 32 bpp, 2 24 bpp, 3 16 bpp, 1 10 bpc + // 13 Primary RGB formats: 4 32 bpp, 2 24 bpp, 3 16 bpp, 1 10 bpc, 2 64 bpp 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'), // 10 bit per channel. 2101010. FOURCC_AB30 = FOURCC('A', 'B', '3', '0'), // ABGR version of 10 bit + FOURCC_AR64 = FOURCC('A', 'R', '6', '4'), // 16 bit per channel. + FOURCC_AB64 = FOURCC('A', 'B', '6', '4'), // ABGR version of 16 bit FOURCC_24BG = FOURCC('2', '4', 'B', 'G'), FOURCC_RAW = FOURCC('r', 'a', 'w', ' '), FOURCC_RGBA = FOURCC('R', 'G', 'B', 'A'), @@ -180,6 +182,14 @@ The 2 bit alpha has 4 values. Here are the comparable 8 bit alpha values. The 10 bit RGB values range from 0 to 1023. XR30 is the same as AR30 but with no alpha channel. +# AB64 and AR64 + +AB64 is similar to ABGR, with 16 bit (2 bytes) per channel. Each channel stores an unsigned short. +In memory R is the lowest and A is the highest. +Each channel has value ranges from 0 to 65535. +AR64 is similar to ARGB. + + # NV12 and NV21 NV12 is a biplanar format with a full sized Y plane followed by a single |