Lines Matching refs:h264enc
111 context->desc.h264enc.motion_est.motion_est_quarter_pixel = 0x00000001; in getEncParamPreset()
112 context->desc.h264enc.motion_est.lsmvert = 0x00000002; in getEncParamPreset()
113 context->desc.h264enc.motion_est.enc_disable_sub_mode = 0x00000078; in getEncParamPreset()
114 context->desc.h264enc.motion_est.enc_en_ime_overw_dis_subm = 0x00000001; in getEncParamPreset()
115 context->desc.h264enc.motion_est.enc_ime_overw_dis_subm_no = 0x00000001; in getEncParamPreset()
116 context->desc.h264enc.motion_est.enc_ime2_search_range_x = 0x00000004; in getEncParamPreset()
117 context->desc.h264enc.motion_est.enc_ime2_search_range_y = 0x00000004; in getEncParamPreset()
120 context->desc.h264enc.pic_ctrl.enc_cabac_enable = 0x00000001; in getEncParamPreset()
121 context->desc.h264enc.pic_ctrl.enc_constraint_set_flags = 0x00000040; in getEncParamPreset()
124 context->desc.h264enc.rate_ctrl.vbv_buffer_size = 20000000; in getEncParamPreset()
125 context->desc.h264enc.rate_ctrl.vbv_buf_lv = 48; in getEncParamPreset()
126 context->desc.h264enc.rate_ctrl.fill_data_enable = 1; in getEncParamPreset()
127 context->desc.h264enc.rate_ctrl.enforce_hrd = 1; in getEncParamPreset()
128 context->desc.h264enc.enable_vui = false; in getEncParamPreset()
129 if (context->desc.h264enc.rate_ctrl.frame_rate_num == 0 || in getEncParamPreset()
130 context->desc.h264enc.rate_ctrl.frame_rate_den == 0) { in getEncParamPreset()
131 context->desc.h264enc.rate_ctrl.frame_rate_num = 30; in getEncParamPreset()
132 context->desc.h264enc.rate_ctrl.frame_rate_den = 1; in getEncParamPreset()
134 context->desc.h264enc.rate_ctrl.target_bits_picture = in getEncParamPreset()
135 context->desc.h264enc.rate_ctrl.target_bitrate * in getEncParamPreset()
136 ((float)context->desc.h264enc.rate_ctrl.frame_rate_den / in getEncParamPreset()
137 context->desc.h264enc.rate_ctrl.frame_rate_num); in getEncParamPreset()
138 context->desc.h264enc.rate_ctrl.peak_bits_picture_integer = in getEncParamPreset()
139 context->desc.h264enc.rate_ctrl.peak_bitrate * in getEncParamPreset()
140 ((float)context->desc.h264enc.rate_ctrl.frame_rate_den / in getEncParamPreset()
141 context->desc.h264enc.rate_ctrl.frame_rate_num); in getEncParamPreset()
143 context->desc.h264enc.rate_ctrl.peak_bits_picture_fraction = 0; in getEncParamPreset()
144 context->desc.h264enc.ref_pic_mode = 0x00000201; in getEncParamPreset()
358 if (context->desc.h264enc.rate_ctrl.rate_ctrl_method == in handleVAEncMiscParameterTypeRateControl()
360 context->desc.h264enc.rate_ctrl.target_bitrate = rc->bits_per_second; in handleVAEncMiscParameterTypeRateControl()
362 …context->desc.h264enc.rate_ctrl.target_bitrate = rc->bits_per_second * (rc->target_percentage / 10… in handleVAEncMiscParameterTypeRateControl()
363 context->desc.h264enc.rate_ctrl.peak_bitrate = rc->bits_per_second; in handleVAEncMiscParameterTypeRateControl()
364 if (context->desc.h264enc.rate_ctrl.target_bitrate < 2000000) in handleVAEncMiscParameterTypeRateControl()
365 …context->desc.h264enc.rate_ctrl.vbv_buffer_size = MIN2((context->desc.h264enc.rate_ctrl.target_bit… in handleVAEncMiscParameterTypeRateControl()
367 … context->desc.h264enc.rate_ctrl.vbv_buffer_size = context->desc.h264enc.rate_ctrl.target_bitrate; in handleVAEncMiscParameterTypeRateControl()
377 context->desc.h264enc.rate_ctrl.frame_rate_num = fr->framerate & 0xffff; in handleVAEncMiscParameterTypeFrameRate()
378 context->desc.h264enc.rate_ctrl.frame_rate_den = fr->framerate >> 16 & 0xffff; in handleVAEncMiscParameterTypeFrameRate()
380 context->desc.h264enc.rate_ctrl.frame_rate_num = fr->framerate; in handleVAEncMiscParameterTypeFrameRate()
381 context->desc.h264enc.rate_ctrl.frame_rate_den = 1; in handleVAEncMiscParameterTypeFrameRate()
401 context->desc.h264enc.gop_size = h264->intra_idr_period * context->gop_coeff; in handleVAEncSequenceParameterBufferType()
402 context->desc.h264enc.rate_ctrl.frame_rate_num = h264->time_scale / 2; in handleVAEncSequenceParameterBufferType()
403 context->desc.h264enc.rate_ctrl.frame_rate_den = h264->num_units_in_tick; in handleVAEncSequenceParameterBufferType()
404 context->desc.h264enc.pic_order_cnt_type = h264->seq_fields.bits.pic_order_cnt_type; in handleVAEncSequenceParameterBufferType()
438 context->desc.h264enc.frame_num = h264->frame_num; in handleVAEncPictureParameterBufferType()
439 context->desc.h264enc.not_referenced = false; in handleVAEncPictureParameterBufferType()
440 context->desc.h264enc.pic_order_cnt = h264->CurrPic.TopFieldOrderCnt; in handleVAEncPictureParameterBufferType()
441 if (context->desc.h264enc.gop_cnt == 0) in handleVAEncPictureParameterBufferType()
442 context->desc.h264enc.i_remain = context->gop_coeff; in handleVAEncPictureParameterBufferType()
443 else if (context->desc.h264enc.frame_num == 1) in handleVAEncPictureParameterBufferType()
444 context->desc.h264enc.i_remain--; in handleVAEncPictureParameterBufferType()
446 …context->desc.h264enc.p_remain = context->desc.h264enc.gop_size - context->desc.h264enc.gop_cnt - … in handleVAEncPictureParameterBufferType()
454 util_hash_table_set(context->desc.h264enc.frame_idx, in handleVAEncPictureParameterBufferType()
459 context->desc.h264enc.picture_type = PIPE_H264_ENC_PICTURE_TYPE_IDR; in handleVAEncPictureParameterBufferType()
461 context->desc.h264enc.picture_type = PIPE_H264_ENC_PICTURE_TYPE_P; in handleVAEncPictureParameterBufferType()
463 context->desc.h264enc.quant_i_frames = h264->pic_init_qp; in handleVAEncPictureParameterBufferType()
464 context->desc.h264enc.quant_b_frames = h264->pic_init_qp; in handleVAEncPictureParameterBufferType()
465 context->desc.h264enc.quant_p_frames = h264->pic_init_qp; in handleVAEncPictureParameterBufferType()
466 context->desc.h264enc.gop_cnt++; in handleVAEncPictureParameterBufferType()
467 if (context->desc.h264enc.gop_cnt == context->desc.h264enc.gop_size) in handleVAEncPictureParameterBufferType()
468 context->desc.h264enc.gop_cnt = 0; in handleVAEncPictureParameterBufferType()
479 context->desc.h264enc.ref_idx_l0 = VA_INVALID_ID; in handleVAEncSliceParameterBufferType()
480 context->desc.h264enc.ref_idx_l1 = VA_INVALID_ID; in handleVAEncSliceParameterBufferType()
484 if (context->desc.h264enc.ref_idx_l0 == VA_INVALID_ID) in handleVAEncSliceParameterBufferType()
485 …context->desc.h264enc.ref_idx_l0 = PTR_TO_UINT(util_hash_table_get(context->desc.h264enc.frame_idx, in handleVAEncSliceParameterBufferType()
489 if (context->desc.h264enc.ref_idx_l1 == VA_INVALID_ID) in handleVAEncSliceParameterBufferType()
490 …context->desc.h264enc.ref_idx_l1 = PTR_TO_UINT(util_hash_table_get(context->desc.h264enc.frame_idx, in handleVAEncSliceParameterBufferType()
496 context->desc.h264enc.picture_type = PIPE_H264_ENC_PICTURE_TYPE_B; in handleVAEncSliceParameterBufferType()
498 context->desc.h264enc.picture_type = PIPE_H264_ENC_PICTURE_TYPE_P; in handleVAEncSliceParameterBufferType()
500 if (context->desc.h264enc.picture_type == PIPE_H264_ENC_PICTURE_TYPE_IDR) in handleVAEncSliceParameterBufferType()
501 context->desc.h264enc.idr_pic_id++; in handleVAEncSliceParameterBufferType()
503 context->desc.h264enc.picture_type = PIPE_H264_ENC_PICTURE_TYPE_I; in handleVAEncSliceParameterBufferType()
505 context->desc.h264enc.picture_type = PIPE_H264_ENC_PICTURE_TYPE_SKIP; in handleVAEncSliceParameterBufferType()
699 context->desc.h264enc.frame_num_cnt++; in vlVaEndPicture()
709 int idr_period = context->desc.h264enc.gop_size / context->gop_coeff; in vlVaEndPicture()
710 int p_remain_in_idr = idr_period - context->desc.h264enc.frame_num; in vlVaEndPicture()
711 surf->frame_num_cnt = context->desc.h264enc.frame_num_cnt; in vlVaEndPicture()
719 if ((context->desc.h264enc.frame_num_cnt % 2) != 0) { in vlVaEndPicture()