/third_party/mesa3d/src/gallium/frontends/omx/bellagio/ |
D | vid_dec_h265.c | 143 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/ |
D | vid_dec_h264_common.c | 154 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/ |
D | vl_rbsp.h | 51 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/ |
D | h2645_parse.c | 35 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 …]
|
D | h264_parser.c | 249 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()
|
D | h2645_parse.h | 83 H2645RBSP rbsp; member 92 int ff_h2645_extract_rbsp(const uint8_t *src, int length, H2645RBSP *rbsp,
|
D | cbs_h2645.c | 494 : packet->rbsp.rbsp_buffer_ref; in cbs_h2645_fragment_add_nals()
|
/third_party/mesa3d/src/gallium/frontends/va/ |
D | picture_hevc_enc.c | 200 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/ |
D | d3d12_video_encoder_nalu_writer_h264.cpp | 242 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 …]
|