1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>YUV Formats</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="LINUX MEDIA INFRASTRUCTURE API"><link rel="up" href="pixfmt.html" title="Chapter 2. Image Formats"><link rel="prev" href="re11.html" title="V4L2_PIX_FMT_SRGGB12 ('RG12'), V4L2_PIX_FMT_SGRBG12 ('BA12'), V4L2_PIX_FMT_SGBRG12 ('GB12'), V4L2_PIX_FMT_SBGGR12 ('BG12'),"><link rel="next" href="packed-yuv.html" title="Packed YUV formats"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">YUV Formats</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="re11.html">Prev</a> </td><th width="60%" align="center">Chapter 2. Image Formats</th><td width="20%" align="right"> <a accesskey="n" href="packed-yuv.html">Next</a></td></tr></table><hr></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="yuv-formats"></a>YUV Formats</h2></div></div></div><div class="toc"><dl class="toc"><dt><span class="refentrytitle"><a href="packed-yuv.html">Packed YUV formats</a></span><span class="refpurpose"> — Packed YUV formats</span></dt><dt><span class="refentrytitle"><a href="V4L2-PIX-FMT-GREY.html">V4L2_PIX_FMT_GREY ('GREY')</a></span><span class="refpurpose"> — Grey-scale image</span></dt><dt><span class="refentrytitle"><a href="V4L2-PIX-FMT-Y10.html">V4L2_PIX_FMT_Y10 ('Y10 ')</a></span><span class="refpurpose"> — Grey-scale image</span></dt><dt><span class="refentrytitle"><a href="V4L2-PIX-FMT-Y12.html">V4L2_PIX_FMT_Y12 ('Y12 ')</a></span><span class="refpurpose"> — Grey-scale image</span></dt><dt><span class="refentrytitle"><a href="V4L2-PIX-FMT-Y10BPACK.html">V4L2_PIX_FMT_Y10BPACK ('Y10B')</a></span><span class="refpurpose"> — Grey-scale image as a bit-packed array</span></dt><dt><span class="refentrytitle"><a href="V4L2-PIX-FMT-Y16.html">V4L2_PIX_FMT_Y16 ('Y16 ')</a></span><span class="refpurpose"> — Grey-scale image</span></dt><dt><span class="refentrytitle"><a href="V4L2-PIX-FMT-UV8.html">V4L2_PIX_FMT_UV8 ('UV8')</a></span><span class="refpurpose"> — UV plane interleaved</span></dt><dt><span class="refentrytitle"><a href="V4L2-PIX-FMT-YUYV.html">V4L2_PIX_FMT_YUYV ('YUYV')</a></span><span class="refpurpose"> — Packed format with ½ horizontal chroma 2resolution, also known as YUV 4:2:2</span></dt><dt><span class="refentrytitle"><a href="V4L2-PIX-FMT-UYVY.html">V4L2_PIX_FMT_UYVY ('UYVY')</a></span><span class="refpurpose"> — Variation of 3<code class="constant">V4L2_PIX_FMT_YUYV</code> with different order of samples 4in memory</span></dt><dt><span class="refentrytitle"><a href="V4L2-PIX-FMT-YVYU.html">V4L2_PIX_FMT_YVYU ('YVYU')</a></span><span class="refpurpose"> — Variation of 5<code class="constant">V4L2_PIX_FMT_YUYV</code> with different order of samples 6in memory</span></dt><dt><span class="refentrytitle"><a href="V4L2-PIX-FMT-VYUY.html">V4L2_PIX_FMT_VYUY ('VYUY')</a></span><span class="refpurpose"> — Variation of 7<code class="constant">V4L2_PIX_FMT_YUYV</code> with different order of samples 8in memory</span></dt><dt><span class="refentrytitle"><a href="V4L2-PIX-FMT-Y41P.html">V4L2_PIX_FMT_Y41P ('Y41P')</a></span><span class="refpurpose"> — Format with ¼ horizontal chroma 9resolution, also known as YUV 4:1:1</span></dt><dt><span class="refentrytitle"><a href="re24.html">V4L2_PIX_FMT_YVU420 ('YV12'), V4L2_PIX_FMT_YUV420 ('YU12')</a></span><span class="refpurpose"> — Planar formats with ½ horizontal and 10vertical chroma resolution, also known as YUV 4:2:0</span></dt><dt><span class="refentrytitle"><a href="V4L2-PIX-FMT-YUV420M.html">V4L2_PIX_FMT_YUV420M ('YM12')</a></span><span class="refpurpose"> — Variation of <code class="constant">V4L2_PIX_FMT_YUV420</code> 11 with planes non contiguous in memory. </span></dt><dt><span class="refentrytitle"><a href="V4L2-PIX-FMT-YVU420M.html">V4L2_PIX_FMT_YVU420M ('YM21')</a></span><span class="refpurpose"> — Variation of <code class="constant">V4L2_PIX_FMT_YVU420</code> 12 with planes non contiguous in memory. </span></dt><dt><span class="refentrytitle"><a href="re27.html">V4L2_PIX_FMT_YVU410 ('YVU9'), V4L2_PIX_FMT_YUV410 ('YUV9')</a></span><span class="refpurpose"> — Planar formats with ¼ horizontal and 13vertical chroma resolution, also known as YUV 4:1:0</span></dt><dt><span class="refentrytitle"><a href="V4L2-PIX-FMT-YUV422P.html">V4L2_PIX_FMT_YUV422P ('422P')</a></span><span class="refpurpose"> — Format with ½ horizontal chroma resolution, 14also known as YUV 4:2:2. Planar layout as opposed to 15<code class="constant">V4L2_PIX_FMT_YUYV</code></span></dt><dt><span class="refentrytitle"><a href="V4L2-PIX-FMT-YUV411P.html">V4L2_PIX_FMT_YUV411P ('411P')</a></span><span class="refpurpose"> — Format with ¼ horizontal chroma resolution, 16also known as YUV 4:1:1. Planar layout as opposed to 17<code class="constant">V4L2_PIX_FMT_Y41P</code></span></dt><dt><span class="refentrytitle"><a href="re30.html">V4L2_PIX_FMT_NV12 ('NV12'), V4L2_PIX_FMT_NV21 ('NV21')</a></span><span class="refpurpose"> — Formats with ½ horizontal and vertical 18chroma resolution, also known as YUV 4:2:0. One luminance and one 19chrominance plane with alternating chroma samples as opposed to 20<code class="constant">V4L2_PIX_FMT_YVU420</code></span></dt><dt><span class="refentrytitle"><a href="re31.html">V4L2_PIX_FMT_NV12M ('NM12'), V4L2_PIX_FMT_NV21M ('NM21'), V4L2_PIX_FMT_NV12MT_16X16</a></span><span class="refpurpose"> — Variation of <code class="constant">V4L2_PIX_FMT_NV12</code> and <code class="constant">V4L2_PIX_FMT_NV21</code> with planes 21 non contiguous in memory. </span></dt><dt><span class="refentrytitle"><a href="re32.html">V4L2_PIX_FMT_NV12MT ('TM12')</a></span><span class="refpurpose"> — Formats with ½ horizontal and vertical 22chroma resolution. This format has two planes - one for luminance and one for 23chrominance. Chroma samples are interleaved. The difference to 24<code class="constant">V4L2_PIX_FMT_NV12</code> is the memory layout. Pixels are 25grouped in macroblocks of 64x32 size. The order of macroblocks in memory is 26also not standard. 27 </span></dt><dt><span class="refentrytitle"><a href="re33.html">V4L2_PIX_FMT_NV16 ('NV16'), V4L2_PIX_FMT_NV61 ('NV61')</a></span><span class="refpurpose"> — Formats with ½ horizontal 28chroma resolution, also known as YUV 4:2:2. One luminance and one 29chrominance plane with alternating chroma samples as opposed to 30<code class="constant">V4L2_PIX_FMT_YVU420</code></span></dt><dt><span class="refentrytitle"><a href="re34.html">V4L2_PIX_FMT_NV16M ('NM16'), V4L2_PIX_FMT_NV61M ('NM61')</a></span><span class="refpurpose"> — Variation of <code class="constant">V4L2_PIX_FMT_NV16</code> and <code class="constant">V4L2_PIX_FMT_NV61</code> with planes 31 non contiguous in memory. </span></dt><dt><span class="refentrytitle"><a href="re35.html">V4L2_PIX_FMT_NV24 ('NV24'), V4L2_PIX_FMT_NV42 ('NV42')</a></span><span class="refpurpose"> — Formats with full horizontal and vertical 32chroma resolutions, also known as YUV 4:4:4. One luminance and one 33chrominance plane with alternating chroma samples as opposed to 34<code class="constant">V4L2_PIX_FMT_YVU420</code></span></dt><dt><span class="refentrytitle"><a href="V4L2-PIX-FMT-M420.html">V4L2_PIX_FMT_M420 ('M420')</a></span><span class="refpurpose"> — Format with ½ horizontal and vertical chroma 35 resolution, also known as YUV 4:2:0. Hybrid plane line-interleaved 36 layout.</span></dt></dl></div><p>YUV is the format native to TV broadcast and composite video 37signals. It separates the brightness information (Y) from the color 38information (U and V or Cb and Cr). The color information consists of 39red and blue <span class="emphasis"><em>color difference</em></span> signals, this way 40the green component can be reconstructed by subtracting from the 41brightness component. See <a class="xref" href="colorspaces.html" title="Colorspaces">the section called “Colorspaces”</a> for conversion 42examples. YUV was chosen because early television would only transmit 43brightness information. To add color in a way compatible with existing 44receivers a new signal carrier was added to transmit the color 45difference signals. Secondary in the YUV format the U and V components 46usually have lower resolution than the Y component. This is an analog 47video compression technique taking advantage of a property of the 48human visual system, being more sensitive to brightness 49information.</p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="re11.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="pixfmt.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="packed-yuv.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">V4L2_PIX_FMT_SRGGB12 ('RG12'), 50 V4L2_PIX_FMT_SGRBG12 ('BA12'), 51 V4L2_PIX_FMT_SGBRG12 ('GB12'), 52 V4L2_PIX_FMT_SBGGR12 ('BG12'), 53  </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Packed YUV formats</td></tr></table></div></body></html> 54