MediaCodec.QueueRequest.SetLinearBlock Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Set a linear block to this queue request.
[Android.Runtime.Register("setLinearBlock", "(Landroid/media/MediaCodec$LinearBlock;II)Landroid/media/MediaCodec$QueueRequest;", "", ApiSince=30)]
public Android.Media.MediaCodec.QueueRequest SetLinearBlock(Android.Media.MediaCodec.LinearBlock block, int offset, int size);
[<Android.Runtime.Register("setLinearBlock", "(Landroid/media/MediaCodec$LinearBlock;II)Landroid/media/MediaCodec$QueueRequest;", "", ApiSince=30)>]
member this.SetLinearBlock : Android.Media.MediaCodec.LinearBlock * int * int -> Android.Media.MediaCodec.QueueRequest
Parameters
- block
- MediaCodec.LinearBlock
The linear block object. This value cannot be null.
- offset
- Int32
The byte offset into the input buffer at which the data starts.
- size
- Int32
The number of bytes of valid input data.
Returns
this object. This value cannot be null.
- Attributes
Remarks
Set a linear block to this queue request. Exactly one buffer must be set for a queue request before calling queue(). It is possible to use the same LinearBlock object for multiple queue requests. The behavior is undefined if the range of the buffer overlaps for multiple requests, or the application writes into the region being processed by the codec.
Android reference for android.media.MediaCodec.QueueRequest.setLinearBlock.
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.