Moved the orient flipping into the ctxno_zc table.

Thanks to Callum Lerwick who provided all these great patches !
This commit is contained in:
Francois-Olivier Devaux
2007-08-21 12:51:57 +00:00
parent 2952874cb8
commit 07be749bf2
4 changed files with 20 additions and 26 deletions

View File

@@ -197,7 +197,13 @@ int main(){
// lut_ctxno_zc
for (j = 0; j < 4; ++j) {
for (i = 0; i < 256; ++i) {
lut_ctxno_zc[(j << 8) | i] = t1_init_ctxno_zc(i, j);
int orient = j;
if (orient == 2) {
orient = 1;
} else if (orient == 1) {
orient = 2;
}
lut_ctxno_zc[(orient << 8) | i] = t1_init_ctxno_zc(i, j);
}
}