HardwareBufferFrameQueue.FrameFormat


public final class HardwareBufferFrameQueue.FrameFormat


Defines the configuration parameters required for a HardwareBuffer.

Summary

Public fields

final int
final int
final long
final int

Public constructors

FrameFormat(int width, int height, int pixelFormat, long usageFlags)

Creates a new FrameFormat instance.

Public methods

boolean
int
String

Public fields

height

public final int height

pixelFormat

public final int pixelFormat

usageFlags

public final long usageFlags

width

public final int width

Public constructors

FrameFormat

public FrameFormat(int width, int height, int pixelFormat, long usageFlags)

Creates a new FrameFormat instance.

Parameters
int width

The width of the buffer in pixels.

int height

The height of the buffer in pixels.

int pixelFormat

The format of the HardwareBuffer.

long usageFlags

The usage flags of the HardwareBuffer.

Public methods

equals

public boolean equals(@Nullable Object o)

hashCode

public int hashCode()

toString

public String toString()