V210: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(fix bit numbering for components 2 and 3 of each block) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[http://developer.apple.com/quicktime/icefloe/dispatch019.html#v210 v210 QuickTime Description] | * FourCC: v210 | ||
* Description: [http://developer.apple.com/quicktime/icefloe/dispatch019.html#v210 v210 QuickTime Description] | |||
* Samples: http://samples.mplayerhq.hu/V-codecs/v210/ | |||
The v210 format is a packed YUV 4:2:2 (UYVY) format with 10 bits per component. | The v210 format is a packed [[YUV 4:2:2]] ([[UYVY]]) format with 10 bits per component. | ||
Data is stored in blocks of 32 bit values in little-endian. | Data is stored in blocks of 32 bit values in little-endian. | ||
Each such block contains 3 components, one each in bits 0 - 9, 10 - | Each such block contains 3 components, one each in bits 0 - 9, 10 - 19 and 20 - 29, the remaining two bits are unused. | ||
Since UYVY consists of 4 components that represent two pixels, which of those bits correspond to which component makes a pattern that repeats every 4 32-bit blocks: | Since UYVY consists of 4 components that represent two pixels, which of those bits correspond to which component makes a pattern that repeats every 4 32-bit blocks: | ||
block 1, bits 0 - 9: U0+1 | block 1, bits 0 - 9: U0+1 | ||
block 1, bits 10 - | block 1, bits 10 - 19: Y0 | ||
block 1, bits 20 - | block 1, bits 20 - 29: V0+1 | ||
block 2, bits 0 - 9: Y1 | block 2, bits 0 - 9: Y1 | ||
block 2, bits 10 - | block 2, bits 10 - 19: U2+3 | ||
block 2, bits 20 - | block 2, bits 20 - 29: Y2 | ||
block 3, bits 0 - 9: V2+3 | block 3, bits 0 - 9: V2+3 | ||
block 3, bits 10 - | block 3, bits 10 - 19: Y3 | ||
block 3, bits 20 - | block 3, bits 20 - 29: U4+5 | ||
block 4, bits 0 - 9: Y4 | block 4, bits 0 - 9: Y4 | ||
block 4, bits 10 - | block 4, bits 10 - 19: V4+5 | ||
block 4, bits 20 - | block 4, bits 20 - 29: Y5 | ||
In addition the start of each line is aligned to a multiple of 128 bytes, where unused blocks are padded with 0. | In addition the start of each line is aligned to a multiple of 128 bytes, where unused blocks are padded with 0. | ||
Line 26: | Line 28: | ||
Unused parts of a partial (i.e. last) block do not seem to contain any specific value. | Unused parts of a partial (i.e. last) block do not seem to contain any specific value. | ||
[[Category:Video Codecs]] | |||
[[Category:Video FourCCs]] |
Latest revision as of 12:14, 3 July 2010
- FourCC: v210
- Description: v210 QuickTime Description
- Samples: http://samples.mplayerhq.hu/V-codecs/v210/
The v210 format is a packed YUV 4:2:2 (UYVY) format with 10 bits per component.
Data is stored in blocks of 32 bit values in little-endian.
Each such block contains 3 components, one each in bits 0 - 9, 10 - 19 and 20 - 29, the remaining two bits are unused.
Since UYVY consists of 4 components that represent two pixels, which of those bits correspond to which component makes a pattern that repeats every 4 32-bit blocks:
block 1, bits 0 - 9: U0+1 block 1, bits 10 - 19: Y0 block 1, bits 20 - 29: V0+1 block 2, bits 0 - 9: Y1 block 2, bits 10 - 19: U2+3 block 2, bits 20 - 29: Y2 block 3, bits 0 - 9: V2+3 block 3, bits 10 - 19: Y3 block 3, bits 20 - 29: U4+5 block 4, bits 0 - 9: Y4 block 4, bits 10 - 19: V4+5 block 4, bits 20 - 29: Y5
In addition the start of each line is aligned to a multiple of 128 bytes, where unused blocks are padded with 0.
Unused parts of a partial (i.e. last) block do not seem to contain any specific value.