Lines Matching refs:seq_param
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()
916 bitstream_put_ue(bs, seq_param->max_num_ref_frames); /* num_ref_frames */ in sps_rbsp()
919 bitstream_put_ue(bs, seq_param->picture_width_in_mbs - 1); /* pic_width_in_mbs_minus1 */ in sps_rbsp()
920 bitstream_put_ue(bs, seq_param->picture_height_in_mbs - 1); /* pic_height_in_map_units_minus1 */ in sps_rbsp()
921 …bitstream_put_ui(bs, seq_param->seq_fields.bits.frame_mbs_only_flag, 1); /* frame_mbs_only_flag… in sps_rbsp()
923 if (!seq_param->seq_fields.bits.frame_mbs_only_flag) { in sps_rbsp()
927 …bitstream_put_ui(bs, seq_param->seq_fields.bits.direct_8x8_inference_flag, 1); /* direct_8x8_… in sps_rbsp()
928 bitstream_put_ui(bs, seq_param->frame_cropping_flag, 1); /* frame_cropping_flag */ in sps_rbsp()
930 if (seq_param->frame_cropping_flag) { in sps_rbsp()
931 bitstream_put_ue(bs, seq_param->frame_crop_left_offset); /* frame_crop_left_offset */ in sps_rbsp()
932 … bitstream_put_ue(bs, seq_param->frame_crop_right_offset); /* frame_crop_right_offset */ in sps_rbsp()
933 bitstream_put_ue(bs, seq_param->frame_crop_top_offset); /* frame_crop_top_offset */ in sps_rbsp()
934 … bitstream_put_ue(bs, seq_param->frame_crop_bottom_offset); /* frame_crop_bottom_offset */ in sps_rbsp()
1145 VAEncSequenceParameterBufferH264 *seq_param = &avcenc_context.seq_param;
1152 …bitstream_put_ui(bs, frame_num & 0x0F, seq_param->seq_fields.bits.log2_max_frame_num_minus4 + 4); …
1155 if (!seq_param->seq_fields.bits.frame_mbs_only_flag) {
1163 if (seq_param->seq_fields.bits.pic_order_cnt_type == 0) {
1164 …bitstream_put_ui(bs, (display_frame*2) & 0x3F, seq_param->seq_fields.bits.log2_max_pic_order_cnt_l…
1401 static void avcenc_context_seq_param_init(VAEncSequenceParameterBufferH264 *seq_param, in avcenc_context_seq_param_init() argument
1410 seq_param->seq_parameter_set_id = 0; in avcenc_context_seq_param_init()
1411 seq_param->level_idc = 41; in avcenc_context_seq_param_init()
1412 seq_param->intra_period = intra_period; in avcenc_context_seq_param_init()
1413 seq_param->ip_period = 0; /* FIXME: ??? */ in avcenc_context_seq_param_init()
1414 seq_param->max_num_ref_frames = 4; in avcenc_context_seq_param_init()
1415 seq_param->picture_width_in_mbs = width_in_mbs; in avcenc_context_seq_param_init()
1416 seq_param->picture_height_in_mbs = height_in_mbs; in avcenc_context_seq_param_init()
1417 seq_param->seq_fields.bits.frame_mbs_only_flag = 1; in avcenc_context_seq_param_init()
1420 seq_param->bits_per_second = 1024 * frame_bit_rate; /* use kbps as input */ in avcenc_context_seq_param_init()
1422 seq_param->bits_per_second = 0; in avcenc_context_seq_param_init()
1424 seq_param->time_scale = 900; in avcenc_context_seq_param_init()
1425 seq_param->num_units_in_tick = 15; /* Tc = num_units_in_tick / time_sacle */ in avcenc_context_seq_param_init()
1430 … (height_in_mbs * 16 - height) / (2 * (!seq_param->seq_fields.bits.frame_mbs_only_flag + 1)); in avcenc_context_seq_param_init()
1433 seq_param->frame_cropping_flag = frame_cropping_flag; in avcenc_context_seq_param_init()
1434 seq_param->frame_crop_left_offset = 0; in avcenc_context_seq_param_init()
1435 seq_param->frame_crop_right_offset = 0; in avcenc_context_seq_param_init()
1436 seq_param->frame_crop_top_offset = 0; in avcenc_context_seq_param_init()
1437 seq_param->frame_crop_bottom_offset = frame_crop_bottom_offset; in avcenc_context_seq_param_init()
1439 seq_param->seq_fields.bits.pic_order_cnt_type = 0; in avcenc_context_seq_param_init()
1440 seq_param->seq_fields.bits.direct_8x8_inference_flag = 0; in avcenc_context_seq_param_init()
1442 seq_param->seq_fields.bits.log2_max_frame_num_minus4 = 0; in avcenc_context_seq_param_init()
1443 seq_param->seq_fields.bits.log2_max_pic_order_cnt_lsb_minus4 = 2; in avcenc_context_seq_param_init()
1446 seq_param->vui_parameters_present_flag = 1; //HRD info located in vui in avcenc_context_seq_param_init()
1448 seq_param->vui_parameters_present_flag = 0; in avcenc_context_seq_param_init()
1483 target_bit_rate = avcenc_context.seq_param.bits_per_second; in avcenc_context_sei_init()
1544 avcenc_context_seq_param_init(&avcenc_context.seq_param, width, height); in avcenc_context_init()