value = pOutStr->MasteringDisplayColourVolumeSei1;
break;
case V4L2_CID_MPEG_VIDEO_FULL_RANGE_FLAG:
- if (IS_VP9_DEC(ctx)) {
- buf_ctrl->val = dec->color_range;
- buf_ctrl->has_new = 1;
- continue;
- }
case V4L2_CID_MPEG_VIDEO_COLOUR_PRIMARIES:
- if (IS_VP9_DEC(ctx)) {
- buf_ctrl->val = dec->color_space;
- buf_ctrl->has_new = 1;
- continue;
- }
case V4L2_CID_MPEG_VIDEO_FORMAT:
case V4L2_CID_MPEG_VIDEO_TRANSFER_CHARACTERISTICS:
case V4L2_CID_MPEG_VIDEO_MATRIX_COEFFICIENTS:
buf_ctrl->val = value;
buf_ctrl->has_new = 1;
+ if (IS_VP9_DEC(ctx)) {
+ if (buf_ctrl->id == V4L2_CID_MPEG_VIDEO_FULL_RANGE_FLAG)
+ buf_ctrl->val = dec->color_range;
+ else if (buf_ctrl->id == V4L2_CID_MPEG_VIDEO_COLOUR_PRIMARIES)
+ buf_ctrl->val = dec->color_space;
+ }
+
mfc_debug(3, "NAL Q: dec_get_buf_ctrls, ctrl id: 0x%x, val: %d\n",
buf_ctrl->id, buf_ctrl->val);
}
struct s5p_mfc_platdata *pdata = dev->pdata;
struct s5p_mfc_qos *qos_table = pdata->qos_table;
struct s5p_mfc_ctx *qos_ctx;
- unsigned long hw_mb = 0, total_mb = 0;
- unsigned int fw_time, sw_time, total_fps = 0;
+ unsigned long hw_mb = 0, total_mb = 0, total_fps = 0;
+ unsigned int fw_time, sw_time;
int i, found = 0, enc_found = 0;
int start_qos_step;
#ifdef CONFIG_EXYNOS_BTS
total_mb = ((1000000 * hw_mb) / (1000000 - (total_fps * sw_time)));
mfc_debug(4, "QoS table[%d] fw_time: %dus, hw_mb: %ld, "
- "sw_time: %d, total_fps: %d, total_mb: %ld\n",
+ "sw_time: %d, total_fps: %ld, total_mb: %ld\n",
i, fw_time, hw_mb, sw_time, total_fps, total_mb);
if ((total_mb > qos_table[i].threshold_mb) || (i == 0))
struct s5p_mfc_platdata *pdata = dev->pdata;
struct s5p_mfc_qos *qos_table = pdata->qos_table;
struct s5p_mfc_ctx *qos_ctx;
- unsigned long hw_mb = 0, total_mb = 0;
- unsigned int fw_time, sw_time, total_fps = 0;
+ unsigned long hw_mb = 0, total_mb = 0, total_fps = 0;
+ unsigned int fw_time, sw_time;
int i, found = 0, enc_found = 0;
int start_qos_step;
#ifdef CONFIG_EXYNOS_BTS
total_mb = ((1000000 * hw_mb) / (1000000 - (total_fps * sw_time)));
mfc_debug(4, "QoS table[%d] fw_time: %dus, hw_mb: %ld, "
- "sw_time: %d, total_fps: %d, total_mb: %ld\n",
+ "sw_time: %d, total_fps: %ld, total_mb: %ld\n",
i, fw_time, hw_mb, sw_time, total_fps, total_mb);
if ((total_mb > qos_table[i].threshold_mb) || (total_mb == 0) || (i == 0))