On date Wednesday 2008-12-03 14:50:52 +0100, Clemente Tort Barbero encoded:
> Thanks, in the doc generated by doxygen isn't anything... I had to look at
> my .h
> 
> Otherwise,
>      /** \
>      * pointer to the picture planes.\
>      * This might be different from the first allocated byte\
>      * - encoding: \
>      * - decoding: \
>      */\
>     uint8_t *data[4];\
>     int linesize[4];\
> 
> Why is a array with 4 values?

This is the same as in AVPicture, so that's used to contain the
pointer to an allocated (decoded) picture, the interpretation of the
values in those arrays depends on the pix_fmt.

Indeed you can also cast an AVFrame to an AVPicture (when it makes
sense), for example like this:

/* copy frame into pict (shallow copy) */
AVPicture pict = (AVPicture)frame;

then use on pict the various avpicture_* functions.

Regards.
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to