Effect: Clarify GlEffect javadoc exception cause.

PiperOrigin-RevId: 504273335
This commit is contained in:
huangdarwin 2023-01-24 15:53:23 +00:00 committed by christosts
parent 7fbdbeb6ca
commit 301683a831

View file

@ -31,11 +31,13 @@ import androidx.media3.common.util.UnstableApi;
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;