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.