[XviD-devel] this new motion estimation people are talking about

Radoslaw 'sysKin' Czyz xvid-devel@xvid.org
Fri, 13 Sep 2002 23:53:28 +0930


------------FA5E1832553DE94
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hey everybody.

I see there isn't much traffic in the mailing list lately, so I've
decided to give you this new motion estimation code people have been
talking about.
I've been using this code for about five days without any problems,
so I have a (misleading) feeling that it's bugfree (ok I know it's not
possible!). So, if you just want to take a look or compile or
something - do so.
The code is based on cvs' code I have. I don't know if that's the most
recent version but I don't seem to be able to get any newer (is there
dev-api-2_1 branch in cvs? or what's it called??). I got lost in the
new cvs ;).

I attach a brief 'changelog' to this letter which simply states what's
new in particular files. If I haven't done a mistake, all the files
which *need* to be updated are mentioned there, while all other files
may stay is they are (which doesn't mean that the changes I've done
aren't nice).

Comments or possible problems:
 - compile with BFRAMES #defined
 - artifacts when max_bframes = -1 and decoder is different than
xvid. I don't know if it was fixed in normal cvs, *a* bug was fixed
but I don't know if it was the one (if it was the one, please tell me
where are the updated files and what's changed)
 - don't use ffdshow for bframes + inter4v
 - don't use divx5 decoder for more than 2 B-frames in a row
 - don't expect it to work. That's why I'm giving it to you - it works
for me which doesn't mean anything

Cool 'features' to check:
 - PMV_EXTSEARCH8 enables a dedicated inter4v search and can further
improve PSNR (I won't say 'quality' as 0.1 dB is not noticable). Once
it's activated, you can use PMV_ADVANCEDDIAMOND8 or PMV_USESQUARES8 to
use 'better' inter4v search. Doesn't slow down much ;)
 - use hinted ME search for 2-pass. It's activated when you use hinted
ME. It's faster then full search (I hope) and gives better quality by
about 0.05dB. It's still experimantal but seems to work :) . Note:
hinted ME still doesn't work with bframes (you need to set max_bframes
to -1). 

The files: http://users.bigpond.com/src.zip .


Best regards,
Radek
------------FA5E1832553DE94
Content-Type: text/plain; name="changes.log.txt"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="changes.log.txt"

eHZpZC5jDQoNCiAtIGhhbGZwZWw4X3JlZmluZSBmdW5jdGlv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