HDR: Add SM-X900 to HLG10 tone mapping blocklist.

PiperOrigin-RevId: 545647083
This commit is contained in:
huangdarwin 2023-07-05 13:05:51 +00:00 committed by microkatz
parent fa781782da
commit 756845426b

View File

@ -181,7 +181,9 @@ public final class DefaultDecoderFactory implements Codec.DecoderFactory {
return true;
}
if (colorTransfer == C.COLOR_TRANSFER_HLG
&& (Util.MODEL.startsWith("SM-F936") || Util.MODEL.startsWith("SM-F916"))) {
&& (Util.MODEL.startsWith("SM-F936")
|| Util.MODEL.startsWith("SM-F916")
|| Util.MODEL.equals("SM-X900"))) {
// Some Samsung Galaxy Z Fold devices report support for HLG tone mapping but the feature only
// works on PQ (see b/282791751#comment7).
return true;