Skip to content

Most visited

Recently visited

navigation

NdkImage.h File Reference

NdkImage.h File Reference

Data Structures

struct  AImageCropRect
 

Typedefs

typedef typedef__BEGIN_DECLS struct AImage AImage
 
typedef struct AImageCropRect AImageCropRect
 

Enumerations

enum  AIMAGE_FORMATS {
  AIMAGE_FORMAT_RGBA_8888 = 0x1, AIMAGE_FORMAT_RGBX_8888 = 0x2, AIMAGE_FORMAT_RGB_888 = 0x3, AIMAGE_FORMAT_RGB_565 = 0x4,
  AIMAGE_FORMAT_RGBA_FP16 = 0x16, AIMAGE_FORMAT_YUV_420_888 = 0x23, AIMAGE_FORMAT_JPEG = 0x100, AIMAGE_FORMAT_RAW16 = 0x20,
  AIMAGE_FORMAT_RAW_PRIVATE = 0x24, AIMAGE_FORMAT_RAW10 = 0x25, AIMAGE_FORMAT_RAW12 = 0x26, AIMAGE_FORMAT_DEPTH16 = 0x44363159,
  AIMAGE_FORMAT_DEPTH_POINT_CLOUD = 0x101, AIMAGE_FORMAT_PRIVATE = 0x22
}
 

Functions

void AImage_delete (AImage *image)
 
media_status_t AImage_getWidth (const AImage *image, int32_t *width)
 
media_status_t AImage_getHeight (const AImage *image, int32_t *height)
 
media_status_t AImage_getFormat (const AImage *image, int32_t *format)
 
media_status_t AImage_getCropRect (const AImage *image, AImageCropRect *rect)
 
media_status_t AImage_getTimestamp (const AImage *image, int64_t *timestampNs)
 
media_status_t AImage_getNumberOfPlanes (const AImage *image, int32_t *numPlanes)
 
media_status_t AImage_getPlanePixelStride (const AImage *image, int planeIdx, int32_t *pixelStride)
 
media_status_t AImage_getPlaneRowStride (const AImage *image, int planeIdx, int32_t *rowStride)
 
media_status_t AImage_getPlaneData (const AImage *image, int planeIdx, uint8_t **data, int *dataLength)
 
void AImage_deleteAsync (AImage *image, int releaseFenceFd)
 
media_status_t AImage_getHardwareBuffer (const AImage *image, AHardwareBuffer **buffer)
 
This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (Dec 2017 Android Platform & Tools Survey)