[vlc-devel] [PATCH 0/8] Xbox fixes

Steve Lhomme robux4 at videolabs.io
Fri Jan 6 18:32:36 CET 2017


The Xbox has some issues where standard Windows has no problem:
- it cannot decode 4K H264 sources
- it assumes the pixels are in "studio" range even though our code
works in "full" range.

This set of patches fixes these 2 issues. When we detect the Xbox
we forbid 4K H264 in D3D11VA and we to a full->studio conversion
in the pixel shader.

Steve Lhomme (8):
  dxgi_fmt: add a helper function to detect the Xbox One
  d3d11va: workaround for Xbox decoder limitations
  d3d11: include initguid.h before d3d11.h so we have all the class IIDs
    needed
  direct3d11: make sure ppColorspace is always set a value
  direct3d11: the magic value for the white point is 16/256
  direct3d11: make the pixel shader matrices non-const
  direct3d11: pass the whitepoint and colorspace matrices to the RGB
    pixel shader
  direct3d11: tweak the pixel shader for the Xbox

 modules/codec/avcodec/d3d11va.c         | 17 ++++++---
 modules/video_chroma/dxgi_fmt.c         | 33 +++++++++++++++++
 modules/video_chroma/dxgi_fmt.h         |  3 ++
 modules/video_output/win32/common.h     |  1 +
 modules/video_output/win32/direct3d11.c | 63 ++++++++++++++++++++++++++++-----
 5 files changed, 104 insertions(+), 13 deletions(-)

-- 
2.10.2



More information about the vlc-devel mailing list