<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On 16-Feb-08, at 10:05 PM, janaka priyadarshana wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span style="color: rgb(0, 102, 0);"><font color="#000000"><span style="color: rgb(204, 0, 0);">int temp = 0;</span><br></font></span><span style="color: rgb(0, 102, 0);">  for ( i = 0; i &lt; yuv-&gt;uv_height; i++ ){<br>    memset( LocalDataPtr, <span style="color: rgb(204, 0, 0);">&amp;temp,</span> yuv-&gt;uv_width );<br>     LocalDataPtr -= yuv-&gt;uv_width;<br>    InputDataPtr += yuv-&gt;uv_stride;<br>  }</span></blockquote><div><br class="webkit-block-placeholder"></div><div>In addition to Shane's comment, gray is u=v=128, not zero. That's the likely origin of the odd colours in your output.</div><div><br class="webkit-block-placeholder"></div><div> -r</div></div><br></body></html>