[Ffmpeg-devel] Any way to override the aligned line-size?
Tue May 2 10:04:24 CEST 2006
On Mon, May 01, 2006 at 08:33:06PM -0700, Mike Melanson wrote:
> Cyril Zorin wrote:
> >Suppose I tell ffmpeg that my image size is 640x480. I check the
> >aligned size, which corresponds to 672 pixels instead of 640. This
> >forces me to hand-copy every line using memcpy (not so bad), instead of
> >doing a quick fire using memcpy of the whole buffer (better).
RTFS AVCodecContext.get/release_buffer() you maybe dont need any memcpy()
> >Is there any way to force ffmpeg to use the image width as the line
> >size, or perhaps is there some option I'm neglecting to set somewhere?
> I don't think so. Yes, I know it's tedious, especially for old-school
> RLE-type algorithms, but that's just the way it is. Take a look at FLIC
> which has to deal with the strides.
from the codec side forcing width == stride should be possible by simply
not supporting DR1 and allocating images so that width==stride, note
though that if stride % 16 != 0 then things like altivec, SSE, MMX, ...
will be very slow, the whole is stupid but well ...
from the applications side lorren already provided the awnser
In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is
More information about the ffmpeg-devel