Commit 301683a8 by huangdarwin Committed by christosts

Effect: Clarify GlEffect javadoc exception cause.

PiperOrigin-RevId: 504273335
parent 7fbdbeb6
...@@ -31,11 +31,13 @@ import androidx.media3.common.util.UnstableApi; ...@@ -31,11 +31,13 @@ import androidx.media3.common.util.UnstableApi;
public interface GlEffect extends Effect { public interface GlEffect extends Effect {
/** /**
* Returns a {@link SingleFrameGlTextureProcessor} that applies the effect. * Returns a {@link GlTextureProcessor} that applies the effect.
* *
* @param context A {@link Context}. * @param context A {@link Context}.
* @param useHdr Whether input textures come from an HDR source. If {@code true}, colors will be * @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 linear RGB BT.709. * in linear RGB BT.2020. If {@code false}, colors will be in linear RGB BT.709.
* @throws FrameProcessingException If an error occurs while creating the {@link
* GlTextureProcessor}.
*/ */
GlTextureProcessor toGlTextureProcessor(Context context, boolean useHdr) GlTextureProcessor toGlTextureProcessor(Context context, boolean useHdr)
throws FrameProcessingException; throws FrameProcessingException;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment