[Ffmpeg-devel] [RFC] ZMBV encoder
Michael Niedermayer
michaelni
Tue Dec 5 15:53:17 CET 2006
Hi
On Tue, Dec 05, 2006 at 02:17:11PM +0200, Kostya wrote:
[...]
> > > +/** Block comparing function
> > > + * XXX should be optimized and moved to DSPContext
> > > + * TODO handle out of edge ME
> > > + */
> > > +int block_cmp(uint8_t *src, int stride, uint8_t *src2, int stride2, int bw, int bh)
> > > +{
> > > + int sum = 0;
> > > + int i, j;
> > > + for(j = 0; j < bh; j++){
> > > + for(i = 0; i < bw; i++)
> > > + sum += src[i] ^ src2[i];
> > > + src += stride;
> > > + src2 += stride2;
> > > + }
> > > + return sum;
> > > +}
> >
> > i dont think sum += src[i] ^ src2[i]; is optimal compression wise ...
> > _maybe_
>
> Maybe, but on some files it compresses ~1% better than
> sum+=FFABS(src[i]-src2[i]);
i guess these are files with the palette in randomized order
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
If you really think that XML is the answer, then you definitly missunderstood
the question -- Attila Kinali
More information about the ffmpeg-devel
mailing list