[theora-dev] Gray scale video output from theora

Ralph Giles giles at xiph.org
Sun Feb 17 00:10:50 PST 2008


On 16-Feb-08, at 10:05 PM, janaka priyadarshana wrote:

> int temp = 0;
>   for ( i = 0; i < yuv->uv_height; i++ ){
>     memset( LocalDataPtr, &temp, yuv->uv_width );
>     LocalDataPtr -= yuv->uv_width;
>     InputDataPtr += yuv->uv_stride;
>   }

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.

  -r

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/theora-dev/attachments/20080217/e041e45c/attachment.htm


More information about the theora-dev mailing list