Skip to content

Commit 1546db8

Browse files
committed
Update code docs
1 parent cbfaa2e commit 1546db8

1 file changed

Lines changed: 12 additions & 29 deletions

File tree

docs/source_utils_deviceCapabilities.bs.html

Lines changed: 12 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -526,53 +526,36 @@
526526
end for
527527

528528
' HDR SUPPORT
529-
h264VideoRangeTypes = "SDR"
530-
hevcVideoRangeTypes = "SDR"
529+
h264VideoRangeTypes = "SDR|DOVIWithSDR"
530+
hevcVideoRangeTypes = "SDR|DOVIWithSDR"
531531
vp9VideoRangeTypes = "SDR"
532-
av1VideoRangeTypes = "SDR"
533-
canPlayDovi = false
532+
av1VideoRangeTypes = "SDR|DOVIWithSDR"
534533

535534
if canPlay4k()
536535
print "This device supports 4k video"
537536
dp = di.GetDisplayProperties()
538537

539538
if dp.DolbyVision
540-
canPlayDovi = true
541-
542-
h264VideoRangeTypes = h264VideoRangeTypes + "|DOVI|DOVIWithSDR"
543-
hevcVideoRangeTypes = hevcVideoRangeTypes + "|DOVI|DOVIWithSDR"
544-
av1VideoRangeTypes = av1VideoRangeTypes + "|DOVI|DOVIWithSDR"
539+
h264VideoRangeTypes = h264VideoRangeTypes + "|DOVI"
540+
hevcVideoRangeTypes = hevcVideoRangeTypes + "|DOVI"
541+
av1VideoRangeTypes = av1VideoRangeTypes + "|DOVI"
545542
end if
546543

547544
if dp.Hdr10
548-
hevcVideoRangeTypes = hevcVideoRangeTypes + "|HDR10"
545+
hevcVideoRangeTypes = hevcVideoRangeTypes + "|HDR10|DOVIWithHDR10"
549546
vp9VideoRangeTypes = vp9VideoRangeTypes + "|HDR10"
550-
av1VideoRangeTypes = av1VideoRangeTypes + "|HDR10"
551-
552-
if canPlayDovi
553-
hevcVideoRangeTypes = hevcVideoRangeTypes + "|DOVIWithHDR10"
554-
av1VideoRangeTypes = av1VideoRangeTypes + "|DOVIWithHDR10"
555-
end if
547+
av1VideoRangeTypes = av1VideoRangeTypes + "|HDR10|DOVIWithHDR10"
556548
end if
557549

558550
if dp.Hdr10Plus
559-
av1VideoRangeTypes = av1VideoRangeTypes + "|HDR10Plus"
560-
561-
if canPlayDovi
562-
hevcVideoRangeTypes = hevcVideoRangeTypes + "|DOVIWithHDR10Plus"
563-
av1VideoRangeTypes = av1VideoRangeTypes + "|DOVIWithHDR10Plus"
564-
end if
551+
av1VideoRangeTypes = av1VideoRangeTypes + "|HDR10Plus|DOVIWithHDR10Plus"
552+
hevcVideoRangeTypes = hevcVideoRangeTypes + "|HDR10Plus|DOVIWithHDR10Plus"
565553
end if
566554

567555
if dp.HLG
568-
hevcVideoRangeTypes = hevcVideoRangeTypes + "|HLG"
556+
hevcVideoRangeTypes = hevcVideoRangeTypes + "|HLG|DOVIWithHLG"
569557
vp9VideoRangeTypes = vp9VideoRangeTypes + "|HLG"
570-
av1VideoRangeTypes = av1VideoRangeTypes + "|HLG"
571-
572-
if canPlayDovi
573-
hevcVideoRangeTypes = hevcVideoRangeTypes + "|DOVIWithHLG"
574-
av1VideoRangeTypes = av1VideoRangeTypes + "|DOVIWithHLG"
575-
end if
558+
av1VideoRangeTypes = av1VideoRangeTypes + "|HLG|DOVIWithHLG"
576559
end if
577560
end if
578561

0 commit comments

Comments
 (0)