// 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);
}
}
}
printf("static short lut_nmsedec_sig[1 << T1_NMSEDEC_BITS] = {\n ");
- dump_array16(&lut_nmsedec_sig, 1 << T1_NMSEDEC_BITS);
+ dump_array16(lut_nmsedec_sig, 1 << T1_NMSEDEC_BITS);
printf("static short lut_nmsedec_sig0[1 << T1_NMSEDEC_BITS] = {\n ");
- dump_array16(&lut_nmsedec_sig0, 1 << T1_NMSEDEC_BITS);
+ dump_array16(lut_nmsedec_sig0, 1 << T1_NMSEDEC_BITS);
printf("static short lut_nmsedec_ref[1 << T1_NMSEDEC_BITS] = {\n ");
- dump_array16(&lut_nmsedec_ref, 1 << T1_NMSEDEC_BITS);
+ dump_array16(lut_nmsedec_ref, 1 << T1_NMSEDEC_BITS);
printf("static short lut_nmsedec_ref0[1 << T1_NMSEDEC_BITS] = {\n ");
- dump_array16(&lut_nmsedec_ref0, 1 << T1_NMSEDEC_BITS);
+ dump_array16(lut_nmsedec_ref0, 1 << T1_NMSEDEC_BITS);
return 0;
}