From 0a01d5607a3a728bc791cb0bd85fdb70d64bc37d Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Thu, 21 Feb 2013 09:59:51 +0100 Subject: [PATCH] Add definition and some examples for planar GBR fourCCs. --- docs/nut4cc.txt | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/docs/nut4cc.txt b/docs/nut4cc.txt index e28de7b..2b606a7 100644 --- a/docs/nut4cc.txt +++ b/docs/nut4cc.txt @@ -123,6 +123,10 @@ Y2 = Y+A Y3 = YUV Y4 = YUVA +Similar for planar RGB formats: +G3 = Planar GBR +G4 = Planar GBRA + The third byte represents the width and height chroma subsampling values for the UV planes, that is the amount to shift the luma width/height right to find the chroma width/height. @@ -132,7 +136,7 @@ The fourth byte is the number of bits used (8, 16, ...). If the order of bytes is inverted, that means that each component has to be read big-endian. -Follows the list of the supported YUVA planar format FourCCs created +Follows the list of the supported YUVA and GBR planar format FourCCs created using this scheme: Y1[00][16] Planar gray, 16bpp, little-endian [NOT in AVI] @@ -145,6 +149,17 @@ Y3[00][16] Planar YUV 4:4:4, 48bpp, (1 Cr & Cb sample per 1x1 Y samples), littl [16][00]3Y Planar YUV 4:4:4, 48bpp, (1 Cr & Cb sample per 1x1 Y samples), big-endian [NOT in AVI] Y4[11][ 8] Planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples) [NOT in AVI] Y2[00][ 8] 8bit gray, 8bit alpha [NOT in AVI] +G3[00][ 8] Planar GBR, 24bpp [NOT in AVI] +G3[00][ 9] Planar GBR, 27bpp, little-endian [NOT in AVI] +[ 9][00]3G Planar GBR, 27bpp, big-endian [NOT in AVI] +G3[00][10] Planar GBR, 30bpp, little-endian [NOT in AVI] +[10][00]3G Planar GBR, 30bpp, big-endian [NOT in AVI] +G3[00][12] Planar GBR, 36bpp, little-endian [NOT in AVI] +[12][00]3G Planar GBR, 36bpp, big-endian [NOT in AVI] +G3[00][14] Planar GBR, 42bpp, little-endian [NOT in AVI] +[14][00]3G Planar GBR, 42bpp, big-endian [NOT in AVI] +G3[00][16] Planar GBR, 48bpp, little-endian [NOT in AVI] +[16][00]3G Planar GBR, 48bpp, big-endian [NOT in AVI] Raw audio: [x] is an byte with value x, [NOT in AVI] ALAW A-LAW -- 1.7.10.4