Home
last modified time | relevance | path

Searched refs:rate_ctrl (Results 1 – 10 of 10) sorted by relevance

/external/mesa3d/src/gallium/frontends/va/
Dpicture_h264_enc.c127 context->desc.h264enc.rate_ctrl.frame_rate_num = h264->time_scale / 2; in vlVaHandleVAEncSequenceParameterBufferTypeH264()
128 context->desc.h264enc.rate_ctrl.frame_rate_den = h264->num_units_in_tick; in vlVaHandleVAEncSequenceParameterBufferTypeH264()
145 if (context->desc.h264enc.rate_ctrl.rate_ctrl_method == in vlVaHandleVAEncMiscParameterTypeRateControlH264()
147 context->desc.h264enc.rate_ctrl.target_bitrate = rc->bits_per_second; in vlVaHandleVAEncMiscParameterTypeRateControlH264()
149 …context->desc.h264enc.rate_ctrl.target_bitrate = rc->bits_per_second * (rc->target_percentage / 10… in vlVaHandleVAEncMiscParameterTypeRateControlH264()
150 context->desc.h264enc.rate_ctrl.peak_bitrate = rc->bits_per_second; in vlVaHandleVAEncMiscParameterTypeRateControlH264()
151 if (context->desc.h264enc.rate_ctrl.target_bitrate < 2000000) in vlVaHandleVAEncMiscParameterTypeRateControlH264()
152 …context->desc.h264enc.rate_ctrl.vbv_buffer_size = MIN2((context->desc.h264enc.rate_ctrl.target_bit… in vlVaHandleVAEncMiscParameterTypeRateControlH264()
154 … context->desc.h264enc.rate_ctrl.vbv_buffer_size = context->desc.h264enc.rate_ctrl.target_bitrate; in vlVaHandleVAEncMiscParameterTypeRateControlH264()
164 context->desc.h264enc.rate_ctrl.frame_rate_num = fr->framerate & 0xffff; in vlVaHandleVAEncMiscParameterTypeFrameRateH264()
[all …]
Dcontext.c302 context->desc.h264enc.rate_ctrl.rate_ctrl_method = config->rc; in vlVaCreateContext()
/external/mesa3d/src/gallium/frontends/omx/
Dvid_enc_common.c250 struct pipe_h264_enc_rate_control *rate_ctrl = &picture->rate_ctrl; in enc_ControlPicture_common() local
255 rate_ctrl->rate_ctrl_method = PIPE_H264_ENC_RATE_CONTROL_METHOD_VARIABLE; in enc_ControlPicture_common()
258 rate_ctrl->rate_ctrl_method = PIPE_H264_ENC_RATE_CONTROL_METHOD_CONSTANT; in enc_ControlPicture_common()
261 rate_ctrl->rate_ctrl_method = PIPE_H264_ENC_RATE_CONTROL_METHOD_VARIABLE_SKIP; in enc_ControlPicture_common()
264 rate_ctrl->rate_ctrl_method = PIPE_H264_ENC_RATE_CONTROL_METHOD_CONSTANT_SKIP; in enc_ControlPicture_common()
267 rate_ctrl->rate_ctrl_method = PIPE_H264_ENC_RATE_CONTROL_METHOD_DISABLE; in enc_ControlPicture_common()
271 rate_ctrl->frame_rate_den = OMX_VID_ENC_CONTROL_FRAME_RATE_DEN_DEFAULT; in enc_ControlPicture_common()
272 rate_ctrl->frame_rate_num = ((priv->frame_rate) >> 16) * rate_ctrl->frame_rate_den; in enc_ControlPicture_common()
274 if (rate_ctrl->rate_ctrl_method != PIPE_H264_ENC_RATE_CONTROL_METHOD_DISABLE) { in enc_ControlPicture_common()
276 rate_ctrl->target_bitrate = OMX_VID_ENC_BITRATE_MIN; in enc_ControlPicture_common()
[all …]
/external/mesa3d/src/gallium/drivers/radeon/
Dradeon_vce_50.c41 RVCE_CS(enc->pic.rate_ctrl.rate_ctrl_method); // encRateControlMethod in rate_control()
42 RVCE_CS(enc->pic.rate_ctrl.target_bitrate); // encRateControlTargetBitRate in rate_control()
43 RVCE_CS(enc->pic.rate_ctrl.peak_bitrate); // encRateControlPeakBitRate in rate_control()
44 RVCE_CS(enc->pic.rate_ctrl.frame_rate_num); // encRateControlFrameRateNum in rate_control()
49 RVCE_CS(enc->pic.rate_ctrl.vbv_buffer_size); // encVBVBufferSize in rate_control()
50 RVCE_CS(enc->pic.rate_ctrl.frame_rate_den); // encRateControlFrameRateDen in rate_control()
54 RVCE_CS(enc->pic.rate_ctrl.target_bits_picture); // encTargetBitsPerPicture in rate_control()
55 RVCE_CS(enc->pic.rate_ctrl.peak_bits_picture_integer); // encPeakBitsPerPictureInteger in rate_control()
56 RVCE_CS(enc->pic.rate_ctrl.peak_bits_picture_fraction); // encPeakBitsPerPictureFractional in rate_control()
Dradeon_vce_40_2_2.c95 RVCE_CS(enc->pic.rate_ctrl.rate_ctrl_method); // encRateControlMethod in rate_control()
96 RVCE_CS(enc->pic.rate_ctrl.target_bitrate); // encRateControlTargetBitRate in rate_control()
97 RVCE_CS(enc->pic.rate_ctrl.peak_bitrate); // encRateControlPeakBitRate in rate_control()
98 RVCE_CS(enc->pic.rate_ctrl.frame_rate_num); // encRateControlFrameRateNum in rate_control()
103 RVCE_CS(enc->pic.rate_ctrl.vbv_buffer_size); // encVBVBufferSize in rate_control()
104 RVCE_CS(enc->pic.rate_ctrl.frame_rate_den); // encRateControlFrameRateDen in rate_control()
108 RVCE_CS(enc->pic.rate_ctrl.target_bits_picture); // encTargetBitsPerPicture in rate_control()
109 RVCE_CS(enc->pic.rate_ctrl.peak_bits_picture_integer); // encPeakBitsPerPictureInteger in rate_control()
110 RVCE_CS(enc->pic.rate_ctrl.peak_bits_picture_fraction); // encPeakBitsPerPictureFractional in rate_control()
224 if (!enc->pic.rate_ctrl.frame_rate_num) in vui()
[all …]
Dradeon_vcn_enc.c64 enc->enc_pic.rc_layer_init.target_bit_rate = pic->rate_ctrl.target_bitrate; in radeon_vcn_enc_get_param()
65 enc->enc_pic.rc_layer_init.peak_bit_rate = pic->rate_ctrl.peak_bitrate; in radeon_vcn_enc_get_param()
66 enc->enc_pic.rc_layer_init.frame_rate_num = pic->rate_ctrl.frame_rate_num; in radeon_vcn_enc_get_param()
67 enc->enc_pic.rc_layer_init.frame_rate_den = pic->rate_ctrl.frame_rate_den; in radeon_vcn_enc_get_param()
68 enc->enc_pic.rc_layer_init.vbv_buffer_size = pic->rate_ctrl.vbv_buffer_size; in radeon_vcn_enc_get_param()
69 enc->enc_pic.rc_layer_init.avg_target_bits_per_picture = pic->rate_ctrl.target_bits_picture; in radeon_vcn_enc_get_param()
71 pic->rate_ctrl.peak_bits_picture_integer; in radeon_vcn_enc_get_param()
73 pic->rate_ctrl.peak_bits_picture_fraction; in radeon_vcn_enc_get_param()
74 enc->enc_pic.rc_session_init.vbv_buffer_level = pic->rate_ctrl.vbv_buf_lv; in radeon_vcn_enc_get_param()
79 enc->enc_pic.rc_per_pic.enabled_filler_data = pic->rate_ctrl.fill_data_enable; in radeon_vcn_enc_get_param()
[all …]
Dradeon_vce_52.c40 enc->enc_pic.rc.rc_method = pic->rate_ctrl.rate_ctrl_method; in get_rate_control_param()
41 enc->enc_pic.rc.target_bitrate = pic->rate_ctrl.target_bitrate; in get_rate_control_param()
42 enc->enc_pic.rc.peak_bitrate = pic->rate_ctrl.peak_bitrate; in get_rate_control_param()
47 enc->enc_pic.rc.frame_rate_num = pic->rate_ctrl.frame_rate_num; in get_rate_control_param()
48 enc->enc_pic.rc.frame_rate_den = pic->rate_ctrl.frame_rate_den; in get_rate_control_param()
56 enc->enc_pic.rc.vbv_buffer_size = pic->rate_ctrl.target_bitrate; in get_rate_control_param()
58 enc->enc_pic.rc.vbv_buffer_size = pic->rate_ctrl.vbv_buffer_size; in get_rate_control_param()
61 enc->enc_pic.rc.vbv_buf_lv = pic->rate_ctrl.vbv_buf_lv; in get_rate_control_param()
62 enc->enc_pic.rc.fill_data_enable = pic->rate_ctrl.fill_data_enable; in get_rate_control_param()
63 enc->enc_pic.rc.enforce_hrd = pic->rate_ctrl.enforce_hrd; in get_rate_control_param()
[all …]
Dradeon_vce.c264 enc->pic.rate_ctrl.rate_ctrl_method != pic->rate_ctrl.rate_ctrl_method || in rvce_begin_frame()
268 enc->pic.rate_ctrl.target_bitrate != pic->rate_ctrl.target_bitrate; in rvce_begin_frame()
/external/mesa3d/src/gallium/drivers/r600/
Dradeon_vce.c273 enc->pic.rate_ctrl.rate_ctrl_method != pic->rate_ctrl.rate_ctrl_method || in rvce_begin_frame()
/external/mesa3d/src/gallium/include/pipe/
Dp_video_state.h411 struct pipe_h264_enc_rate_control rate_ctrl; member