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);