MediaNativeBindings
NameSpace: Media
Public Methods
MediaStatus AImageReader_acquireLatestImage
public MediaStatus AImageReader_acquireLatestImage(
AImageReader reader,
out AImage image
)
Parameters
Type | Name | Description |
---|---|---|
AImageReader | reader | |
out AImage | image |
MediaStatus AImageReader_acquireNextImage
public MediaStatus AImageReader_acquireNextImage(
AImageReader reader,
out AImage image
)
Parameters
Type | Name | Description |
---|---|---|
AImageReader | reader | |
out AImage | image |
void AImageReader_delete
public void AImageReader_delete(
AImageReader reader
)
Parameters
Type | Name | Description |
---|---|---|
AImageReader | reader |
MediaStatus AImageReader_getFormat
public MediaStatus AImageReader_getFormat(
AImageReader reader,
out MediaFormat format
)
Parameters
Type | Name | Description |
---|---|---|
AImageReader | reader | |
out MediaFormat | format |
MediaStatus AImageReader_getHeight
public MediaStatus AImageReader_getHeight(
AImageReader reader,
out int height
)
Parameters
Type | Name | Description |
---|---|---|
AImageReader | reader | |
out int | height |
MediaStatus AImageReader_getMaxImages
public MediaStatus AImageReader_getMaxImages(
AImageReader reader,
out int maxImages
)
Parameters
Type | Name | Description |
---|---|---|
AImageReader | reader | |
out int | maxImages |
MediaStatus AImageReader_getWidth
public MediaStatus AImageReader_getWidth(
AImageReader reader,
out int width
)
Parameters
Type | Name | Description |
---|---|---|
AImageReader | reader | |
out int | width |
MediaStatus AImageReader_getWindow
public MediaStatus AImageReader_getWindow(
AImageReader reader,
out ANativeWindow window
)
Parameters
Type | Name | Description |
---|---|---|
AImageReader | reader | |
out ANativeWindow | window |
MediaStatus AImageReader_new
public MediaStatus AImageReader_new(
int width,
int height,
MediaFormat format,
int maxImages,
out AImageReader reader
)
Parameters
Type | Name | Description |
---|---|---|
int | width | |
int | height | |
MediaFormat | format | |
int | maxImages | |
out AImageReader | reader |
MediaStatus AImageReader_newWithUsage
public MediaStatus AImageReader_newWithUsage(
int width,
int height,
MediaFormat format,
AHardwareBuffer.Usage usage,
int maxImages,
out AImageReader reader
)
Parameters
Type | Name | Description |
---|---|---|
int | width | |
int | height | |
MediaFormat | format | |
AHardwareBuffer.Usage | usage | |
int | maxImages | |
out AImageReader | reader |
MediaStatus AImageReader_setImageListener
public MediaStatus AImageReader_setImageListener(
AImageReader reader,
ref AImageReader.ImageListener callback
)
Parameters
Type | Name | Description |
---|---|---|
AImageReader | reader | |
ref AImageReader.ImageListener | callback |
void AImage_delete
public void AImage_delete(
AImage image
)
Parameters
Type | Name | Description |
---|---|---|
AImage | image |
MediaStatus AImage_getCropRect
public MediaStatus AImage_getCropRect(
AImage image,
out ARect cropRect
)
Parameters
Type | Name | Description |
---|---|---|
AImage | image | |
out ARect | cropRect |
MediaStatus AImage_getFormat
public MediaStatus AImage_getFormat(
AImage image,
out MediaFormat format
)
Parameters
Type | Name | Description |
---|---|---|
AImage | image | |
out MediaFormat | format |
MediaStatus AImage_getHardwareBuffer
public MediaStatus AImage_getHardwareBuffer(
AImage image,
out AHardwareBuffer buffer
)
Parameters
Type | Name | Description |
---|---|---|
AImage | image | |
out AHardwareBuffer | buffer |
MediaStatus AImage_getHeight
public MediaStatus AImage_getHeight(
AImage image,
out int height
)
Parameters
Type | Name | Description |
---|---|---|
AImage | image | |
out int | height |
MediaStatus AImage_getNumberOfPlanes
public MediaStatus AImage_getNumberOfPlanes(
AImage image,
out int numPlanes
)
Parameters
Type | Name | Description |
---|---|---|
AImage | image | |
out int | numPlanes |
unsafe MediaStatus AImage_getPlaneData
public unsafe MediaStatus AImage_getPlaneData(
AImage image,
int planeIdx,
out byte * data,
out int dataLength
)
Parameters
Type | Name | Description |
---|---|---|
AImage | image | |
int | planeIdx | |
out byte * | data | |
out int | dataLength |
MediaStatus AImage_getPlanePixelStride
public MediaStatus AImage_getPlanePixelStride(
AImage image,
int planeIdx,
out int pixelStride
)
Parameters
Type | Name | Description |
---|---|---|
AImage | image | |
int | planeIdx | |
out int | pixelStride |
MediaStatus AImage_getPlaneRowStride
public MediaStatus AImage_getPlaneRowStride(
AImage image,
int planeIdx,
out int rowStride
)
Parameters
Type | Name | Description |
---|---|---|
AImage | image | |
int | planeIdx | |
out int | rowStride |
MediaStatus AImage_getTimestamp
public MediaStatus AImage_getTimestamp(
AImage image,
out long timestampNs
)
Parameters
Type | Name | Description |
---|---|---|
AImage | image | |
out long | timestampNs |
MediaStatus AImage_getWidth
public MediaStatus AImage_getWidth(
AImage image,
out int width
)
Parameters
Type | Name | Description |
---|---|---|
AImage | image | |
out int | width |