# FrameInfo

Artifact: [androidx.media3:media3-common](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/common/FrameInfo.java+class:androidx.media3.common.FrameInfo)

*** ** * ** ***


```
@UnstableApi
public class FrameInfo
```

<br />

*** ** * ** ***

Value class specifying information about a decoded video frame.

## Summary

| ### Public fields |
|---|---|
| `final https://developer.android.com/reference/androidx/media3/common/Format` | `https://developer.android.com/reference/androidx/media3/common/FrameInfo#format()` The `https://developer.android.com/reference/androidx/media3/common/Format` of the frame. |
| `final long` | `https://developer.android.com/reference/androidx/media3/common/FrameInfo#offsetToAddUs()` The offset that must be added to the frame presentation timestamp, in microseconds. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/media3/common/FrameInfo#FrameInfo(androidx.media3.common.Format,long)(https://developer.android.com/reference/androidx/media3/common/Format format, long offsetToAddUs)` Creates an instance. |

## Public fields

### format

```
public final Format format
```

The `https://developer.android.com/reference/androidx/media3/common/Format` of the frame.

The `https://developer.android.com/reference/androidx/media3/common/Format#colorInfo()` must be set, and the `https://developer.android.com/reference/androidx/media3/common/Format#width()` and `https://developer.android.com/reference/androidx/media3/common/Format#height()` must be greater than 0.

### offsetToAddUs

```
public final long offsetToAddUs
```

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

## Public constructors

### FrameInfo

```
public FrameInfo(Format format, long offsetToAddUs)
```

Creates an instance.

| Parameters |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/Format format` | See `https://developer.android.com/reference/androidx/media3/common/FrameInfo#format()`. |
| `long offsetToAddUs` | See `https://developer.android.com/reference/androidx/media3/common/FrameInfo#offsetToAddUs()`. |