# FrameInfo

# 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)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/media3/common/FrameInfo "View this page in Java")

<br />

```
@UnstableApi
class FrameInfo
```

<br />

*** ** * ** ***

Value class specifying information about a decoded video frame.

## Summary

|                                                                                                                                                                       ### Public constructors                                                                                                                                                                        |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [FrameInfo](https://developer.android.com/reference/kotlin/androidx/media3/common/FrameInfo#FrameInfo(androidx.media3.common.Format,long))`(format: `[Format](https://developer.android.com/reference/kotlin/androidx/media3/common/Format)`!, offsetToAddUs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`)` Creates an instance. |

|                                   ### Public properties                                   |
|-------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Format](https://developer.android.com/reference/kotlin/androidx/media3/common/Format)`!` | [format](https://developer.android.com/reference/kotlin/androidx/media3/common/FrameInfo#format()) The[Format](https://developer.android.com/reference/kotlin/androidx/media3/common/Format)of the frame. |
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)             | [offsetToAddUs](https://developer.android.com/reference/kotlin/androidx/media3/common/FrameInfo#offsetToAddUs()) The offset that must be added to the frame presentation timestamp, in microseconds.      |

## Public constructors

### FrameInfo

```
FrameInfo(format: Format!, offsetToAddUs: Long)
```

Creates an instance.  

|                                             Parameters                                              |
|-----------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------|
| `format: `[Format](https://developer.android.com/reference/kotlin/androidx/media3/common/Format)`!` | See[format](https://developer.android.com/reference/kotlin/androidx/media3/common/FrameInfo#format()).               |
| `offsetToAddUs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)      | See[offsetToAddUs](https://developer.android.com/reference/kotlin/androidx/media3/common/FrameInfo#offsetToAddUs()). |

## Public properties

### format

```
val format: Format!
```

The[Format](https://developer.android.com/reference/kotlin/androidx/media3/common/Format)of the frame.

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

### offsetToAddUs

```
val offsetToAddUs: Long
```

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