@UnstableApi
public class FrameInfo


Value class specifying information about a decoded video frame.

Summary

Nested types

public final class FrameInfo.Builder

A builder for FrameInfo instances.

Public fields

final ColorInfo

The ColorInfo of the frame.

final int

The height of the frame, in pixels.

final long

The offset that must be added to the frame presentation timestamp, in microseconds.

final float

The ratio of width over height for each pixel.

final int

The width of the frame, in pixels.

Public fields

colorInfo

public final ColorInfo colorInfo

The ColorInfo of the frame.

height

public final int height

The height of the frame, in pixels.

offsetToAddUs

public final long offsetToAddUs

The offset that must be added to the frame presentation timestamp, in microseconds.

This offset is not part of the input timestamps. It is added to the frame timestamps before processing, and is retained in the output timestamps.

pixelWidthHeightRatio

public final float pixelWidthHeightRatio

The ratio of width over height for each pixel.

width

public final int width

The width of the frame, in pixels.