From 1a4db0d9df41921938484a2a5e52ae2fca97c19e Mon Sep 17 00:00:00 2001 From: Charles Ewert Date: Tue, 15 Oct 2024 11:34:38 -0400 Subject: [PATCH] stop restricting videos based on bitdepth --- source/utils/deviceCapabilities.bs | 39 ++---------------------------- 1 file changed, 2 insertions(+), 37 deletions(-) diff --git a/source/utils/deviceCapabilities.bs b/source/utils/deviceCapabilities.bs index 8960b504b..384838972 100644 --- a/source/utils/deviceCapabilities.bs +++ b/source/utils/deviceCapabilities.bs @@ -416,12 +416,7 @@ end function function getCodecProfiles() as object myGlobal = m.global globalUserSettings = myGlobal.session.user.settings - displayMaxBitDepth = myGlobal.device.videoBitDepth - if displayMaxBitDepth = invalid - displayMaxBitDepth = "8" - else - displayMaxBitDepth = displayMaxBitDepth.toStr() - end if + codecProfiles = [] profileSupport = { "h264": {}, @@ -631,12 +626,6 @@ function getCodecProfiles() as object "Value": "true", "IsRequired": false }, - { - "Condition": "LessThanEqual", - "Property": "VideoBitDepth", - "Value": "8", - "IsRequired": false - }, { "Condition": "EqualsAny", "Property": "VideoProfile", @@ -696,13 +685,7 @@ function getCodecProfiles() as object "Property": "VideoLevel", "Value": mpeg2Levels.join("|"), "IsRequired": false - }, - { - "Condition": "LessThanEqual", - "Property": "VideoBitDepth", - "Value": displayMaxBitDepth, - "IsRequired": false - }, + } ] } @@ -738,12 +721,6 @@ function getCodecProfiles() as object "Type": "Video", "Codec": "av1", "Conditions": [ - { - "Condition": "LessThanEqual", - "Property": "VideoBitDepth", - "Value": displayMaxBitDepth, - "IsRequired": false - }, { "Condition": "EqualsAny", "Property": "VideoProfile", @@ -803,12 +780,6 @@ function getCodecProfiles() as object "Type": "Video", "Codec": "hevc", "Conditions": [ - { - "Condition": "LessThanEqual", - "Property": "VideoBitDepth", - "Value": displayMaxBitDepth, - "IsRequired": false - }, { "Condition": "NotEquals", "Property": "IsAnamorphic", @@ -878,12 +849,6 @@ function getCodecProfiles() as object "Type": "Video", "Codec": "vp9", "Conditions": [ - { - "Condition": "LessThanEqual", - "Property": "VideoBitDepth", - "Value": displayMaxBitDepth, - "IsRequired": false - }, { "Condition": "EqualsAny", "Property": "VideoProfile",