Page 1 of 1

yuv<->rgb conversion in video filters

Posted: 14 Jun 2011 23:30
by koyaya
Hello
I am writing a filter and i need to work in RGB domain for this so i need a yuv <-> rgb conversion
can I use filters in modules/video_chroma/ and how (references to any existing code should be enough)
or are there other ways to do it?

Re: yuv<->rgb conversion in video filters

Posted: 15 Jun 2011 09:22
by Rémi Denis-Courmont
You cannot change the input format. Refer to the posterize filter for reference on dealing with this case.

Re: yuv<->rgb conversion in video filters

Posted: 15 Jun 2011 10:20
by koyaya
Remi, thanks for the answer
i see references to modules/video_filter/posterize.c
but its not there in the tree any more..
i saw function in modules\video_chroma? are they relevant?

Re: yuv<->rgb conversion in video filters

Posted: 15 Jun 2011 12:25
by Rémi Denis-Courmont
It is in the tree. You must be looking at the wrong tree.