Lines Matching refs:nal
44 struct vl_vlc nal; member
51 static inline void vl_rbsp_init(struct vl_rbsp *rbsp, struct vl_vlc *nal, unsigned num_bits) in vl_rbsp_init() argument
53 unsigned valid, bits_left = vl_vlc_bits_left(nal); in vl_rbsp_init()
57 rbsp->nal = *nal; in vl_rbsp_init()
60 while (vl_vlc_search_byte(nal, num_bits, 0x00)) { in vl_rbsp_init()
61 if (vl_vlc_peekbits(nal, 24) == 0x000001 || in vl_rbsp_init()
62 vl_vlc_peekbits(nal, 32) == 0x00000001) { in vl_rbsp_init()
63 vl_vlc_limit(&rbsp->nal, bits_left - vl_vlc_bits_left(nal)); in vl_rbsp_init()
66 vl_vlc_eatbits(nal, 8); in vl_rbsp_init()
69 valid = vl_vlc_valid_bits(&rbsp->nal); in vl_rbsp_init()
72 if ((vl_vlc_peekbits(&rbsp->nal, i) & 0xffffff) == 0x3) { in vl_rbsp_init()
73 vl_vlc_removebits(&rbsp->nal, i - 8, 8); in vl_rbsp_init()
78 valid = vl_vlc_valid_bits(&rbsp->nal); in vl_rbsp_init()
88 unsigned valid = vl_vlc_valid_bits(&rbsp->nal); in vl_rbsp_fillbits()
95 vl_vlc_fillbits(&rbsp->nal); in vl_rbsp_fillbits()
98 if (vl_vlc_bits_left(&rbsp->nal) < 24) in vl_rbsp_fillbits()
109 bits = vl_vlc_valid_bits(&rbsp->nal); in vl_rbsp_fillbits()
111 if ((vl_vlc_peekbits(&rbsp->nal, i) & 0xffffff) == 0x3) { in vl_rbsp_fillbits()
112 vl_vlc_removebits(&rbsp->nal, i - 8, 8); in vl_rbsp_fillbits()
129 return vl_vlc_get_uimsbf(&rbsp->nal, n); in vl_rbsp_u()
140 while (!vl_vlc_get_uimsbf(&rbsp->nal, 1)) in vl_rbsp_ue()
165 if (vl_vlc_bits_left(&rbsp->nal) > 8) in vl_rbsp_more_data()
168 bits = vl_vlc_valid_bits(&rbsp->nal); in vl_rbsp_more_data()
169 value = vl_vlc_peekbits(&rbsp->nal, bits); in vl_rbsp_more_data()