HardwareBufferFrame.Builder


public interface HardwareBufferFrame.Builder


A Builder for HardwareBufferFrame instances.

Summary

Public methods

abstract HardwareBufferFrame

Builds a HardwareBufferFrame instance.

abstract HardwareBufferFrame.Builder

Sets the content time of the frame.

abstract HardwareBufferFrame.Builder

Sets the metadata associated with the frame.

Public methods

build

abstract HardwareBufferFrame build()

Builds a HardwareBufferFrame instance.

setContentTimeUs

@CanIgnoreReturnValue
abstract HardwareBufferFrame.Builder setContentTimeUs(long contentTimeUs)

Sets the content time of the frame.

Parameters
long contentTimeUs

The presentation timestamp of the frame, in microseconds.

Returns
HardwareBufferFrame.Builder

This builder.

setMetadata

@CanIgnoreReturnValue
abstract HardwareBufferFrame.Builder setMetadata(Map<StringObject> metadata)

Sets the metadata associated with the frame.

Parameters
Map<StringObject> metadata

The metadata to associate with this frame.

Returns
HardwareBufferFrame.Builder

This builder.