diff --git a/demos/transformer/src/main/java/com/google/android/exoplayer2/transformerdemo/BitmapOverlayProcessor.java b/demos/transformer/src/main/java/com/google/android/exoplayer2/transformerdemo/BitmapOverlayProcessor.java index 6b85bb3ade..5d4403b933 100644 --- a/demos/transformer/src/main/java/com/google/android/exoplayer2/transformerdemo/BitmapOverlayProcessor.java +++ b/demos/transformer/src/main/java/com/google/android/exoplayer2/transformerdemo/BitmapOverlayProcessor.java @@ -67,7 +67,7 @@ import java.util.Locale; * * @param context The {@link Context}. * @param useHdr Whether input textures come from an HDR source. If {@code true}, colors will be - * in linear RGB BT.2020. If {@code false}, colors will be in gamma RGB BT.709. + * in linear RGB BT.2020. If {@code false}, colors will be in linear RGB BT.709. * @throws FrameProcessingException If a problem occurs while reading shader files. */ public BitmapOverlayProcessor(Context context, boolean useHdr) throws FrameProcessingException { diff --git a/demos/transformer/src/main/java/com/google/android/exoplayer2/transformerdemo/PeriodicVignetteProcessor.java b/demos/transformer/src/main/java/com/google/android/exoplayer2/transformerdemo/PeriodicVignetteProcessor.java index 88ec4a596e..49bae5cd64 100644 --- a/demos/transformer/src/main/java/com/google/android/exoplayer2/transformerdemo/PeriodicVignetteProcessor.java +++ b/demos/transformer/src/main/java/com/google/android/exoplayer2/transformerdemo/PeriodicVignetteProcessor.java @@ -53,7 +53,7 @@ import java.io.IOException; * * @param context The {@link Context}. * @param useHdr Whether input textures come from an HDR source. If {@code true}, colors will be - * in linear RGB BT.2020. If {@code false}, colors will be in gamma RGB BT.709. + * in linear RGB BT.2020. If {@code false}, colors will be in linear RGB BT.709. * @param centerX The x-coordinate of the center of the effect. * @param centerY The y-coordinate of the center of the effect. * @param minInnerRadius The lower bound of the radius that is unaffected by the effect. diff --git a/demos/transformer/src/withMediaPipe/java/androidx/media3/demo/transformer/MediaPipeProcessor.java b/demos/transformer/src/withMediaPipe/java/androidx/media3/demo/transformer/MediaPipeProcessor.java index bdcac99d36..e55e6d52c9 100644 --- a/demos/transformer/src/withMediaPipe/java/androidx/media3/demo/transformer/MediaPipeProcessor.java +++ b/demos/transformer/src/withMediaPipe/java/androidx/media3/demo/transformer/MediaPipeProcessor.java @@ -85,7 +85,7 @@ import java.util.concurrent.Future; * * @param context The {@link Context}. * @param useHdr Whether input textures come from an HDR source. If {@code true}, colors will be - * in linear RGB BT.2020. If {@code false}, colors will be in gamma RGB BT.709. + * in linear RGB BT.2020. If {@code false}, colors will be in linear RGB BT.709. * @param graphName Name of a MediaPipe graph asset to load. * @param isSingleFrameGraph Whether the MediaPipe graph will eventually produce one output frame * each time an input frame (and no other input) has been queued. diff --git a/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/ColorLutProcessor.java b/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/ColorLutProcessor.java index a158cd0cdc..266a39917b 100644 --- a/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/ColorLutProcessor.java +++ b/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/ColorLutProcessor.java @@ -41,7 +41,7 @@ import java.io.IOException; * @param context The {@link Context}. * @param colorLut The {@link ColorLut} to apply to each frame in order. * @param useHdr Whether input textures come from an HDR source. If {@code true}, colors will be - * in linear RGB BT.2020. If {@code false}, colors will be in gamma RGB BT.709. + * in linear RGB BT.2020. If {@code false}, colors will be in linear RGB BT.709. * @throws FrameProcessingException If a problem occurs while reading shader files. */ public ColorLutProcessor(Context context, ColorLut colorLut, boolean useHdr) diff --git a/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/ContrastProcessor.java b/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/ContrastProcessor.java index 08b8489fce..f978df260a 100644 --- a/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/ContrastProcessor.java +++ b/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/ContrastProcessor.java @@ -38,7 +38,7 @@ import java.io.IOException; * @param context The {@link Context}. * @param contrastEffect The {@link Contrast} to apply to each frame in order. * @param useHdr Whether input textures come from an HDR source. If {@code true}, colors will be - * in linear RGB BT.2020. If {@code false}, colors will be in gamma RGB BT.709. + * in linear RGB BT.2020. If {@code false}, colors will be in linear RGB BT.709. * @throws FrameProcessingException If a problem occurs while reading shader files. */ public ContrastProcessor(Context context, Contrast contrastEffect, boolean useHdr) diff --git a/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/GlEffect.java b/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/GlEffect.java index 5f2831faa6..99c21562f1 100644 --- a/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/GlEffect.java +++ b/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/GlEffect.java @@ -33,7 +33,7 @@ public interface GlEffect extends Effect { * * @param context A {@link Context}. * @param useHdr Whether input textures come from an HDR source. If {@code true}, colors will be - * in linear RGB BT.2020. If {@code false}, colors will be in gamma RGB BT.709. + * in linear RGB BT.2020. If {@code false}, colors will be in linear RGB BT.709. */ GlTextureProcessor toGlTextureProcessor(Context context, boolean useHdr) throws FrameProcessingException; diff --git a/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/HslProcessor.java b/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/HslProcessor.java index cc93cdddee..8338eb89ec 100644 --- a/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/HslProcessor.java +++ b/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/HslProcessor.java @@ -40,7 +40,7 @@ import java.io.IOException; * @param context The {@link Context}. * @param hslAdjustment The {@link HslAdjustment} to apply to each frame in order. * @param useHdr Whether input textures come from an HDR source. If {@code true}, colors will be - * in linear RGB BT.2020. If {@code false}, colors will be in gamma RGB BT.709. + * in linear RGB BT.2020. If {@code false}, colors will be in linear RGB BT.709. * @throws FrameProcessingException If a problem occurs while reading shader files. */ public HslProcessor(Context context, HslAdjustment hslAdjustment, boolean useHdr) diff --git a/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/MatrixTextureProcessor.java b/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/MatrixTextureProcessor.java index 167ee684c7..9fe18e8cd3 100644 --- a/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/MatrixTextureProcessor.java +++ b/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/MatrixTextureProcessor.java @@ -49,7 +49,6 @@ import java.util.List; * *
Can copy frames from an external texture and apply color transformations for HDR if needed. */ -// TODO(b/241902517): Fix Gamma references since intermediate color space is now linear. @SuppressWarnings("FunctionalInterfaceClash") // b/228192298 /* package */ final class MatrixTextureProcessor extends SingleFrameGlTextureProcessor implements ExternalTextureProcessor { @@ -130,8 +129,8 @@ import java.util.List; /** * Creates a new instance. * - *
Input and output are both intermediate optical colors, which are linear RGB BT.2020 if - * {@code useHdr} is {@code true} and gamma RGB BT.709 if not. + *
Input and output are both intermediate optical/linear colors, and RGB BT.2020 if {@code + * useHdr} is {@code true} and RGB BT.709 if not. * * @param context The {@link Context}. * @param matrixTransformations The {@link GlMatrixTransformation GlMatrixTransformations} to @@ -172,8 +171,8 @@ import java.util.List; * intermediate optical {@link GlTextureProcessor} color output, before {@code * matrixTransformations} and {@code rgbMatrices} are applied. * - *
Intermediate optical colors are linear RGB BT.2020 if {@code electricalColorInfo} is - * {@linkplain ColorInfo#isTransferHdr(ColorInfo) HDR}, and gamma RGB BT.709 if not. + *
Intermediate optical/linear colors are RGB BT.2020 if {@code electricalColorInfo} is + * {@linkplain ColorInfo#isTransferHdr(ColorInfo) HDR}, and RGB BT.709 if not. * * @param context The {@link Context}. * @param matrixTransformations The {@link GlMatrixTransformation GlMatrixTransformations} to @@ -233,8 +232,8 @@ import java.util.List; * GlTextureProcessor} color input, to electrical color output, after {@code * matrixTransformations} and {@code rgbMatrices} are applied. * - *
Intermediate optical colors are linear RGB BT.2020 if {@code electricalColorInfo} is - * {@linkplain ColorInfo#isTransferHdr(ColorInfo) HDR}, and gamma RGB BT.709 if not. + *
Intermediate optical/linear colors are RGB BT.2020 if {@code electricalColorInfo} is + * {@linkplain ColorInfo#isTransferHdr(ColorInfo) HDR}, and RGB BT.709 if not. * * @param context The {@link Context}. * @param matrixTransformations The {@link GlMatrixTransformation GlMatrixTransformations} to diff --git a/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/RgbMatrix.java b/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/RgbMatrix.java index 73ece06851..9479fbafda 100644 --- a/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/RgbMatrix.java +++ b/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/RgbMatrix.java @@ -31,7 +31,7 @@ public interface RgbMatrix extends GlEffect { * * @param presentationTimeUs The timestamp of the frame to apply the matrix on. * @param useHdr If {@code true}, colors will be in linear RGB BT.2020. If {@code false}, colors - * will be in gamma RGB BT.709. Must be consistent with {@code useHdr} in {@link + * will be in linear RGB BT.709. Must be consistent with {@code useHdr} in {@link * #toGlTextureProcessor(Context, boolean)}. * @return The {@code RgbMatrix} to apply to the frame. */ diff --git a/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/SingleFrameGlTextureProcessor.java b/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/SingleFrameGlTextureProcessor.java index 7e68a90fb7..5687deeb7c 100644 --- a/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/SingleFrameGlTextureProcessor.java +++ b/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/SingleFrameGlTextureProcessor.java @@ -50,7 +50,7 @@ public abstract class SingleFrameGlTextureProcessor implements GlTextureProcesso * Creates a {@code SingleFrameGlTextureProcessor} instance. * * @param useHdr Whether input textures come from an HDR source. If {@code true}, colors will be - * in linear RGB BT.2020. If {@code false}, colors will be in gamma RGB BT.709. + * in linear RGB BT.2020. If {@code false}, colors will be in linear RGB BT.709. */ public SingleFrameGlTextureProcessor(boolean useHdr) { this.useHdr = useHdr;