Go to the documentation of this file.
28 #ifndef AVCODEC_JPEGLS_H
29 #define AVCODEC_JPEGLS_H
40 int A[367],
B[367],
C[365],
N[367];
59 if(v <= -s->
T3)
return -4;
60 if(v <= -s->
T2)
return -3;
61 if(v <= -s->
T1)
return -2;
62 if(v < -s->near)
return -1;
65 if(v <= s->near)
return 0;
66 if(v < s->
T1)
return 1;
67 if(v < s->
T2)
return 2;
68 if(v < s->
T3)
return 3;
80 if(state->
N[Q] == state->
reset){
95 if(state->
B[Q] <= -state->
N[Q]) {
96 state->
B[Q]=
FFMAX(state->
B[Q] + state->
N[Q], 1-state->
N[Q]);
97 if(state->
C[Q] > -128)
99 }
else if(state->
B[Q] > 0){
100 state->
B[Q]=
FFMIN(state->
B[Q] - state->
N[Q], 0);
101 if(state->
C[Q] < 127)
108 #define R(a, i ) (bits == 8 ? ((uint8_t*)(a))[i] : ((uint16_t*)(a))[i] )
109 #define W(a, i, v) (bits == 8 ? (((uint8_t*)(a))[i]=v) : (((uint16_t*)(a))[i]=v))