]> git.videolan.org Git - x264.git/commit
Much faster CABAC RDO
authorJason Garrett-Glaser <darkshikari@gmail.com>
Sun, 28 Dec 2008 02:36:14 +0000 (21:36 -0500)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Sun, 28 Dec 2008 12:47:25 +0000 (07:47 -0500)
commit84a1ca6ce70fe7bad4922ddc5a72c2e9cd73703b
tree6acb1ca172d3e790b70504e4c8f08448709b66f7
parent40ad1b6d411d1e7d0788d29627804a19977bb6ee
Much faster CABAC RDO
Since RDO doesn't care about what order bit costs are calculated, merge sigmap and level coding into the same loop in RDO.
This is bit-exact for 4x4dct but slightly incorrect for 8x8dct due to the sigmap containing duplicated contexts.
However, the PSNR penalty of this is extremely small (~0.001db).
Speed benefit is about 15% in 4x4dct and 30% in 8x8dct residual bit cost calculation at QP20.
Overall encoding speed benefit is up to 5%, depending on encoding settings.
Also remove an old unnecessary CABAC table that hasn't been used for years.
common/cabac.c
encoder/cabac.c