GlTextureFrame.Builder
Artifact: androidx.media3:media3-effect
public final class GlTextureFrame.Builder
A builder for GlTextureFrame instances.
Summary
Public constructors |
|---|
Builder(Creates a new |
Public methods |
|
|---|---|
GlTextureFrame |
build()Builds the |
GlTextureFrame.Builder |
@CanIgnoreReturnValueSets the |
GlTextureFrame.Builder |
@CanIgnoreReturnValueSets the |
GlTextureFrame.Builder |
@CanIgnoreReturnValueSets the |
GlTextureFrame.Builder |
@CanIgnoreReturnValueSets the |
Public constructors
Builder
public Builder(
GlTextureInfo glTextureInfo,
Executor releaseTextureExecutor,
Consumer<GlTextureInfo> releaseTextureCallback
)
Creates a new Builder.
| Parameters | |
|---|---|
GlTextureInfo glTextureInfo |
The |
Executor releaseTextureExecutor |
The |
Consumer<GlTextureInfo> releaseTextureCallback |
The |
Public methods
setFormat
@CanIgnoreReturnValue
public GlTextureFrame.Builder setFormat(Format format)
Sets the format.
setMetadata
@CanIgnoreReturnValue
public GlTextureFrame.Builder setMetadata(Frame.Metadata metadata)
Sets the metadata.
setPresentationTimeUs
@CanIgnoreReturnValue
public GlTextureFrame.Builder setPresentationTimeUs(long presentationTimeUs)
Sets the presentationTimeUs.
setReleaseTimeNs
@CanIgnoreReturnValue
public GlTextureFrame.Builder setReleaseTimeNs(long releaseTimeNs)
Sets the releaseTimeNs.