/hardware/intel/common/libmix/videoencoder/ |
D | bitstream.h | 173 …(bitstream *bs, VAProfile profile, int frame_bit_rate, VAEncSequenceParameterBufferH264 *seq_param) in sps_rbsp() argument 196 bitstream_put_ui(bs, seq_param->level_idc, 8); /* level_idc */ in sps_rbsp() 197 bitstream_put_ue(bs, seq_param->seq_parameter_set_id); /* seq_parameter_set_id */ in sps_rbsp() 207 …bitstream_put_ue(bs, seq_param->seq_fields.bits.log2_max_frame_num_minus4); /* log2_max_frame_num_… in sps_rbsp() 208 …bitstream_put_ue(bs, seq_param->seq_fields.bits.pic_order_cnt_type); /* pic_order_cnt_type … in sps_rbsp() 210 if (seq_param->seq_fields.bits.pic_order_cnt_type == 0) in sps_rbsp() 211 …bitstream_put_ue(bs, seq_param->seq_fields.bits.log2_max_pic_order_cnt_lsb_minus4); /* log2_ma… in sps_rbsp() 216 bitstream_put_ue(bs, seq_param->max_num_ref_frames); /* num_ref_frames */ in sps_rbsp() 219 bitstream_put_ue(bs, seq_param->picture_width_in_mbs - 1); /* pic_width_in_mbs_minus1 */ in sps_rbsp() 220 bitstream_put_ue(bs, seq_param->picture_height_in_mbs - 1); /* pic_height_in_map_units_minus1 */ in sps_rbsp() [all …]
|
/hardware/intel/common/libva/test/encode/ |
D | mpeg2enc.c | 126 VAEncSequenceParameterBufferMPEG2 seq_param; member 260 find_frame_rate_code(const VAEncSequenceParameterBufferMPEG2 *seq_param) in find_frame_rate_code() argument 264 float frame_rate_value = seq_param->frame_rate * in find_frame_rate_code() 265 (seq_param->sequence_extension.bits.frame_rate_extension_d + 1) / in find_frame_rate_code() 266 (seq_param->sequence_extension.bits.frame_rate_extension_n + 1); in find_frame_rate_code() 281 const VAEncSequenceParameterBufferMPEG2 *seq_param, in sps_rbsp() argument 284 int frame_rate_code = find_frame_rate_code(seq_param); in sps_rbsp() 288 bitstream_put_ui(bs, seq_param->picture_width, 12); in sps_rbsp() 289 bitstream_put_ui(bs, seq_param->picture_height, 12); in sps_rbsp() 290 bitstream_put_ui(bs, seq_param->aspect_ratio_information, 4); in sps_rbsp() [all …]
|
D | mpeg2vaenc.c | 126 VAEncSequenceParameterBufferMPEG2 seq_param; member 260 find_frame_rate_code(const VAEncSequenceParameterBufferMPEG2 *seq_param) in find_frame_rate_code() argument 264 float frame_rate_value = seq_param->frame_rate * in find_frame_rate_code() 265 (seq_param->sequence_extension.bits.frame_rate_extension_d + 1) / in find_frame_rate_code() 266 (seq_param->sequence_extension.bits.frame_rate_extension_n + 1); in find_frame_rate_code() 281 const VAEncSequenceParameterBufferMPEG2 *seq_param, in sps_rbsp() argument 284 int frame_rate_code = find_frame_rate_code(seq_param); in sps_rbsp() 288 bitstream_put_ui(bs, seq_param->picture_width, 12); in sps_rbsp() 289 bitstream_put_ui(bs, seq_param->picture_height, 12); in sps_rbsp() 290 bitstream_put_ui(bs, seq_param->aspect_ratio_information, 4); in sps_rbsp() [all …]
|
D | avcenc.c | 122 VAEncSequenceParameterBufferH264 seq_param; member 572 VAEncSequenceParameterBufferH264 *seq_param = &avcenc_context.seq_param; in begin_picture() local 576 sizeof(*seq_param), 1, seq_param, in begin_picture() 882 VAEncSequenceParameterBufferH264 *seq_param = &avcenc_context.seq_param; in sps_rbsp() local 896 bitstream_put_ui(bs, seq_param->level_idc, 8); /* level_idc */ in sps_rbsp() 897 bitstream_put_ue(bs, seq_param->seq_parameter_set_id); /* seq_parameter_set_id */ in sps_rbsp() 907 …bitstream_put_ue(bs, seq_param->seq_fields.bits.log2_max_frame_num_minus4); /* log2_max_frame_num_… in sps_rbsp() 908 …bitstream_put_ue(bs, seq_param->seq_fields.bits.pic_order_cnt_type); /* pic_order_cnt_type … in sps_rbsp() 910 if (seq_param->seq_fields.bits.pic_order_cnt_type == 0) in sps_rbsp() 911 …bitstream_put_ue(bs, seq_param->seq_fields.bits.log2_max_pic_order_cnt_lsb_minus4); /* log2_ma… in sps_rbsp() [all …]
|
D | h264encode.c | 87 static VAEncSequenceParameterBufferH264 seq_param; variable 313 bitstream_put_ui(bs, seq_param.level_idc, 8); /* level_idc */ in sps_rbsp() 314 bitstream_put_ue(bs, seq_param.seq_parameter_set_id); /* seq_parameter_set_id */ in sps_rbsp() 324 …bitstream_put_ue(bs, seq_param.seq_fields.bits.log2_max_frame_num_minus4); /* log2_max_frame_num_m… in sps_rbsp() 325 …bitstream_put_ue(bs, seq_param.seq_fields.bits.pic_order_cnt_type); /* pic_order_cnt_type */ in sps_rbsp() 327 if (seq_param.seq_fields.bits.pic_order_cnt_type == 0) in sps_rbsp() 328 …bitstream_put_ue(bs, seq_param.seq_fields.bits.log2_max_pic_order_cnt_lsb_minus4); /* log2_max… in sps_rbsp() 333 bitstream_put_ue(bs, seq_param.max_num_ref_frames); /* num_ref_frames */ in sps_rbsp() 336 bitstream_put_ue(bs, seq_param.picture_width_in_mbs - 1); /* pic_width_in_mbs_minus1 */ in sps_rbsp() 337 bitstream_put_ue(bs, seq_param.picture_height_in_mbs - 1); /* pic_height_in_map_units_minus1 */ in sps_rbsp() [all …]
|
/hardware/intel/common/libva/test/transcode/ |
D | mpeg2transcode.cpp | 1978 VAEncSequenceParameterBufferH264 seq_param; member 2324 VAEncSequenceParameterBufferH264 *seq_param = &avcenc_context.seq_param; in begin_picture() local 2328 sizeof(*seq_param), 1, seq_param, in begin_picture() 2589 VAEncSequenceParameterBufferH264 *seq_param = &avcenc_context.seq_param; in sps_rbsp() local 2603 bitstream_put_ui(bs, seq_param->level_idc, 8); /* level_idc */ in sps_rbsp() 2604 bitstream_put_ue(bs, seq_param->seq_parameter_set_id); /* seq_parameter_set_id */ in sps_rbsp() 2606 …bitstream_put_ue(bs, seq_param->seq_fields.bits.log2_max_frame_num_minus4); /* log2_max_frame_num_… in sps_rbsp() 2607 …bitstream_put_ue(bs, seq_param->seq_fields.bits.pic_order_cnt_type); /* pic_order_cnt_type … in sps_rbsp() 2609 if (seq_param->seq_fields.bits.pic_order_cnt_type == 0) in sps_rbsp() 2610 …bitstream_put_ue(bs, seq_param->seq_fields.bits.log2_max_pic_order_cnt_lsb_minus4); /* log2_ma… in sps_rbsp() [all …]
|