44 for(i = 0; i < 367; i++) {
54 static inline int iso_clip(
int v,
int vmin,
int vmax){
55 if(v > vmax || v < vmin)
return vmin;
60 const int basic_t1= 3;
61 const int basic_t2= 7;
62 const int basic_t3= 21;
70 if(s->
T1==0 || reset_all)
72 if(s->
T2==0 || reset_all)
74 if(s->
T3==0 || reset_all)
77 factor= 256 / (s->
maxval + 1);
79 if(s->
T1==0 || reset_all)
81 if(s->
T2==0 || reset_all)
83 if(s->
T3==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.