Image.Plane.Buffer Property
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.
Get a direct ByteBuffer containing the frame data.
public abstract Java.Nio.ByteBuffer? Buffer { [Android.Runtime.Register("getBuffer", "()Ljava/nio/ByteBuffer;", "GetGetBufferHandler")] get; }
[<get: Android.Runtime.Register("getBuffer", "()Ljava/nio/ByteBuffer;", "GetGetBufferHandler")>]
member this.Buffer : Java.Nio.ByteBuffer
Property Value
the byte buffer containing the image data for this plane.
- Attributes
Remarks
Get a direct ByteBuffer containing the frame data.
In particular, the buffer returned will always have isDirect return true, so the underlying data could be mapped as a pointer in JNI without doing any copies with GetDirectBufferAddress.
For raw formats, each plane is only guaranteed to contain data up to the last pixel in the last row. In other words, the stride after the last row may not be mapped into the buffer. This is a necessary requirement for any interleaved format.
Android reference for android.media.Image.Plane.getBuffer.
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.