to top
Android APIs
public static final class

MediaCodec.BufferInfo

extends Object
java.lang.Object
   ↳ android.media.MediaCodec.BufferInfo

Class Overview

Per buffer metadata includes an offset and size specifying the range of valid data in the associated codec buffer.

Summary

Fields
public int flags
public int offset
public long presentationTimeUs
public int size
Public Constructors
MediaCodec.BufferInfo()
Public Methods
void set(int newOffset, int newSize, long newTimeUs, int newFlags)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public int flags

Added in API level 16

public int offset

Added in API level 16

public long presentationTimeUs

Added in API level 16

public int size

Added in API level 16

Public Constructors

public MediaCodec.BufferInfo ()

Added in API level 16

Public Methods

public void set (int newOffset, int newSize, long newTimeUs, int newFlags)

Added in API level 16