[Ffmpeg-devel] Image width converted from 320 to 352 pixels
Sat Jun 10 03:32:42 CEST 2006
----- Original Message -----
From: "Panagiotis Issaris" <takis.issaris at uhasselt.be>
To: "FFMpeg development discussions and patches" <ffmpeg-devel at mplayerhq.hu>
Sent: Friday, June 09, 2006 5:41 AM
Subject: Re: [Ffmpeg-devel] Image width converted from 320 to 352 pixels
> Ramiro Polla wrote:
>> I noticed the buffer is for 352x240 pixels. With my 320x240 image, I
>> simply lose 32 pixels every line. So every line starts shifted by another
>> 32 pixels, and the image goes short at the end. It's like if I took a
>>  array and made it , not displaying 32 pixels per
>> line. Like
>> Is there something I'm missing from withing libavcodec about buffer sizes
>> or something like that?
> I do not really know what structs you are using, but if you are using
> AVFrame, then besides the actual buffer data, stored in "uint8_t
> there's also the "int linesize;" which is possibly 352 in your specific
> case. So, the width of the image is not necessarily the same as the
> or stride.
> Hope this helps (if I understood your problem correctly in the first place
> :) ).
Oh..... Thanks. Got it.
> With friendly regards,
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
More information about the ffmpeg-devel