comparison DOCS/tech/colorspaces.txt @ 7833:0aebf17f33ed

fixes yuv411 added
author arpi
date Tue, 22 Oct 2002 01:22:35 +0000
parents cebe55b15cd4
children 9e4ef4ee2a06
comparison
equal deleted inserted replaced
7832:176891e5511e 7833:0aebf17f33ed
14 video systems, like PAL. Also most m(j)peg/dct based codecs use this. 14 video systems, like PAL. Also most m(j)peg/dct based codecs use this.
15 15
16 With YUV, they used to reduce the resolution of U,V planes: 16 With YUV, they used to reduce the resolution of U,V planes:
17 The most common YUV formats: 17 The most common YUV formats:
18 fourcc: bpp: IEEE: plane sizes: (w=width h=height of original image) 18 fourcc: bpp: IEEE: plane sizes: (w=width h=height of original image)
19 ? 24 YUV 4:4:4 Y: w * h U,V: w * h 19 444P 24 YUV 4:4:4 Y: w * h U,V: w * h
20 YUY2,UYVY 16 YUV 4:2:2 Y: w * h U,V: (w/2) * h 20 YUY2,UYVY 16 YUV 4:2:2 Y: w * h U,V: (w/2) * h [MJPEG]
21 YV12,I420 12 YUV 4:2:0 Y: w * h U,V: (w/2) * (h/2) 21 YV12,I420 12 YUV 4:2:0 Y: w * h U,V: (w/2) * (h/2) [MPEG, h263]
22 YVU9 9 YUV 4:1:1 Y: w * h U,V: (w/4) * (h/4) 22 411P 12 YUV 4:1:1 Y: w * h U,V: (w/4) * h [DV-NTSC, CYUV]
23 YVU9,IF09 9 YUV 4:1:0 Y: w * h U,V: (w/4) * (h/4) [Sorenson, Indeo]
23 24
24 conversion: (some cut'n'paste from www and maillist) 25 conversion: (some cut'n'paste from www and maillist)
25 26
26 RGB to YUV Conversion: 27 RGB to YUV Conversion:
27 Y = (0.257 * R) + (0.504 * G) + (0.098 * B) + 16 28 Y = (0.257 * R) + (0.504 * G) + (0.098 * B) + 16