[vlc-devel] Re: Video filter chroma conversion

Antoine Cellerier dionoea at videolan.org
Wed Jun 28 21:30:22 CEST 2006


Hi,

On Wed, Jun 28, 2006, Dugal Harris wrote:
> I am writing video filters that require RGB (rv24?/rv32?) input video.  
> Currently the input video is in a YUV format.  Is there a way I can 
> force VLC to provide the filters with RGB video?  If not, please could 
> you provide some pointers as to how can I convert to RGB inside the filter?

You can convert images from one format to another using the
image_Convert( ) function. See mosaic.c for example usage of this
function in a video filter. You will have to set the fmt_out.i_chroma
variable to the color space's fourcc.

I hope this helps,

-- 
Antoine Cellerier
dionoea

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list