androidx.media3.effect


Interfaces

ColorLut

Specifies color transformations using color lookup tables to apply to each frame in the fragment shader.

ConvolutionFunction1D

An interface for 1 dimensional convolution functions.

DefaultVideoFrameProcessor.ReleaseOutputTextureCallback

Releases the output information stored for textures before and at presentationTimeUs.

GlEffect

Interface for a video frame effect with a GlShaderProgram implementation.

GlMatrixTransformation

Specifies a 4x4 transformation Matrix to apply in the vertex shader for each input frame.

GlShaderProgram

Processes frames from one OpenGL 2D texture to another.

GlShaderProgram.ErrorListener

Listener for video frame processing errors.

GlShaderProgram.InputListener

Listener for input-related video frame processing events.

GlShaderProgram.OutputListener

Listener for output-related video frame processing events.

GlTextureProducer

A component that outputs OpenGL textures.

GlTextureProducer.Listener

Listener for texture output.

MatrixTransformation

Specifies a 3x3 transformation Matrix to apply in the vertex shader for each frame.

RgbMatrix

Specifies a 4x4 RGB color transformation matrix to apply to each frame in the fragment shader.

VideoCompositor

Interface for a video compositor that combines frames from multiple input sources to produce output frames.

VideoCompositor.Listener

Listener for errors.

VideoCompositorSettings

Settings for the VideoCompositor.

Classes

AlphaScale

Scales the alpha value (i.e. the translucency) of a frame.

BaseGlShaderProgram

A base implementation of GlShaderProgram.

BitmapOverlay

Creates TextureOverlays from Bitmaps.

Brightness

Modifies brightness of an input frame.

BuildConfig
Contrast

A RgbMatrix to control the contrast of video frames.

Crop

Specifies a crop to apply in the vertex shader.

DebugTraceUtil

A debugging tracing utility.

DefaultGlObjectsProvider

Implementation of GlObjectsProvider that configures an EGLContext to share data with a preexisting sharedEglContext.

DefaultVideoCompositor

A basic VideoCompositor implementation that takes in frames from input sources' streams and combines them into one output stream.

DefaultVideoFrameProcessor

A VideoFrameProcessor implementation that applies GlEffect instances using OpenGL on a background thread.

DefaultVideoFrameProcessor.Factory

A factory for DefaultVideoFrameProcessor instances.

DefaultVideoFrameProcessor.Factory.Builder

A builder for DefaultVideoFrameProcessor.Factory instances.

DrawableOverlay

Creates a TextureOverlay from Drawable.

FrameCache

Caches the input frames.

FrameDropEffect

Drops frames to lower average frame rate to around targetFrameRate.

GaussianBlur

A SeparableConvolution to apply a Gaussian blur on image data.

GaussianBlurWithFrameOverlaid

A SeparableConvolution to apply a Gaussian blur on image data.

GaussianFunction

Implementation of a symmetric Gaussian function with a limited domain.

HslAdjustment

Adjusts the HSL (Hue, Saturation, and Lightness) of a frame.

HslAdjustment.Builder

A builder for HslAdjustment instances.

MultipleInputVideoGraph

A VideoGraph that handles multiple input streams.

OverlayEffect

Applies a list of TextureOverlays to a frame in FIFO order (the last overlay in the list is displayed on top).

OverlaySettings

Contains information to control how an input texture (for example, a VideoCompositor or TextureOverlay) is displayed on a background.

OverlaySettings.Builder

A builder for OverlaySettings instances.

Presentation

Controls how a frame is presented with options to set the output resolution and choose how to map the input pixels onto the output frame geometry (for example, by stretching the input frame to match the specified output frame, or fitting the input frame using letterboxing).

PreviewingSingleInputVideoGraph

A Previewing specific implementation of .

PreviewingSingleInputVideoGraph.Factory

A factory for creating a PreviewingSingleInputVideoGraph.

RgbAdjustment

Scales the red, green, and blue color channels of a frame.

RgbAdjustment.Builder

A builder for RgbAdjustment instances.

RgbFilter

Provides common color filters.

ScaleAndRotateTransformation

Specifies a simple rotation and/or scale to apply in the vertex shader.

ScaleAndRotateTransformation.Builder

A builder for ScaleAndRotateTransformation instances.

SeparableConvolution

A GlEffect for performing separable convolutions.

SeparableConvolutionShaderProgram

A GlShaderProgram for performing separable convolutions.

SingleColorLut

Transforms the colors of a frame by applying the same color lookup table to each frame.

SingleFrameGlShaderProgram

This class is deprecated.

Use BaseGlShaderProgram instead.

SingleInputVideoGraph

A VideoGraph that handles one input stream.

SpeedChangeEffect

Applies a speed change by updating the frame timestamps.

TextOverlay

Creates a TextureOverlay from text.

TextureOverlay

Creates overlays from OpenGL textures.

TimestampWrapper

Applies a GlEffect from startTimeUs to endTimeUs, and no change on all other timestamps.

Annotations

DebugTraceUtil.DebugTraceEvent

Events logged by logEvent.

Presentation.Layout

Strategies controlling the layout of input pixels in the output frame.