]> git.sesse.net Git - x264/commit
Convert NNZ to raster order and other optimizations
authorFiona Glaser <fiona@x264.com>
Tue, 24 Jun 2008 18:23:50 +0000 (12:23 -0600)
committerFiona Glaser <fiona@x264.com>
Tue, 24 Jun 2008 18:23:50 +0000 (12:23 -0600)
commitec3d09554addbcecb8cf82f3ff33ac737a6f996b
tree2d8ddbca05fe4d7a43bd9c4dceeb4b4520e24288
parentd97bcbcbebcbe37d9e36b414a3eb371fdc0f4450
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