[vlc-devel] [PATCH 07/14] direct3d11: add support for transfer conversion for BT.709 and sRGB sources
Steve Lhomme
robux4 at videolabs.io
Mon Mar 20 17:28:26 CET 2017
---
modules/video_output/win32/direct3d11.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 5787f1c453..ffd39e309b 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1655,6 +1655,14 @@ static HRESULT CompilePixelShader(vout_display_t *vd, const d3d_format_t *format
return rgb / 6.0";
src_transfer = TRANSFER_FUNC_LINEAR;
break;
+ case TRANSFER_FUNC_BT709:
+ psz_src_transform = "return pow(rgb, 1.0 / 0.45)";
+ src_transfer = TRANSFER_FUNC_LINEAR;
+ break;
+ case TRANSFER_FUNC_SRGB:
+ psz_src_transform = "return pow(rgb, 2.2)";
+ src_transfer = TRANSFER_FUNC_LINEAR;
+ break;
default:
src_transfer = transfer;
break;
--
2.11.1
More information about the vlc-devel
mailing list