Handling pictures in the code of VLC

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
Sn@ke
New Cone
New Cone
Posts: 9
Joined: 24 Mar 2005 17:44

Handling pictures in the code of VLC

Postby Sn@ke » 31 Mar 2005 10:09

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

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Postby The DJ » 31 Mar 2005 16:31

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.
Don't use PMs for support questions.

Sn@ke
New Cone
New Cone
Posts: 9
Joined: 24 Mar 2005 17:44

Postby Sn@ke » 31 Mar 2005 16:41

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).


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 21 guests