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