Searched refs:rbsp (Results 1 – 2 of 2) sorted by relevance
36 struct rbsp;39 int (*rbsp_bit)(struct rbsp *rbsp, int *val);40 int (*rbsp_bits)(struct rbsp *rbsp, int n, unsigned int *val);41 int (*rbsp_uev)(struct rbsp *rbsp, unsigned int *val);42 int (*rbsp_sev)(struct rbsp *rbsp, int *val);62 struct rbsp { struct71 static void rbsp_init(struct rbsp *rbsp, void *addr, size_t size, in rbsp_init() argument74 if (!rbsp) in rbsp_init()77 rbsp->data = addr; in rbsp_init()78 rbsp->size = size; in rbsp_init()[all …]
115 struct rbsp { struct121 static inline int rbsp_read_bit(struct rbsp *rbsp) in rbsp_read_bit() argument123 int shift = 7 - (rbsp->pos % 8); in rbsp_read_bit()124 int ofs = rbsp->pos++ / 8; in rbsp_read_bit()126 if (ofs >= rbsp->size) in rbsp_read_bit()129 return (rbsp->buf[ofs] >> shift) & 1; in rbsp_read_bit()132 static inline int rbsp_write_bit(struct rbsp *rbsp, int bit) in rbsp_write_bit() argument134 int shift = 7 - (rbsp->pos % 8); in rbsp_write_bit()135 int ofs = rbsp->pos++ / 8; in rbsp_write_bit()137 if (ofs >= rbsp->size) in rbsp_write_bit()[all …]