openjpeg-20070719svn-t1-t1_dec_sigpass_step-optimize.patch 992 B

1234567891011121314151617181920212223242526272829
  1. diff -urN -x '*.orig' -x '*.rej' -x '*~' -x '.*' OpenJPEG.orig/libopenjpeg/t1.c OpenJPEG.patched/libopenjpeg/t1.c
  2. --- OpenJPEG.orig/libopenjpeg/t1.c 2007-08-09 19:26:57.000000000 -0500
  3. +++ OpenJPEG.patched/libopenjpeg/t1.c 2007-08-09 19:44:25.000000000 -0500
  4. @@ -40,7 +40,7 @@
  5. /*@{*/
  6. static INLINE char t1_getctxno_zc(int f, int orient);
  7. -static char t1_getctxno_sc(int f);
  8. +static INLINE char t1_getctxno_sc(int f);
  9. static INLINE int t1_getctxno_mag(int f);
  10. static char t1_getspb(int f);
  11. static short t1_getnmsedec_sig(int x, int bitpos);
  12. @@ -334,6 +334,7 @@
  13. flag = vsc ? ((*flagsp) & (~(T1_SIG_S | T1_SIG_SE | T1_SIG_SW | T1_SGN_S))) : (*flagsp);
  14. if ((flag & T1_SIG_OTH) && !(flag & (T1_SIG | T1_VISIT))) {
  15. + *flagsp |= T1_VISIT;
  16. if (type == T1_TYPE_RAW) {
  17. if (raw_decode(raw)) {
  18. v = raw_decode(raw); /* ESSAI */
  19. @@ -349,7 +350,6 @@
  20. t1_updateflags(flagsp, v, t1->flags_stride);
  21. }
  22. }
  23. - *flagsp |= T1_VISIT;
  24. }
  25. } /* VSC and BYPASS by Antonin */