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