44 for (i = 0; i < 367; i++) {
53 static inline int iso_clip(
int v,
int vmin,
int vmax)
55 if (v > vmax || v < vmin)
63 const int basic_t1 = 3;
64 const int basic_t2 = 7;
65 const int basic_t3 = 21;
68 if (s->
maxval == 0 || reset_all)
74 if (s->
T1 == 0 || reset_all)
77 if (s->
T2 == 0 || reset_all)
80 if (s->
T3 == 0 || reset_all)
84 factor = 256 / (s->
maxval + 1);
86 if (s->
T1 == 0 || reset_all)
89 if (s->
T2 == 0 || reset_all)
92 if (s->
T3 == 0 || reset_all)
97 if (s->
reset == 0 || reset_all)
99 av_dlog(NULL,
"[JPEG-LS RESET] T=%i,%i,%i\n", s->
T1, s->
T2, s->
T3);
av_dlog(ac->avr,"%d samples - audio_convert: %s to %s (%s)\n", len, av_get_sample_fmt_name(ac->in_fmt), av_get_sample_fmt_name(ac->out_fmt), use_generic?ac->func_descr_generic:ac->func_descr)
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]
void ff_jpegls_init_state(JLSState *state)
Calculate initial JPEG-LS parameters.