amd/vpelib: add VPE_TF_SRGB
[HOW] Add VPE_SURFACE_PIXEL_FORMAT_VIDEO_420_10bpc_YCrCb -> VPE_TF_SRGB in vpe_visual_confirm.c Co-authored-by: Mike Han <szuchhan@amd.com> Reviewed-by: Tomson Chang <Tomson.Chang@amd.com> Reviewed-by: Min-Hsuan You <Min-Hsuan.You@amd.com> Acked-by: ChuanYu Tseng <ChuanYu.Tseng@amd.com> Signed-off-by: Han, Szu Chih <SzuChih.Han@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35012>
This commit is contained in:
committed by
ChuanYu Tseng (Max)
parent
7b68174bf0
commit
3bd03b3cb0
@@ -101,11 +101,12 @@ struct vpe_color vpe_get_visual_confirm_color(enum vpe_surface_pixel_format form
|
||||
switch (cs.tf) {
|
||||
case VPE_TF_G22:
|
||||
case VPE_TF_G24:
|
||||
case VPE_TF_SRGB:
|
||||
visual_confirm_color.rgba.r = 1.0;
|
||||
visual_confirm_color.rgba.g = 1.0;
|
||||
visual_confirm_color.rgba.b = 0.0;
|
||||
break;
|
||||
// YUV420 10bit: White (HDR)
|
||||
// YUV420 10bit 3dlut enable: White (HDR)
|
||||
case VPE_TF_PQ:
|
||||
case VPE_TF_HLG:
|
||||
if (enable_3dlut) {
|
||||
@@ -113,6 +114,7 @@ struct vpe_color vpe_get_visual_confirm_color(enum vpe_surface_pixel_format form
|
||||
visual_confirm_color.rgba.g = 1.0;
|
||||
visual_confirm_color.rgba.b = 1.0;
|
||||
} else {
|
||||
// YUV420 10bit 3dlut disable: Red (HDR)
|
||||
visual_confirm_color.rgba.r = 1.0;
|
||||
visual_confirm_color.rgba.g = 0.0;
|
||||
visual_confirm_color.rgba.b = 0.0;
|
||||
|
||||
Reference in New Issue
Block a user