Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/staging/media/allegro-dvt/
Dnal-h264.c36 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 { struct
71 static void rbsp_init(struct rbsp *rbsp, void *addr, size_t size, in rbsp_init() argument
74 if (!rbsp) in rbsp_init()
77 rbsp->data = addr; in rbsp_init()
78 rbsp->size = size; in rbsp_init()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/coda/
Dcoda-h264.c115 struct rbsp { struct
121 static inline int rbsp_read_bit(struct rbsp *rbsp) in rbsp_read_bit() argument
123 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() argument
134 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 …]