Go to the documentation of this file.
28 #ifndef AVCODEC_JPEGLS_H
29 #define AVCODEC_JPEGLS_H
41 int A[367],
B[367],
C[365],
N[367];
60 if(v <= -s->T3)
return -4;
61 if(v <= -s->T2)
return -3;
62 if(v <= -s->T1)
return -2;
63 if(v < -s->near)
return -1;
66 if(v <= s->near)
return 0;
67 if(v < s->T1)
return 1;
68 if(v < s->T2)
return 2;
69 if(v < s->T3)
return 3;
81 if(state->
N[Q] == state->
reset){
90 if(
FFABS(err) > 0xFFFF)
98 if(state->
B[Q] <= -state->
N[Q]) {
99 state->
B[Q]=
FFMAX(state->
B[Q] + state->
N[Q], 1-state->
N[Q]);
100 if(state->
C[Q] > -128)
102 }
else if(state->
B[Q] > 0){
103 state->
B[Q]=
FFMIN(state->
B[Q] - state->
N[Q], 0);
104 if(state->
C[Q] < 127)
111 #define R(a, i ) (bits == 8 ? ((uint8_t*)(a))[i] : ((uint16_t*)(a))[i] )
112 #define W(a, i, v) (bits == 8 ? (((uint8_t*)(a))[i]=v) : (((uint16_t*)(a))[i]=v))