[NUT-devel] [RFC] add Bayer fourccs

Peter Ross pross at xvid.org
Wed Mar 30 15:29:01 CEST 2011


---
Hi. Here is my stab at assigning fourcs for Bayer pixel formats.

I've used character 0xBA to identify Bayer formats, followed by the top
component order and bit-depth. A 7-bit ASCII value would probably be
better. Ideas/suggestions welcome.

 docs/nut4cc.txt |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/docs/nut4cc.txt b/docs/nut4cc.txt
index e28de7b..a111a0a 100644
--- a/docs/nut4cc.txt
+++ b/docs/nut4cc.txt
@@ -112,6 +112,18 @@ RBA[64] Packed RGBA 16:16:16:16, 64bpp, 16R, 16G, 16B, 16A, the 2-byte value for
 ARB[64] Packed ARGB 16:16:16:16, 64bpp, 16A, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as little-endian [NOT in AVI]
 BRA[64] Packed BGRA 16:16:16:16, 64bpp, 16B, 16G, 16R, 16A, the 2-byte value for each R/G/B component is stored as little-endian [NOT in AVI]
 ABR[64] Packed ABGR 16:16:16:16, 64bpp, 16A, 16B, 16G, 16R, the 2-byte value for each R/G/B component is stored as little-endian [NOT in AVI]
+[0xBA]BG[8]  Bayer, BGBG..(odd line), GRGR..(even line), 8-bit samples [NOT in AVI]
+[0xBA]BG[16] Bayer, BGBG..(odd line), GRGR..(even line), 16-bit samples, little-endian [NOT in AVI]
+[16]GB[0xBA] Bayer, BGBG..(odd line), GRGR..(even line), 16-bit samples, big-endian [NOT in AVI]
+[0xBA]RG[8]  Bayer, RGRG..(odd line), GBGB..(even line), 8-bit samples [NOT in AVI]
+[0xBA]RG[16] Bayer, RGRG..(odd line), GBGB..(even line), 16-bit samples, little-endian [NOT in AVI]
+[16]GR[0xBA] Bayer, RGRG..(odd line), GBGB..(even line), 16-bit samples, big-endian [NOT in AVI]
+[0xBA]GB[8]  Bayer, GBGB..(odd line), RGRG..(even line), 8-bit samples [NOT in AVI]
+[0xBA]GB[16] Bayer, GBGB..(odd line), RGRG..(even line), 16-bit samples, little-endian [NOT in AVI]
+[16]BG[0xBA] Bayer, GBGB..(odd line), RGRG..(even line), 16-bit samples, big-endian [NOT in AVI]
+[0xBA]GR[8]  Bayer, GRGR..(odd line), BGBG..(even line), 8-bit samples [NOT in AVI]
+[0xBA]GR[16] Bayer, GRGR..(odd line), BGBG..(even line), 16-bit samples, little-endian [NOT in AVI]
+[16]RG[0xBA] Bayer, GRGR..(odd line), BGBG..(even line), 16-bit samples, big-endian [NOT in AVI]
 
 Since many exotic planar YUVA pixel formats are not contemplated by
 the AVI/QuickTime FourCC lists, the following scheme is adopted for
-- 
1.7.4.1


-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/nut-devel/attachments/20110331/4253a0be/attachment.pgp>


More information about the NUT-devel mailing list