Home
last modified time | relevance | path

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

/third_party/mesa3d/src/gallium/frontends/omx/bellagio/
Dvid_dec_h265.c143 static void profile_tier(struct vl_rbsp *rbsp) in profile_tier() argument
148 vl_rbsp_u(rbsp, 2); in profile_tier()
151 vl_rbsp_u(rbsp, 1); in profile_tier()
154 vl_rbsp_u(rbsp, 5); in profile_tier()
158 vl_rbsp_u(rbsp, 1); in profile_tier()
161 vl_rbsp_u(rbsp, 1); in profile_tier()
164 vl_rbsp_u(rbsp, 1); in profile_tier()
167 vl_rbsp_u(rbsp, 1); in profile_tier()
170 vl_rbsp_u(rbsp, 1); in profile_tier()
173 vl_rbsp_u(rbsp, 16); in profile_tier()
[all …]
/third_party/mesa3d/src/gallium/frontends/omx/
Dvid_dec_h264_common.c154 static void vui_parameters(struct vl_rbsp *rbsp) in vui_parameters() argument
159 static void scaling_list(struct vl_rbsp *rbsp, uint8_t *scalingList, unsigned sizeOfScalingList, in scaling_list() argument
167 if (!vl_rbsp_u(rbsp, 1)) { in scaling_list()
177 signed delta_scale = vl_rbsp_se(rbsp); in scaling_list()
189 static struct pipe_h264_sps *seq_parameter_set_id(vid_dec_PrivateType *priv, struct vl_rbsp *rbsp) in seq_parameter_set_id() argument
191 unsigned id = vl_rbsp_ue(rbsp); in seq_parameter_set_id()
198 static void seq_parameter_set(vid_dec_PrivateType *priv, struct vl_rbsp *rbsp) in seq_parameter_set() argument
205 profile_idc = vl_rbsp_u(rbsp, 8); in seq_parameter_set()
208 vl_rbsp_u(rbsp, 1); in seq_parameter_set()
211 vl_rbsp_u(rbsp, 1); in seq_parameter_set()
[all …]
/third_party/mesa3d/src/util/
Dvl_rbsp.h51 static inline void vl_rbsp_init(struct vl_rbsp *rbsp, struct vl_vlc *nal, unsigned num_bits) in vl_rbsp_init() argument
57 rbsp->nal = *nal; in vl_rbsp_init()
63 vl_vlc_limit(&rbsp->nal, bits_left - vl_vlc_bits_left(nal)); 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()
80 rbsp->escaped = (valid >= 16) ? 16 : ((valid >= 8) ? 8 : 0); in vl_rbsp_init()
86 static inline void vl_rbsp_fillbits(struct vl_rbsp *rbsp) in vl_rbsp_fillbits() argument
88 unsigned valid = vl_vlc_valid_bits(&rbsp->nal); in vl_rbsp_fillbits()
[all …]
/third_party/ffmpeg/libavcodec/
Dh2645_parse.c35 H2645RBSP *rbsp, H2645NAL *nal, int small_padding) in ff_h2645_extract_rbsp() argument
95 nal->rbsp_buffer = &rbsp->rbsp_buffer[rbsp->rbsp_buffer_size]; in ff_h2645_extract_rbsp()
144 rbsp->rbsp_buffer_size += si; in ff_h2645_extract_rbsp()
345 static void alloc_rbsp_buffer(H2645RBSP *rbsp, unsigned int size, int use_ref) in alloc_rbsp_buffer() argument
353 if (rbsp->rbsp_buffer_alloc_size >= size && in alloc_rbsp_buffer()
354 (!rbsp->rbsp_buffer_ref || av_buffer_is_writable(rbsp->rbsp_buffer_ref))) { in alloc_rbsp_buffer()
355 av_assert0(rbsp->rbsp_buffer); in alloc_rbsp_buffer()
356 memset(rbsp->rbsp_buffer + min_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); in alloc_rbsp_buffer()
362 if (rbsp->rbsp_buffer_ref) in alloc_rbsp_buffer()
363 av_buffer_unref(&rbsp->rbsp_buffer_ref); in alloc_rbsp_buffer()
[all …]
Dh264_parser.c249 H2645RBSP rbsp = { NULL }; in parse_nal_units() local
270 av_fast_padded_malloc(&rbsp.rbsp_buffer, &rbsp.rbsp_buffer_alloc_size, buf_size); in parse_nal_units()
271 if (!rbsp.rbsp_buffer) in parse_nal_units()
311 consumed = ff_h2645_extract_rbsp(buf + buf_index, src_length, &rbsp, &nal, 1); in parse_nal_units()
554 av_freep(&rbsp.rbsp_buffer); in parse_nal_units()
559 av_freep(&rbsp.rbsp_buffer); in parse_nal_units()
565 av_freep(&rbsp.rbsp_buffer); in parse_nal_units()
Dh2645_parse.h83 H2645RBSP rbsp; member
92 int ff_h2645_extract_rbsp(const uint8_t *src, int length, H2645RBSP *rbsp,
Dcbs_h2645.c494 : packet->rbsp.rbsp_buffer_ref; in cbs_h2645_fragment_add_nals()
/third_party/mesa3d/src/gallium/frontends/va/
Dpicture_hevc_enc.c200 static void profile_tier(struct vl_rbsp *rbsp) in profile_tier() argument
202 vl_rbsp_u(rbsp, 2); /* general_profile_space */ in profile_tier()
203 vl_rbsp_u(rbsp, 1); /* general_tier_flag */ in profile_tier()
204 vl_rbsp_u(rbsp, 5); /* general_profile_idc */ in profile_tier()
208 vl_rbsp_u(rbsp, 1); in profile_tier()
210 vl_rbsp_u(rbsp, 1); /* general_progressive_source_flag */ in profile_tier()
211 vl_rbsp_u(rbsp, 1); /* general_interlaced_source_flag */ in profile_tier()
212 vl_rbsp_u(rbsp, 1); /* general_non_packed_constraint_flag */ in profile_tier()
213 vl_rbsp_u(rbsp, 1); /* general_frame_only_constraint_flag */ in profile_tier()
216 vl_rbsp_u(rbsp, 16); in profile_tier()
[all …]
/third_party/mesa3d/src/gallium/drivers/d3d12/
Dd3d12_video_encoder_nalu_writer_h264.cpp242 d3d12_video_encoder_bitstream rbsp, nalu; in sps_to_nalu_bytes() local
244 if (!rbsp.create_bitstream(MAX_COMPRESSED_SPS)) { in sps_to_nalu_bytes()
254 rbsp.set_start_code_prevention(TRUE); in sps_to_nalu_bytes()
255 if (write_sps_bytes(&rbsp, pSPS) <= 0u) { in sps_to_nalu_bytes()
260 if (wrap_sps_nalu(&nalu, &rbsp) <= 0u) { in sps_to_nalu_bytes()
288 d3d12_video_encoder_bitstream rbsp, nalu; in pps_to_nalu_bytes() local
289 if (!rbsp.create_bitstream(MAX_COMPRESSED_PPS)) { in pps_to_nalu_bytes()
299 rbsp.set_start_code_prevention(TRUE); in pps_to_nalu_bytes()
301 if (write_pps_bytes(&rbsp, pPPS, bIsHighProfile) <= 0u) { in pps_to_nalu_bytes()
306 if (wrap_pps_nalu(&nalu, &rbsp) <= 0u) { in pps_to_nalu_bytes()
[all …]