-1

I am using below code to check hdr compatibility

var displayInfo = DisplayInformation.GetForCurrentView();
var colorInfo = displayInfo.GetAdvancedColorInfo();
var isHDRSupported = colorInfo.IsHdrMetadataFormatCurrentlySupported(HdrMetadataFormat.HDR10); 

I have hdr display screen but that code always returns false though it is an HDR scree. Please suggest some solution.

Thanks in advance.

mjwills
  • 23,389
  • 6
  • 40
  • 63
prem
  • 27
  • 6
  • Please format you code. Is the API you are using part of an external library or it is your implementation? Provide the code if it is yours. – Dimitar Mar 25 '19 at 10:42
  • this is c# code and api provided by Microsoft only. – prem Mar 25 '19 at 10:48
  • Did a search on that function, looks like it is undocumented (in [.NET API browser](https://learn.microsoft.com/en-us/dotnet/api/index?term=HdrMetadataFormat)) but it does exists [in UWP API](https://learn.microsoft.com/en-us/dotnet/api/index?term=HdrMetadataFormat). Added edit suggestion fot that tag. – Cleptus Mar 25 '19 at 11:24
  • 3
    I wonder if the screen does expose HDR metadata correctly or if your windows 10 is in up to date [Device family Windows 10, version 1803 & API contract v.6](https://learn.microsoft.com/es-mx/uwp/api/windows.graphics.display.hdrmetadataformat) – Cleptus Mar 25 '19 at 11:32
  • What screen are you using? How do you know it is HDR? What driver are you using for the screen? – mjwills Mar 26 '19 at 12:51
  • I have UWP app for Xbox which has windows 10.0.17763.4088. I have connected my xbox to Samsung 2018 TV and it's a hdr tv. – prem Mar 26 '19 at 14:05
  • What is the exact model of the TV? – mjwills Mar 26 '19 at 20:27
  • Samsung 2018 model UE43NU7400 – prem Mar 27 '19 at 09:37

1 Answers1

0

UWP on Xbox One does not support HDR10 output.

See this blog post

Chuck Walbourn
  • 38,259
  • 2
  • 58
  • 81