Effect: Remove todo to consider using Gamma 2.2 everywhere.

Per testing, using gamma 2.2 everywhere resulted in undesirable color
shifting.

PiperOrigin-RevId: 515008279
This commit is contained in:
huangdarwin 2023-03-08 13:13:40 +00:00 committed by tonihei
parent d152175e27
commit b3023ffe9a

View File

@ -131,8 +131,6 @@ public final class DefaultVideoFrameProcessor implements VideoFrameProcessor {
// Gamma 2.2 is used instead of SMPTE 170M for SDR, despite MediaFormat's // Gamma 2.2 is used instead of SMPTE 170M for SDR, despite MediaFormat's
// COLOR_TRANSFER_SDR_VIDEO being defined as SMPTE 170M. This is to match // COLOR_TRANSFER_SDR_VIDEO being defined as SMPTE 170M. This is to match
// other known tone-mapping behavior within the Android ecosystem. // other known tone-mapping behavior within the Android ecosystem.
// TODO(b/239735341): Consider migrating SDR outside tone-mapping from SMPTE
// 170M to gamma 2.2.
checkArgument(inputColorInfo.colorSpace == C.COLOR_SPACE_BT2020); checkArgument(inputColorInfo.colorSpace == C.COLOR_SPACE_BT2020);
checkArgument(outputColorInfo.colorSpace != C.COLOR_SPACE_BT2020); checkArgument(outputColorInfo.colorSpace != C.COLOR_SPACE_BT2020);
checkArgument(ColorInfo.isTransferHdr(inputColorInfo)); checkArgument(ColorInfo.isTransferHdr(inputColorInfo));