Effect: Improve setEnableColorTransfers javadoc.

PiperOrigin-RevId: 619250163
This commit is contained in:
huangdarwin 2024-03-26 11:09:33 -07:00 committed by Copybara-Service
parent 7a105e0e57
commit 24e1796c50

View File

@ -111,7 +111,14 @@ public final class DefaultVideoFrameProcessor implements VideoFrameProcessor {
/** /**
* Sets whether to transfer colors to an intermediate color space when applying effects. * Sets whether to transfer colors to an intermediate color space when applying effects.
* *
* <p>The default value is {@code true}.
*
* <p>If the input or output is HDR, this must be {@code true}. * <p>If the input or output is HDR, this must be {@code true}.
*
* <p>If all input and output content will be SDR, it's recommended to set this value to
* {@code false}. This is because 8-bit colors in SDR may result in color banding.
*
* <p>This doesn't currently work with overlay effects (ex. {@link TextureOverlay}).
*/ */
@CanIgnoreReturnValue @CanIgnoreReturnValue
public Builder setEnableColorTransfers(boolean enableColorTransfers) { public Builder setEnableColorTransfers(boolean enableColorTransfers) {