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