46 for (i = 0; i < 367; i++) {
55 static inline int iso_clip(
int v,
int vmin,
int vmax)
57 if (v > vmax || v < vmin)
65 const int basic_t1 = 3;
66 const int basic_t2 = 7;
67 const int basic_t3 = 21;
70 if (s->
maxval == 0 || reset_all)
76 if (s->
T1 == 0 || reset_all)
79 if (s->
T2 == 0 || reset_all)
82 if (s->
T3 == 0 || reset_all)
86 factor = 256 / (s->
maxval + 1);
88 if (s->
T1 == 0 || reset_all)
91 if (s->
T2 == 0 || reset_all)
94 if (s->
T3 == 0 || reset_all)
99 if (s->
reset == 0 || reset_all)
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.
void ff_jpegls_init_state(JLSState *state)
Calculate initial JPEG-LS parameters.