]> git.videolan.org Git - x264.git/commit
Convert NNZ to raster order and other optimizations
authorJason Garrett-Glaser <darkshikari@gmail.com>
Tue, 24 Jun 2008 18:23:50 +0000 (12:23 -0600)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Tue, 24 Jun 2008 18:23:50 +0000 (12:23 -0600)
commita55f1c31d0da2e0bf04916e7f13813c8e902cfd1
tree2d8ddbca05fe4d7a43bd9c4dceeb4b4520e24288
parent2c597171d5126c3ccae7546f6699d6c4d8ec5e3a
Convert NNZ to raster order and other optimizations
Converting NNZ to raster order simplifies a lot of the load/store code and allows more use of write-combining.
More use of write-combining throughout load/save code in common/macroblock.c
GCC has aliasing issues in the case of stores to 8-bit heap-allocated arrays; dereferencing the pointer once avoids this problem and significantly increases performance.
More manual loop unrolling and such.
Move all packXtoY functions to macroblock.h so any function can use them.
Add pack8to32.
Minor optimizations to encoder/macroblock.c
common/common.h
common/frame.c
common/macroblock.c
common/macroblock.h
common/predict.c
encoder/macroblock.c