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

? Examples
MediaCodec.BufferInfo()
Public Methods

? Examples
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

No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.