Commit b2d93549 by huangdarwin Committed by christosts

Effect: Clarify GlEffect javadoc exception cause.

PiperOrigin-RevId: 504273335
parent 7abbd6aa
......@@ -29,11 +29,13 @@ import com.google.android.exoplayer2.util.FrameProcessingException;
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 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.
* @throws FrameProcessingException If an error occurs while creating the {@link
* GlTextureProcessor}.
*/
GlTextureProcessor toGlTextureProcessor(Context context, boolean useHdr)
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