interface ImagePlane : UnsafeWrapper

Known direct subclasses
FakeImagePlane

Fake implementation of ImagePlane for testing classes that consume camera image planes.

ImageProxy.PlaneProxy

A plane proxy which has an analogous interface as android.media.Image.Plane.


A wrapper interface that mirrors Image.Plane.

Represents a single color plane of image data.

Summary

Public properties

ByteBuffer

A ByteBuffer containing the image data for this plane.

Int

The pixel stride, in bytes.

Int

The row stride, in bytes.

Inherited functions

From androidx.camera.common.UnsafeWrapper
T?
<T : Any> unwrapAs(type: Class<T>)

Attempts to unwrap this object into the specified underlying type.

Public properties

buffer

Added in 1.7.0-alpha03
val bufferByteBuffer

A ByteBuffer containing the image data for this plane.

The buffer's position will be set to the start of the plane data, and its limit will be set to the end of the plane data.

See also
getBuffer

pixelStride

Added in 1.7.0-alpha03
val pixelStrideInt

The pixel stride, in bytes.

This is the distance between two consecutive pixel values in a row of the image buffer.

See also
getPixelStride

rowStride

Added in 1.7.0-alpha03
val rowStrideInt

The row stride, in bytes.

This is the distance between the start of two consecutive rows of pixels in the image buffer.

See also
getRowStride