ImageProxy.PlaneProxy
interface ImageProxy.PlaneProxy : ImagePlane
A plane proxy which has an analogous interface as android.media.Image.Plane.
Summary
Public functions |
|
|---|---|
ByteBuffer |
Returns the pixels buffer. |
Int |
Returns the pixel stride. |
Int |
Returns the row stride. |
T? |
Attempts to unwrap this object into the specified underlying |
Public functions
getPixelStride
fun getPixelStride(): Int
Returns the pixel stride.
| See also | |
|---|---|
getPixelStride |
unwrapAs
fun <T> unwrapAs(type: Class<T!>): T?
Attempts to unwrap this object into the specified underlying type.
Callers should use this method to retrieve the wrapped platform object.
Implementation Notes
-
If the requested
typeis not supported by this wrapper, this method must returnnull. -
Implementations designed for testing (e.g., fakes, mocks, or no-op wrappers) should return
nullto signal that no real underlying object is available.