<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<a href="http://msdn.microsoft.com/en-us/library/ms893078.aspx">http://msdn.microsoft.com/en-us/library/ms893078.aspx</a><br>
or <a href="http://en.wikipedia.org/wiki/YUV">http://en.wikipedia.org/wiki/YUV</a>
- more complex<br>
<br>
Julien Isorce wrote:
<blockquote
 cite="mid:180a127d0904270612l3c021151xd425b92cfaf57af0@mail.gmail.com"
 type="cite">Hi,<br>
  <br>
When I convert a pure black image to yuv using ffmpegcolorspace, then y
is equal to 16, u and v are equal to 0.<br>
&nbsp;If the input is pure white then y is equal to 251.<br>
  <br>
proof:<br>
gst-launch-0.10 videotestsrc num_buffers=1 pattern=2 !
"video/x-raw-rgb, bpp=24, depth=24, width=4, height=4" !
ffmpegcolorspace ! "video/x-raw-yuv, format=(fourcc)YUY2" ! filesink
location=black.yuv<br>
  <br>
then hexedit black.yuv -&gt; <br>
(y1 u y2 v)<br>
10 80 10 80 -&gt;&nbsp; 16 128 16 128<br>
10 80 10 80<br>
10 80 10 80<br>
10 80 10 80<br>
  <br>
The 128 is ok but I do not understand why y is equal to 16. Why not 0 ?<br>
  <br>
Sincerely<br>
  <br>
Julien<br>
  <br>
  <br>
  <pre wrap="">
<hr size="4" width="90%">
------------------------------------------------------------------------------
Crystal Reports &amp;#45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty&amp;#45;free distribution of the report engine for externally facing 
server and web deployment.
<a class="moz-txt-link-freetext" href="http://p.sf.net/sfu/businessobjects">http://p.sf.net/sfu/businessobjects</a></pre>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a>
  </pre>
</blockquote>
<br>
</body>
</html>