Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Chroma subsampling
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Sampling systems and ratios== The subsampling scheme is commonly expressed as a three-part ratio ''J'':''a'':''b'' (e.g. 4:2:2) or four parts, if alpha channel is present (e.g. 4:2:2:4), that describe the number of luminance and chrominance samples in a conceptual region that is ''J'' pixels wide and 2 pixels high. The parts are (in their respective order): * ''J'': horizontal sampling reference (width of the conceptual region). Usually, 4. <!-- This used to be in the article but seems plain wrong to me: J is a number of pixels, and expressing it as MHz implies a very particular use-case, still images do not necessarily have a notion of frequency ... (originally, as a multiple of 3.579 MHz in the NTSC television system) if one wants to re-add this to the article, it should be better explained --~~~~ --> * ''a'': number of chrominance samples ('''Cr''', '''Cb''') in the first row of ''J'' pixels. * ''b'': number of changes of chrominance samples ('''Cr''', '''Cb''') between first and second row of ''J'' pixels. ''b'' is usually either zero or equal to ''a'' (except in rare irregular cases like 4:4:1 and 4:2:1, which do not follow this convention). * ''[[Alpha compositing|Alpha]]'': horizontal factor (relative to first digit). May be omitted if alpha component is not present, and is equal to ''J'' when present. This notation is not valid for all combinations and has exceptions, e.g. 4:1:0 (where the height of the region is not 2 pixels, but 4 pixels, so if 8 bits per component are used, the media would be 9 bits per pixel) and 4:2:1.<!-- the height of the squares are set in the first column and the width are set in the table's first row --> {| style="border-collapse:collapse; text-align:center;" | | rowspan="11" style="width:1ex;" | || colspan="4" style="font-size:larger; width:100px;" | '''4:1:1''' || colspan="2" rowspan="7"| | rowspan="11" style="width:3ex;" | || colspan="4" style="font-size:larger; width:100px;" | '''4:2:0''' || colspan="2" rowspan="7"| | rowspan="11" style="width:3ex;" | || colspan="4" style="font-size:larger; width:100px;" | '''4:2:2''' || colspan="2" rowspan="7"| | rowspan="11" style="width:3ex;" | || colspan="4" style="font-size:larger; width:100px;" | '''4:4:0''' || colspan="2" rowspan="7"| | rowspan="11" style="width:3ex;" | || colspan="4" style="font-size:larger; width:100px;" | '''4:4:4''' || colspan="2" rowspan="7"| |- | rowspan="2" style="height:50px;" | '''Y'CrCb''' | style="background:#6666cc;" | || style="background:#666699;" | || style="background:#6666cc;" | || style="background:#666699;" | | style="background:#6666cc;" | || style="background:#666699;" | || style="background:#66cc66;" | || style="background:#669966;" | | style="background:#6666cc;" | || style="background:#666699;" | || style="background:#66cc66;" | || style="background:#669966;" | | style="background:#6666cc;" | || style="background:#669999;" | || style="background:#66cc66;" | || style="background:#666666;" | | style="background:#6666cc;" | || style="background:#669999;" | || style="background:#66cc66;" | || style="background:#666666;" | |- | style="background:#996699;" | || style="background:#cc66cc;" | || style="background:#996699;" | || style="background:#cc66cc;" | | style="background:#666699;" | || style="background:#6666cc;" | || style="background:#669966;" | || style="background:#66cc66;" | | style="background:#996699;" | || style="background:#cc66cc;" | || style="background:#999966;" | || style="background:#cccc66;" | | style="background:#666699;" | || style="background:#66cccc;" | || style="background:#669966;" | || style="background:#999999;" | | style="background:#996699;" | || style="background:#cccccc;" | || style="background:#999966;" | || style="background:#cc6666;" | |- | | colspan="4" style="font-size:larger;" | '''=''' | colspan="4" style="font-size:larger;" | '''=''' | colspan="4" style="font-size:larger;" | '''=''' | colspan="4" style="font-size:larger;" | '''=''' | colspan="4" style="font-size:larger;" | '''=''' |- | rowspan="2" style="height:50px;" | '''Y'<nowiki/>''' | style="background:#cccccc;" | || style="background:#999999;" | || style="background:#cccccc;" | || style="background:#999999;" | | style="background:#cccccc;" | || style="background:#999999;" | || style="background:#cccccc;" | || style="background:#999999;" | | style="background:#cccccc;" | || style="background:#999999;" | || style="background:#cccccc;" | || style="background:#999999;" | | style="background:#cccccc;" | || style="background:#999999;" | || style="background:#cccccc;" | || style="background:#999999;" | | style="background:#cccccc;" | || style="background:#999999;" | || style="background:#cccccc;" | || style="background:#999999;" | |- | style="background:#999999;" | || style="background:#cccccc;" | || style="background:#999999;" | || style="background:#cccccc;" | | style="background:#999999;" | || style="background:#cccccc;" | || style="background:#999999;" | || style="background:#cccccc;" | | style="background:#999999;" | || style="background:#cccccc;" | || style="background:#999999;" | || style="background:#cccccc;" | | style="background:#999999;" | || style="background:#cccccc;" | || style="background:#999999;" | || style="background:#cccccc;" | | style="background:#999999;" | || style="background:#cccccc;" | || style="background:#999999;" | || style="background:#cccccc;" | |- | | colspan="4" style="font-size:larger;" | '''+''' | colspan="4" style="font-size:larger;" | '''+''' | colspan="4" style="font-size:larger;" | '''+''' | colspan="4" style="font-size:larger;" | '''+''' | colspan="4" style="font-size:larger;" | '''+''' |- | | 1 || 2 || 3 || 4 || style="padding-left:1ex;" | ''J''|| = 4 | 1 || 2 || 3 || 4 || style="padding-left:1ex;" | ''J''|| = 4 | 1 || 2 || 3 || 4 || style="padding-left:1ex;" | ''J''|| = 4 | 1 || 2 || 3 || 4 || style="padding-left:1ex;" | ''J''|| = 4 | 1 || 2 || 3 || 4 || style="padding-left:1ex;" | ''J''|| = 4 |- | rowspan="2" style="height:50px;" | '''(Cr, Cb)''' | colspan="4" style="background:#6666ff;" | '''1''' | style="padding-left:1ex;" | ''a''|| = '''1''' | colspan="2" style="background:#6666ff;" | '''1''' | colspan="2" style="background:#66ff66;" | '''2''' | style="padding-left:1ex;" | ''a''|| = '''2''' | colspan="2" style="background:#6666ff;" | '''1''' | colspan="2" style="background:#66ff66;" | '''2''' | style="padding-left:1ex;" | ''a''|| = '''2''' | style="background:#6666ff;" | '''1''' | style="background:#66ffff;" | '''2''' | style="background:#66ff66;" | '''3''' | style="background:#999999;" | '''4''' | style="padding-left:1ex;" | ''a''|| = '''4''' | style="background:#6666ff;" | '''1''' | style="background:#66ffff;" | '''2''' | style="background:#66ff66;" | '''3''' | style="background:#999999;" | '''4''' | style="padding-left:1ex;" | ''a''|| = '''4''' |- | colspan="4" style="background:#ff66ff;" | '''''1''''' | style="padding-left:1ex;" | ''b''|| = '''''1''''' | colspan="2" style="background:#6666ff; border-top:1px dotted;" | | colspan="2" style="background:#66ff66; border-top:1px dotted;" | | style="padding-left:1ex;" | ''b''|| = '''''0''''' | colspan="2" style="background:#ff66ff;" | '''''1''''' | colspan="2" style="background:#ffff66;" | '''''2''''' | style="padding-left:1ex;" | ''b''|| = '''''2''''' | style="background:#6666ff; border-top:1px dotted;" | | style="background:#66ffff; border-top:1px dotted;" | | style="background:#66ff66; border-top:1px dotted;" | | style="background:#999999; border-top:1px dotted;" | | style="padding-left:1ex;" | ''b''|| = '''''0''''' | style="background:#ff66ff;" | '''''1''''' | style="background:#ffffff;" | '''''2''''' | style="background:#ffff66;" | '''''3''''' | style="background:#ff6666;" | '''''4''''' | style="padding-left:1ex;" | ''b''|| = '''''4''''' |- | | colspan="6" | <small>¼ horizontal resolution,<br />full vertical resolution</small> | colspan="6" | <small>½ horizontal resolution,<br />½ vertical resolution</small> | colspan="6" | <small>½ horizontal resolution,<br />full vertical resolution</small> | colspan="6" | <small>full horizontal resolution,<br />½ vertical resolution</small> | colspan="6" | <small>full horizontal resolution,<br />full vertical resolution</small> |} The mapping examples given are only theoretical and for illustration. Also the diagram does not indicate any chroma filtering, which should be applied to avoid [[aliasing]]. To calculate required bandwidth factor relative to 4:4:4 (or 4:4:4:4), one needs to sum all the factors and divide the result by 12 (or 16, if alpha is present).
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Chroma subsampling
(section)
Add topic