Udostępnij za pośrednictwem


MediaCodec.BufferInfo.Set(Int32, Int32, Int64, MediaCodecBufferFlags) Method

Definition

Update the buffer metadata information.

[Android.Runtime.Register("set", "(IIJI)V", "")]
public void Set (int newOffset, int newSize, long newTimeUs, Android.Media.MediaCodecBufferFlags newFlags);
[<Android.Runtime.Register("set", "(IIJI)V", "")>]
member this.Set : int * int * int64 * Android.Media.MediaCodecBufferFlags -> unit

Parameters

newOffset
Int32

the start-offset of the data in the buffer.

newSize
Int32

the amount of data (in bytes) in the buffer.

newTimeUs
Int64

the presentation timestamp in microseconds.

newFlags
MediaCodecBufferFlags

buffer flags associated with the buffer. This should be a combination of #BUFFER_FLAG_KEY_FRAME and #BUFFER_FLAG_END_OF_STREAM.

Attributes

Remarks

Update the buffer metadata information.

Java documentation for android.media.MediaCodec.BufferInfo.set(int, int, long, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to