[FFmpeg-devel] Alignment implication in libswscale
Zuxy Meng
zuxy.meng
Tue Mar 11 14:27:24 CET 2008
Hi,
2008/3/11, Michael Niedermayer <michaelni at gmx.at>:
> On Tue, Mar 11, 2008 at 08:44:14PM +0800, Zuxy Meng wrote:
> > Hi,
> >
> > Is it safe when implementing libswscale to assume that src and dst
> > pointers are aligned to the natural boundary of its format? For
> > example assuming that a src pointing to RGB32/YUY2 format is aligned
> > to a 4-byte boundary and RGB24 a 3-byte one.
>
> You can generally assume 16byte alignment for src/dst/linesize.
> And its easy to fallback to the existing C code when alignment is not
> provided.
> The only case where alignment might be missing is for crop+scale ...
Thanks! And of course pls ignore my words about RGB24 in my last mail....
--
Zuxy
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6
More information about the ffmpeg-devel
mailing list