[vlc-commits] direct3d11: remove Xbox One hacks
Steve Lhomme
git at videolan.org
Fri Nov 3 15:42:38 CET 2017
vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Wed Nov 1 09:39:21 2017 +0100| [0893635e52c56c0616574a260d018f189855d52e] | committer: Jean-Baptiste Kempf
direct3d11: remove Xbox One hacks
The latest update respect the video range properly
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0893635e52c56c0616574a260d018f189855d52e
---
modules/video_output/win32/direct3d11.c | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 25ccb4da30..5a105cc4a0 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1461,12 +1461,6 @@ static void D3D11SetColorSpace(vout_display_t *vd)
/* the YUV->RGB conversion already output full range */
is_d3d11_opaque(vd->source.i_chroma) ||
vlc_fourcc_IsYUV(vd->source.i_chroma);
-#if VLC_WINSTORE_APP
- if (!src_full_range && isXboxHardware(sys->d3ddevice)) {
- /* even in full range the Xbox outputs with less range so use the max we can*/
- src_full_range = true;
- }
-#endif
/* pick the best output based on color support and transfer */
/* TODO support YUV output later */
@@ -1983,12 +1977,6 @@ static HRESULT CompilePixelShader(vout_display_t *vd, const d3d_format_t *format
}
int range_adjust = sys->display.colorspace->b_full_range;
-#if VLC_WINSTORE_APP
- if (isXboxHardware(sys->d3ddevice)) {
- /* the Xbox lies, when it says it outputs full range it's less than full range */
- range_adjust--;
- }
-#endif
if (!IsRGBShader(format))
range_adjust--; /* the YUV->RGB conversion already output full range */
if (src_full_range)
More information about the vlc-commits
mailing list