Home
last modified time | relevance | path

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

/drivers/media/platform/allegro-dvt/
Dnal-rbsp.c167 int leading_zero_bits = 0; in rbsp_read_uev() local
172 leading_zero_bits++; in rbsp_read_uev()
176 if (leading_zero_bits > 0) { in rbsp_read_uev()
177 ret = rbsp_read_bits(rbsp, leading_zero_bits, &tmp); in rbsp_read_uev()
183 *value = (1 << leading_zero_bits) - 1 + tmp; in rbsp_read_uev()
191 int leading_zero_bits; in rbsp_write_uev() local
196 leading_zero_bits = ilog2(*value + 1); in rbsp_write_uev()
198 ret = rbsp_write_bits(rbsp, leading_zero_bits, 0); in rbsp_write_uev()
202 return rbsp_write_bits(rbsp, leading_zero_bits + 1, *value + 1); in rbsp_write_uev()
/drivers/media/platform/chips-media/
Dcoda-h264.c182 int leading_zero_bits = 0; in rbsp_read_uev() local
187 leading_zero_bits++; in rbsp_read_uev()
191 if (leading_zero_bits > 0) { in rbsp_read_uev()
192 ret = rbsp_read_bits(rbsp, leading_zero_bits, &tmp); in rbsp_read_uev()
198 *val = (1 << leading_zero_bits) - 1 + tmp; in rbsp_read_uev()
208 int leading_zero_bits = fls(tmp) - 1; in rbsp_write_uev() local
210 for (i = 0; i < leading_zero_bits; i++) { in rbsp_write_uev()
216 return rbsp_write_bits(rbsp, leading_zero_bits + 1, tmp); in rbsp_write_uev()