[Ffmpeg-devel] pixel padding after avcodec_decode_video

Martin Boehme boehme
Thu May 12 15:08:50 CEST 2005


> after avcodec_decode_video i obtain a frame who is padded in its Y
> component with 16 pixel
> 
> ---16pixel---/image/---16pixel    4 every line
> 
> what abot U and V component?
>  are they padded with 8 pixels?

RTFC... ;-)

typedef struct AVPicture {
     uint8_t *data[4];
     int linesize[4];       ///< number of bytes per line
} AVPicture;

So linesize[0] is the number of bytes per line for Y, linesize[1] for U 
and linesize[2] for V. Generally, the alignment will be the same for Y, 
U and V...

HTH

Martin

-- 
Martin B?hme
Inst. f. Neuro- and Bioinformatics
Ratzeburger Allee 160, D-23538 Luebeck
Phone: +49 451 500 5514
Fax:   +49 451 500 5502
boehme at inb.uni-luebeck.de





More information about the ffmpeg-devel mailing list