Pictures' format before display

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

Pictures' format before display

Postby Sn@ke » 31 Mar 2005 16:17

Hello,

I'm trying to understand how datas are stored in the picture_t structure...
For instance, I try to read datas of a 128*128 image, with the following loop :

for (i=0; i< p_pic->p_heap->i_width * p_pic->p_heap->i_height; i++)
{
coeff = p_pic->p_data;

fprintf (pFile, "%d:%d ", i, coeff);

}


I obtain the values corresponding to the Y coefficient (128*128 values)... (I checked it)
But I don't know how to get U and V values : I tried to read next values, it seems to be U and V but the number of values is incorrect (only 4096 values), so I don't understand how data pictures are stored.

It would be great if someone could help me :)

Thanks :wink:

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

Postby Sn@ke » 01 Apr 2005 09:38

I found the solution to my problem :)


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 18 guests