Loading msm/vidc/msm_venc.c +6 −1 Original line number Diff line number Diff line Loading @@ -3098,9 +3098,14 @@ int msm_venc_set_image_properties(struct msm_vidc_inst *inst) return -EINVAL; } if (inst->rc_type != V4L2_MPEG_VIDEO_BITRATE_MODE_CQ) if (!is_image_session(inst) && !is_grid_session(inst)) return 0; if (inst->rc_type != V4L2_MPEG_VIDEO_BITRATE_MODE_CQ) { d_vpr_e("%s: invalid rate control mode\n", __func__); return -EINVAL; } rc = msm_venc_set_frame_quality(inst); if (rc) { s_vpr_e(inst->sid, Loading msm/vidc/msm_vidc_buffer_calculations.c +6 −0 Original line number Diff line number Diff line Loading @@ -649,6 +649,12 @@ int msm_vidc_calculate_input_buffer_count(struct msm_vidc_inst *inst) return 0; } if (is_grid_session(inst)) { fmt->count_min = fmt->count_min_host = fmt->count_actual = SINGLE_INPUT_BUFFER + 1; return 0; } extra_buff_count = msm_vidc_get_extra_buff_count(inst, HAL_BUFFER_INPUT); fmt->count_min = MIN_INPUT_BUFFERS; Loading Loading
msm/vidc/msm_venc.c +6 −1 Original line number Diff line number Diff line Loading @@ -3098,9 +3098,14 @@ int msm_venc_set_image_properties(struct msm_vidc_inst *inst) return -EINVAL; } if (inst->rc_type != V4L2_MPEG_VIDEO_BITRATE_MODE_CQ) if (!is_image_session(inst) && !is_grid_session(inst)) return 0; if (inst->rc_type != V4L2_MPEG_VIDEO_BITRATE_MODE_CQ) { d_vpr_e("%s: invalid rate control mode\n", __func__); return -EINVAL; } rc = msm_venc_set_frame_quality(inst); if (rc) { s_vpr_e(inst->sid, Loading
msm/vidc/msm_vidc_buffer_calculations.c +6 −0 Original line number Diff line number Diff line Loading @@ -649,6 +649,12 @@ int msm_vidc_calculate_input_buffer_count(struct msm_vidc_inst *inst) return 0; } if (is_grid_session(inst)) { fmt->count_min = fmt->count_min_host = fmt->count_actual = SINGLE_INPUT_BUFFER + 1; return 0; } extra_buff_count = msm_vidc_get_extra_buff_count(inst, HAL_BUFFER_INPUT); fmt->count_min = MIN_INPUT_BUFFERS; Loading