pr_csc("saturation offset = %d.\n",
saturation_offset);
cur_csc_type = csc_type;
-
- if (vf) {
- if ((cur_csc_type == VPP_MATRIX_BT2020YUV_BT2020RGB) &&
- (cur_csc_type != 0xffff) &&
- (vf->source_type == VFRAME_SOURCE_TYPE_HDMI)) {
- amvecm_wakeup_queue();
- pr_csc("wake up hdr status queue.\n");
- }
- }
}
}
set_hdr_to_frame(vf);
#endif
-#if defined(CONFIG_AMLOGIC_MEDIA_ENHANCEMENT_VECM)
- refresh_on_vs(vf);
- if (amvecm_on_vs(
- (cur_dispbuf != &vf_local)
- ? cur_dispbuf : NULL,
- vf, CSC_FLAG_CHECK_OUTPUT,
- cur_frame_par ?
- cur_frame_par->supsc1_hori_ratio :
- 0,
- cur_frame_par ?
- cur_frame_par->supsc1_vert_ratio :
- 0) == 1)
- break;
-#endif
/*
*two special case:
*case1:4k display case,input buffer not enough &
video_3d_format = vf->trans_fmt;
}
}
+
+#if defined(CONFIG_AMLOGIC_MEDIA_ENHANCEMENT_VECM)
+ refresh_on_vs(vf);
+ if (amvecm_on_vs(
+ (cur_dispbuf != &vf_local)
+ ? cur_dispbuf : NULL,
+ vf, CSC_FLAG_CHECK_OUTPUT,
+ cur_frame_par ?
+ cur_frame_par->supsc1_hori_ratio :
+ 0,
+ cur_frame_par ?
+ cur_frame_par->supsc1_vert_ratio :
+ 0) == 1)
+ break;
+#endif
+
vsync_toggle_frame(vf, __LINE__);
toggle_frame = vf;
#ifdef CONFIG_AMLOGIC_MEDIA_ENHANCEMENT_DOLBYVISION