Android 11 のデベロッパー プレビューが公開されました。ぜひお試しのうえ、フィードバックをお寄せください

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

@NonNull abstract fun getBuffer(): ByteBuffer

Returns the pixels buffer.

getPixelStride

abstract fun getPixelStride(): Int

Returns the pixel stride.

getRowStride

abstract fun getRowStride(): Int

Returns the row stride.