[FFmpeg-devel] ZMBV Improved Motion Estimation
Mon May 12 00:06:40 CEST 2008
On Sun, May 11, 2008 at 02:55:43PM -0700, Jason Garrett-Glaser wrote:
> > if(histogram || src[-stride]!=src2[-stride2])
> > sum += 256*(bw*bh - histogram);
> > return sum;
> > should achive the same without the larger memset()
> Does ZMBV support blocks larger than 16x16?
> If so, this (and the
> current code, too) will break for such blocks.
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
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
Size: 189 bytes
Desc: Digital signature
More information about the ffmpeg-devel