return VA_STATUS_ERROR_ALLOCATION_FAILED;
getEncParamPresetH264(context);
+ context->desc.h264enc.rate_ctrl[0].vbv_buffer_size = 20000000;
+ context->desc.h264enc.rate_ctrl[0].vbv_buf_lv = 48;
+ context->desc.h264enc.rate_ctrl[0].fill_data_enable = 1;
+ context->desc.h264enc.rate_ctrl[0].enforce_hrd = 1;
+ context->desc.h264enc.rate_ctrl[0].max_qp = 51;
+ context->desc.h264enc.rate_ctrl[0].min_qp = 0;
+ context->desc.h264enc.enable_vui = false;
}
context->desc.h264enc.intra_idr_period =
void getEncParamPresetH264(vlVaContext *context)
{
//rate control
- context->desc.h264enc.rate_ctrl[0].vbv_buffer_size = 20000000;
- context->desc.h264enc.rate_ctrl[0].vbv_buf_lv = 48;
- context->desc.h264enc.rate_ctrl[0].fill_data_enable = 1;
- context->desc.h264enc.rate_ctrl[0].enforce_hrd = 1;
- context->desc.h264enc.rate_ctrl[0].max_qp = 51;
- context->desc.h264enc.rate_ctrl[0].min_qp = 0;
- context->desc.h264enc.enable_vui = false;
if (context->desc.h264enc.rate_ctrl[0].frame_rate_num == 0 ||
context->desc.h264enc.rate_ctrl[0].frame_rate_den == 0) {
context->desc.h264enc.rate_ctrl[0].frame_rate_num = 30;
return VA_STATUS_ERROR_ALLOCATION_FAILED;
getEncParamPresetH265(context);
+ context->desc.h265enc.rc.vbv_buffer_size = 20000000;
+ context->desc.h265enc.rc.vbv_buf_lv = 48;
+ context->desc.h265enc.rc.fill_data_enable = 1;
+ context->desc.h265enc.rc.enforce_hrd = 1;
+ context->desc.h265enc.rc.max_qp = 51;
+ context->desc.h265enc.rc.min_qp = 0;
}
context->desc.h265enc.seq.general_profile_idc = h265->general_profile_idc;
void getEncParamPresetH265(vlVaContext *context)
{
//rate control
- context->desc.h265enc.rc.vbv_buffer_size = 20000000;
- context->desc.h265enc.rc.vbv_buf_lv = 48;
- context->desc.h265enc.rc.fill_data_enable = 1;
- context->desc.h265enc.rc.enforce_hrd = 1;
- context->desc.h265enc.rc.max_qp = 51;
- context->desc.h265enc.rc.min_qp = 0;
-
if (context->desc.h265enc.rc.frame_rate_num == 0 ||
context->desc.h265enc.rc.frame_rate_den == 0) {
context->desc.h265enc.rc.frame_rate_num = 30;