Disable codec tone-mapping on Fold 4 API 33

The codec plugin sets crop values incorrectly.

PiperOrigin-RevId: 547160088
This commit is contained in:
andrewlewis 2023-07-11 13:32:28 +01:00 committed by Rohit Singh
parent 2afcf99591
commit 7df09fe4b7

View file

@ -184,6 +184,13 @@ public final class DefaultDecoderFactory implements Codec.DecoderFactory {
// works on PQ (see b/282791751#comment7).
return true;
}
if (SDK_INT < 34
&& colorTransfer == C.COLOR_TRANSFER_ST2084
&& Util.MODEL.startsWith("SM-F936")) {
// The Samsung Fold 4 HDR10 codec plugin for tonemapping sets incorrect crop values, so block
// using it (see b/290725189).
return true;
}
return false;
}