[FFmpeg-devel] ZMBV Improved Motion Estimation

Michael Niedermayer michaelni
Mon May 12 00:06:40 CEST 2008


On Sun, May 11, 2008 at 02:55:43PM -0700, Jason Garrett-Glaser wrote:
> > if(histogram[0] || src[-stride]!=src2[-stride2])
> >    sum += 256*(bw*bh - histogram[0]);
> > return sum;
> >
> > should achive the same without the larger memset()
> 
> Does ZMBV support blocks larger than 16x16? 

yes


> If so, this (and the
> current code, too) will break for such blocks.

yes

The question is how much do we gain from larger blocks?
If its nothing or negligible then i think its better if we just
ignore larger blocks and not bother coming up with complex or slow
code ...

Also note that for smaller blocks the memset(0) will eat the overwhelming
majority of the time. zeroing 256 elements vs. a loop with 4*4 iterations ...

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

There will always be a question for which you do not know the correct awnser.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080512/5fa9c1c8/attachment.pgp>



More information about the ffmpeg-devel mailing list