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];
89 if (state->
N[Q] == state->
reset) {
100 if(
FFABS(err) > 0xFFFF)
102 state->
A[Q] +=
FFABS(err);
108 if (state->
B[Q] <= -state->
N[Q]) {
109 state->
B[Q] =
FFMAX(state->
B[Q] + state->
N[Q], 1 - state->
N[Q]);
110 if (state->
C[Q] > -128)
112 }
else if (state->
B[Q] > 0) {
113 state->
B[Q] =
FFMIN(state->
B[Q] - state->
N[Q], 0);
114 if (state->
C[Q] < 127)
121 #define R(a, i) (bits == 8 ? ((uint8_t *)(a))[i] : ((uint16_t *)(a))[i])
122 #define W(a, i, v) (bits == 8 ? (((uint8_t *)(a))[i] = v) : (((uint16_t *)(a))[i] = v))