45 for (i = 0; i < 367; i++) {
54 static inline int iso_clip(
int v,
int vmin,
int vmax)
56 if (v > vmax || v < vmin)
64 const int basic_t1 = 3;
65 const int basic_t2 = 7;
66 const int basic_t3 = 21;
69 if (s->
maxval == 0 || reset_all)
75 if (s->
T1 == 0 || reset_all)
78 if (s->
T2 == 0 || reset_all)
81 if (s->
T3 == 0 || reset_all)
85 factor = 256 / (s->
maxval + 1);
87 if (s->
T1 == 0 || reset_all)
90 if (s->
T2 == 0 || reset_all)
93 if (s->
T3 == 0 || reset_all)
98 if (s->
reset == 0 || reset_all)
static int iso_clip(int v, int vmin, int vmax)
Custom value clipping function used in T1, T2, T3 calculation.
void ff_jpegls_reset_coding_parameters(JLSState *s, int reset_all)
Calculate JPEG-LS codec values.
static const int factor[16]
common internal api header.
void ff_jpegls_init_state(JLSState *state)
Calculate initial JPEG-LS parameters.