Searched refs:rbsp (Results 1 - 6 of 6) sorted by relevance

/linux-master/drivers/media/platform/allegro-dvt/
H A Dnal-rbsp.h12 struct rbsp;
15 int (*rbsp_bit)(struct rbsp *rbsp, int *val);
16 int (*rbsp_bits)(struct rbsp *rbsp, int n, unsigned int *val);
17 int (*rbsp_uev)(struct rbsp *rbsp, unsigned int *val);
18 int (*rbsp_sev)(struct rbsp *rbsp, int *val);
22 * struct rbsp
38 struct rbsp { struct
[all...]
H A Dnal-rbsp.c17 #include "nal-rbsp.h"
19 void rbsp_init(struct rbsp *rbsp, void *addr, size_t size, argument
22 if (!rbsp)
25 rbsp->data = addr;
26 rbsp->size = size;
27 rbsp->pos = 0;
28 rbsp->ops = ops;
29 rbsp->error = 0;
32 void rbsp_unsupported(struct rbsp *rbs argument
48 add_emulation_prevention_three_byte(struct rbsp *rbsp) argument
56 discard_emulation_prevention_three_byte(struct rbsp *rbsp) argument
68 rbsp_read_bit(struct rbsp *rbsp) argument
99 rbsp_write_bit(struct rbsp *rbsp, bool value) argument
127 rbsp_read_bits(struct rbsp *rbsp, int n, unsigned int *value) argument
149 rbsp_write_bits(struct rbsp *rbsp, int n, unsigned int value) argument
165 rbsp_read_uev(struct rbsp *rbsp, unsigned int *value) argument
188 rbsp_write_uev(struct rbsp *rbsp, unsigned int *value) argument
205 rbsp_read_sev(struct rbsp *rbsp, int *value) argument
224 rbsp_write_sev(struct rbsp *rbsp, int *value) argument
239 __rbsp_write_bit(struct rbsp *rbsp, int *value) argument
244 __rbsp_write_bits(struct rbsp *rbsp, int n, unsigned int *value) argument
256 __rbsp_read_bit(struct rbsp *rbsp, int *value) argument
274 rbsp_bit(struct rbsp *rbsp, int *value) argument
281 rbsp_bits(struct rbsp *rbsp, int n, int *value) argument
288 rbsp_uev(struct rbsp *rbsp, unsigned int *value) argument
295 rbsp_sev(struct rbsp *rbsp, int *value) argument
302 rbsp_trailing_bits(struct rbsp *rbsp) argument
[all...]
H A Dnal-hevc.c25 #include "nal-rbsp.h"
38 static void nal_hevc_write_start_code_prefix(struct rbsp *rbsp) argument
40 u8 *p = rbsp->data + DIV_ROUND_UP(rbsp->pos, 8);
43 if (DIV_ROUND_UP(rbsp->pos, 8) + i > rbsp->size) {
44 rbsp->error = -EINVAL;
53 rbsp->pos += i * 8;
56 static void nal_hevc_read_start_code_prefix(struct rbsp *rbs argument
74 nal_hevc_write_filler_data(struct rbsp *rbsp) argument
85 nal_hevc_read_filler_data(struct rbsp *rbsp) argument
100 nal_hevc_rbsp_profile_tier_level(struct rbsp *rbsp, struct nal_hevc_profile_tier_level *ptl) argument
177 nal_hevc_rbsp_vps(struct rbsp *rbsp, struct nal_hevc_vps *vps) argument
210 nal_hevc_rbsp_sub_layer_hrd_parameters(struct rbsp *rbsp, struct nal_hevc_sub_layer_hrd_parameters *hrd) argument
223 nal_hevc_rbsp_hrd_parameters(struct rbsp *rbsp, struct nal_hevc_hrd_parameters *hrd) argument
264 nal_hevc_rbsp_vui_parameters(struct rbsp *rbsp, struct nal_hevc_vui_parameters *vui) argument
340 nal_hevc_rbsp_sps(struct rbsp *rbsp, struct nal_hevc_sps *sps) argument
430 nal_hevc_rbsp_pps(struct rbsp *rbsp, struct nal_hevc_pps *pps) argument
522 struct rbsp rbsp; local
566 struct rbsp rbsp; local
617 struct rbsp rbsp; local
661 struct rbsp rbsp; local
712 struct rbsp rbsp; local
756 struct rbsp rbsp; local
805 struct rbsp rbsp; local
852 struct rbsp rbsp; local
[all...]
H A Dnal-h264.c25 #include "nal-rbsp.h"
37 static void nal_h264_write_start_code_prefix(struct rbsp *rbsp) argument
39 u8 *p = rbsp->data + DIV_ROUND_UP(rbsp->pos, 8);
42 if (DIV_ROUND_UP(rbsp->pos, 8) + i > rbsp->size) {
43 rbsp->error = -EINVAL;
52 rbsp->pos += i * 8;
55 static void nal_h264_read_start_code_prefix(struct rbsp *rbs argument
73 nal_h264_write_filler_data(struct rbsp *rbsp) argument
84 nal_h264_read_filler_data(struct rbsp *rbsp) argument
99 nal_h264_rbsp_hrd_parameters(struct rbsp *rbsp, struct nal_h264_hrd_parameters *hrd) argument
125 nal_h264_rbsp_vui_parameters(struct rbsp *rbsp, struct nal_h264_vui_parameters *vui) argument
198 nal_h264_rbsp_sps(struct rbsp *rbsp, struct nal_h264_sps *sps) argument
283 nal_h264_rbsp_pps(struct rbsp *rbsp, struct nal_h264_pps *pps) argument
356 struct rbsp rbsp; local
397 struct rbsp rbsp; local
447 struct rbsp rbsp; local
489 struct rbsp rbsp; local
531 struct rbsp rbsp; local
574 struct rbsp rbsp; local
[all...]
H A DMakefile4 allegro-objs += nal-rbsp.o nal-h264.o nal-hevc.o
/linux-master/drivers/media/platform/chips-media/coda/
H A Dcoda-h264.c60 /* Add rbsp stop bit and trailing at the end */
115 struct rbsp { struct
121 static inline int rbsp_read_bit(struct rbsp *rbsp) argument
123 int shift = 7 - (rbsp->pos % 8);
124 int ofs = rbsp->pos++ / 8;
126 if (ofs >= rbsp->size)
129 return (rbsp->buf[ofs] >> shift) & 1;
132 static inline int rbsp_write_bit(struct rbsp *rbsp, in argument
146 rbsp_read_bits(struct rbsp *rbsp, int num, int *val) argument
167 rbsp_write_bits(struct rbsp *rbsp, int num, int value) argument
180 rbsp_read_uev(struct rbsp *rbsp, unsigned int *val) argument
203 rbsp_write_uev(struct rbsp *rbsp, unsigned int value) argument
219 rbsp_read_sev(struct rbsp *rbsp, int *val) argument
[all...]

Completed in 121 milliseconds