Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

PlaneProxy

interface PlaneProxy
androidx.camera.core.ImageProxy.PlaneProxy

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

Summary

Public methods

abstract ByteBuffer!

Returns the pixels buffer.

abstract Int

Returns the pixel stride.

abstract Int

Returns the row stride.

Public methods

getBuffer

abstract fun getBuffer(): ByteBuffer!

Returns the pixels buffer.

@see android.media.Image.Plane#getBuffer().

getPixelStride

abstract fun getPixelStride(): Int

Returns the pixel stride.

@see android.media.Image.Plane#getPixelStride().

getRowStride

abstract fun getRowStride(): Int

Returns the row stride.

@see android.media.Image.Plane#getRowStride().