Go to the documentation of this file.
28 #ifndef AVCODEC_JPEGLS_H
29 #define AVCODEC_JPEGLS_H
38 int A[367],
B[367],
C[365],
N[367];
100 err *=
state->twonear;
109 }
else if (
state->B[
Q] > 0) {
118 #define R(a, i) (bits == 8 ? ((uint8_t *)(a))[i] : ((uint16_t *)(a))[i])
119 #define W(a, i, v) (bits == 8 ? (((uint8_t *)(a))[i] = v) : (((uint16_t *)(a))[i] = v))
void ff_jpegls_reset_coding_parameters(JLSState *s, int reset_all)
Calculate JPEG-LS codec values.
#define FFABS(a)
Absolute value, Note, INT_MIN / INT64_MIN result in undefined behavior as they are not representable ...
static void ff_jpegls_downscale_state(JLSState *state, int Q)
static int ff_jpegls_quantize(JLSState *s, int v)
Calculate quantized gradient value, used for context determination.
static int ff_jpegls_update_state_regular(JLSState *state, int Q, int err)
void ff_jpegls_init_state(JLSState *state)
Calculate initial JPEG-LS parameters.