Home
last modified time | relevance | path

Searched refs:grad_range (Results 1 – 1 of 1) sorted by relevance

/third_party/ffmpeg/libavcodec/
Datrac9dec.c111 int grad_range[2]; in parse_gradient() local
119 grad_range[0] = get_bits(gb, 5); in parse_gradient()
120 grad_range[1] = 31; in parse_gradient()
124 grad_range[0] = get_bits(gb, 6); in parse_gradient()
125 grad_range[1] = get_bits(gb, 6) + 1; in parse_gradient()
131 if (grad_range[0] >= grad_range[1] || grad_range[1] > 31) in parse_gradient()
141 curve = s->alloc_curve[grad_range[1] - grad_range[0] - 1]; in parse_gradient()
144 b->gradient[i] = grad_value[i >= grad_range[0]]; in parse_gradient()
146 for (int i = grad_range[0]; i < grad_range[1]; i++) in parse_gradient()
147 b->gradient[i] = base + sign*((int)(scale*curve[i - grad_range[0]])); in parse_gradient()