Page 1 of 1

Handling pictures in the code of VLC

Posted: 31 Mar 2005 10:09
by Sn@ke
Hello

I'm currently trying to find where in the source code I can access pictures pixel per pixel before they're sent to the output stream (I need to redirect them, or write RGB value in a text file).
I tried to write to a file the contents of the picture_t objects in the vout_RenderPicture method (in vout_pictures.c), but I can't find RGB coefficients for each pixel.

Can someone please help me ? I've read the API's documentation, but I still can't find a solution.

Thanks

Posted: 31 Mar 2005 16:31
by The DJ
In future (current development versions) there is a Snapshot feature that processes a picture_t and writes it to a file. (jpg or png)

also there are picture filters in the next version.

http://developers.videolan.org/vlc/vlc/ ... re__t.html
Describes the structure of picture_t and if you read it then you will see that this can be either a YUV or a RGB picture, planar of packed. 32bits or 4 bits. There are many possibilities.

Posted: 31 Mar 2005 16:41
by Sn@ke
Thank you, but I still have little problems extracting YUV values of my picture (the Y coefficient is fine, but there isn't the "right number" of U and V value).