GlTextureFrame


@ExperimentalApi
public class GlTextureFrame


A Frame implementation that wraps a GlTextureInfo.

Summary

Nested types

public final class GlTextureFrame.Builder

A builder for GlTextureFrame instances.

Public fields

final Format

The format of the frame.

final GlTextureInfo

The GlTextureInfo.

final Frame.Metadata
final long

The presentation time of the frame, in microseconds.

final Consumer<GlTextureInfo>

The Consumer to call to release the texture.

final Executor

The Executor on which the releaseTextureCallback is called.

final long

The release time of the frame, in nanoseconds.

Public methods

Frame.Metadata

Returns the Metadata associated with this frame.

void

Releases the frame and its underlying resources.

Public fields

format

public final Format format

The format of the frame.

glTextureInfo

public final GlTextureInfo glTextureInfo

The GlTextureInfo.

metadata

public final Frame.Metadata metadata

presentationTimeUs

public final long presentationTimeUs

The presentation time of the frame, in microseconds.

releaseTextureCallback

public final Consumer<GlTextureInforeleaseTextureCallback

The Consumer to call to release the texture.

releaseTextureExecutor

public final Executor releaseTextureExecutor

The Executor on which the releaseTextureCallback is called.

releaseTimeNs

public final long releaseTimeNs

The release time of the frame, in nanoseconds.

Public methods

getMetadata

public Frame.Metadata getMetadata()

Returns the Metadata associated with this frame.

release

public void release()

Releases the frame and its underlying resources.