1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
2<HTML
3><HEAD
4><TITLE
5>V4L2_PIX_FMT_UYVY ('UYVY')</TITLE
6><META
7NAME="GENERATOR"
8CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
9REL="HOME"
10TITLE="Video for Linux Two API Specification"
11HREF="book1.htm"><LINK
12REL="UP"
13TITLE="YUV Formats"
14HREF="x3891.htm"><LINK
15REL="PREVIOUS"
16TITLE="V4L2_PIX_FMT_YUYV ('YUYV')"
17HREF="r4339.htm"><LINK
18REL="NEXT"
19TITLE="V4L2_PIX_FMT_Y41P ('Y41P')"
20HREF="r4629.htm"></HEAD
21><BODY
22CLASS="REFENTRY"
23BGCOLOR="#FFFFFF"
24TEXT="#000000"
25LINK="#0000FF"
26VLINK="#840084"
27ALINK="#0000FF"
28><DIV
29CLASS="NAVHEADER"
30><TABLE
31SUMMARY="Header navigation table"
32WIDTH="100%"
33BORDER="0"
34CELLPADDING="0"
35CELLSPACING="0"
36><TR
37><TH
38COLSPAN="3"
39ALIGN="center"
40>Video for Linux Two API Specification: Revision 0.24</TH
41></TR
42><TR
43><TD
44WIDTH="10%"
45ALIGN="left"
46VALIGN="bottom"
47><A
48HREF="r4339.htm"
49ACCESSKEY="P"
50>Prev</A
51></TD
52><TD
53WIDTH="80%"
54ALIGN="center"
55VALIGN="bottom"
56></TD
57><TD
58WIDTH="10%"
59ALIGN="right"
60VALIGN="bottom"
61><A
62HREF="r4629.htm"
63ACCESSKEY="N"
64>Next</A
65></TD
66></TR
67></TABLE
68><HR
69ALIGN="LEFT"
70WIDTH="100%"></DIV
71><H1
72><A
73NAME="V4L2-PIX-FMT-UYVY"
74></A
75>V4L2_PIX_FMT_UYVY ('UYVY')</H1
76><DIV
77CLASS="REFNAMEDIV"
78><A
79NAME="AEN4488"
80></A
81><H2
82>Name</H2
83><CODE
84CLASS="CONSTANT"
85>V4L2_PIX_FMT_UYVY</CODE
86>&nbsp;--&nbsp;Variation of
87<CODE
88CLASS="CONSTANT"
89>V4L2_PIX_FMT_YUYV</CODE
90> with different order of samples
91in memory</DIV
92><DIV
93CLASS="REFSECT1"
94><A
95NAME="AEN4493"
96></A
97><H2
98>Description</H2
99><P
100>In this format each four bytes is two pixels. Each four
101bytes is two Y's, a Cb and a Cr. Each Y goes to one of the pixels, and
102the Cb and Cr belong to both pixels. As you can see, the Cr and Cb
103components have half the horizontal resolution of the Y
104component.</P
105><DIV
106CLASS="EXAMPLE"
107><A
108NAME="AEN4496"
109></A
110><P
111><B
112>Example 2-1. <CODE
113CLASS="CONSTANT"
114>V4L2_PIX_FMT_UYVY</CODE
115> 4 &times; 4
116pixel image</B
117></P
118><DIV
119CLASS="FORMALPARA"
120><P
121><B
122>Byte Order. </B
123>Each cell is one byte.
124                <DIV
125CLASS="INFORMALTABLE"
126><P
127></P
128><A
129NAME="AEN4502"
130></A
131><TABLE
132BORDER="0"
133FRAME="void"
134CLASS="CALSTABLE"
135><COL
136WIDTH="2*"
137ALIGN="LEFT"><COL><COL><COL><COL><COL><COL><COL><COL><TBODY
138VALIGN="TOP"
139><TR
140><TD
141>start&nbsp;+&nbsp;0:</TD
142><TD
143>Cb<SUB
144>00</SUB
145></TD
146><TD
147>Y'<SUB
148>00</SUB
149></TD
150><TD
151>Cr<SUB
152>00</SUB
153></TD
154><TD
155>Y'<SUB
156>01</SUB
157></TD
158><TD
159>Cb<SUB
160>01</SUB
161></TD
162><TD
163>Y'<SUB
164>02</SUB
165></TD
166><TD
167>Cr<SUB
168>01</SUB
169></TD
170><TD
171>Y'<SUB
172>03</SUB
173></TD
174></TR
175><TR
176><TD
177>start&nbsp;+&nbsp;8:</TD
178><TD
179>Cb<SUB
180>10</SUB
181></TD
182><TD
183>Y'<SUB
184>10</SUB
185></TD
186><TD
187>Cr<SUB
188>10</SUB
189></TD
190><TD
191>Y'<SUB
192>11</SUB
193></TD
194><TD
195>Cb<SUB
196>11</SUB
197></TD
198><TD
199>Y'<SUB
200>12</SUB
201></TD
202><TD
203>Cr<SUB
204>11</SUB
205></TD
206><TD
207>Y'<SUB
208>13</SUB
209></TD
210></TR
211><TR
212><TD
213>start&nbsp;+&nbsp;16:</TD
214><TD
215>Cb<SUB
216>20</SUB
217></TD
218><TD
219>Y'<SUB
220>20</SUB
221></TD
222><TD
223>Cr<SUB
224>20</SUB
225></TD
226><TD
227>Y'<SUB
228>21</SUB
229></TD
230><TD
231>Cb<SUB
232>21</SUB
233></TD
234><TD
235>Y'<SUB
236>22</SUB
237></TD
238><TD
239>Cr<SUB
240>21</SUB
241></TD
242><TD
243>Y'<SUB
244>23</SUB
245></TD
246></TR
247><TR
248><TD
249>start&nbsp;+&nbsp;24:</TD
250><TD
251>Cb<SUB
252>30</SUB
253></TD
254><TD
255>Y'<SUB
256>30</SUB
257></TD
258><TD
259>Cr<SUB
260>30</SUB
261></TD
262><TD
263>Y'<SUB
264>31</SUB
265></TD
266><TD
267>Cb<SUB
268>31</SUB
269></TD
270><TD
271>Y'<SUB
272>32</SUB
273></TD
274><TD
275>Cr<SUB
276>31</SUB
277></TD
278><TD
279>Y'<SUB
280>33</SUB
281></TD
282></TR
283></TBODY
284></TABLE
285><P
286></P
287></DIV
288>
289              </P
290></DIV
291><DIV
292CLASS="FORMALPARA"
293><P
294><B
295>Color Sample Location. </B
296>                <DIV
297CLASS="INFORMALTABLE"
298><P
299></P
300><A
301NAME="AEN4581"
302></A
303><TABLE
304BORDER="0"
305FRAME="void"
306CLASS="CALSTABLE"
307><COL><COL><COL><COL><COL><COL><COL><TBODY
308VALIGN="TOP"
309><TR
310><TD
311>&nbsp;</TD
312><TD
313>0</TD
314><TD
315>&nbsp;</TD
316><TD
317>1</TD
318><TD
319>&nbsp;</TD
320><TD
321>2</TD
322><TD
323>&nbsp;</TD
324><TD
325>3</TD
326></TR
327><TR
328><TD
329>0</TD
330><TD
331>Y</TD
332><TD
333>C</TD
334><TD
335>Y</TD
336><TD
337>&nbsp;</TD
338><TD
339>Y</TD
340><TD
341>C</TD
342><TD
343>Y</TD
344></TR
345><TR
346><TD
347>1</TD
348><TD
349>Y</TD
350><TD
351>C</TD
352><TD
353>Y</TD
354><TD
355>&nbsp;</TD
356><TD
357>Y</TD
358><TD
359>C</TD
360><TD
361>Y</TD
362></TR
363><TR
364><TD
365>2</TD
366><TD
367>Y</TD
368><TD
369>C</TD
370><TD
371>Y</TD
372><TD
373>&nbsp;</TD
374><TD
375>Y</TD
376><TD
377>C</TD
378><TD
379>Y</TD
380></TR
381><TR
382><TD
383>3</TD
384><TD
385>Y</TD
386><TD
387>C</TD
388><TD
389>Y</TD
390><TD
391>&nbsp;</TD
392><TD
393>Y</TD
394><TD
395>C</TD
396><TD
397>Y</TD
398></TR
399></TBODY
400></TABLE
401><P
402></P
403></DIV
404>
405              </P
406></DIV
407></DIV
408></DIV
409><DIV
410CLASS="NAVFOOTER"
411><HR
412ALIGN="LEFT"
413WIDTH="100%"><TABLE
414SUMMARY="Footer navigation table"
415WIDTH="100%"
416BORDER="0"
417CELLPADDING="0"
418CELLSPACING="0"
419><TR
420><TD
421WIDTH="33%"
422ALIGN="left"
423VALIGN="top"
424><A
425HREF="r4339.htm"
426ACCESSKEY="P"
427>Prev</A
428></TD
429><TD
430WIDTH="34%"
431ALIGN="center"
432VALIGN="top"
433><A
434HREF="book1.htm"
435ACCESSKEY="H"
436>Home</A
437></TD
438><TD
439WIDTH="33%"
440ALIGN="right"
441VALIGN="top"
442><A
443HREF="r4629.htm"
444ACCESSKEY="N"
445>Next</A
446></TD
447></TR
448><TR
449><TD
450WIDTH="33%"
451ALIGN="left"
452VALIGN="top"
453>V4L2_PIX_FMT_YUYV ('YUYV')</TD
454><TD
455WIDTH="34%"
456ALIGN="center"
457VALIGN="top"
458><A
459HREF="x3891.htm"
460ACCESSKEY="U"
461>Up</A
462></TD
463><TD
464WIDTH="33%"
465ALIGN="right"
466VALIGN="top"
467>V4L2_PIX_FMT_Y41P ('Y41P')</TD
468></TR
469></TABLE
470></DIV
471></BODY
472></HTML
473>
474