Lines Matching refs:bytes_left
46 unsigned bytes_left; member
92 assert(vlc->bytes_left); in vl_vlc_next_input()
94 if (len < vlc->bytes_left) in vl_vlc_next_input()
95 vlc->bytes_left -= len; in vl_vlc_next_input()
97 len = vlc->bytes_left; in vl_vlc_next_input()
98 vlc->bytes_left = 0; in vl_vlc_next_input()
132 unsigned bytes_left = vlc->end - vlc->data; in vl_vlc_fillbits() local
135 if (bytes_left == 0) { in vl_vlc_fillbits()
137 if (vlc->bytes_left) { in vl_vlc_fillbits()
145 } else if (bytes_left >= 4) { in vl_vlc_fillbits()
187 vlc->bytes_left = 0; in vl_vlc_init()
190 vlc->bytes_left += sizes[i]; in vl_vlc_init()
192 if (vlc->bytes_left) { in vl_vlc_init()
214 signed bytes_left = vlc->end - vlc->data; in vl_vlc_bits_left() local
215 bytes_left += vlc->bytes_left; in vl_vlc_bits_left()
216 return bytes_left * 8 + vl_vlc_valid_bits(vlc); in vl_vlc_bits_left()
316 if (vlc->bytes_left) in vl_vlc_search_byte()
366 vlc->bytes_left = 0; in vl_vlc_limit()
369 vlc->bytes_left = (bits_left - vl_vlc_valid_bits(vlc)) / 8; in vl_vlc_limit()
370 if (vlc->bytes_left < (vlc->end - vlc->data)) { in vl_vlc_limit()
371 vlc->end = vlc->data + vlc->bytes_left; in vl_vlc_limit()
372 vlc->bytes_left = 0; in vl_vlc_limit()
374 vlc->bytes_left -= vlc->end - vlc->data; in vl_vlc_limit()