Re: Gray scale video output from theora
Ralph Giles <[email protected]>
| Newsgroups | gmane.comp.multimedia.ogg.theora.devel |
|---|---|
| Message-ID | <[email protected]> |
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
_______________________________________________
theora-dev mailing list
[email protected]
http://lists.xiph.org/mailman/listinfo/theora-dev