Skip to content

Most visited

Recently visited


NdkImageReader.h File Reference

NdkImageReader.h File Reference

Data Structures

struct  AImageReader_ImageListener
struct  AImageReader_BufferRemovedListener


typedef typedef__BEGIN_DECLS struct AImageReader AImageReader
typedef void(* AImageReader_ImageCallback) (void *context, AImageReader *reader)
typedef struct AImageReader_ImageListener AImageReader_ImageListener
typedef void(* AImageReader_BufferRemovedCallback) (void *context, AImageReader *reader, AHardwareBuffer *buffer)
typedef struct AImageReader_BufferRemovedListener AImageReader_BufferRemovedListener


media_status_t AImageReader_new (int32_t width, int32_t height, int32_t format, int32_t maxImages, AImageReader **reader)
void AImageReader_delete (AImageReader *reader)
media_status_t AImageReader_getWindow (AImageReader *reader, ANativeWindow **window)
media_status_t AImageReader_getWidth (const AImageReader *reader, int32_t *width)
media_status_t AImageReader_getHeight (const AImageReader *reader, int32_t *height)
media_status_t AImageReader_getFormat (const AImageReader *reader, int32_t *format)
media_status_t AImageReader_getMaxImages (const AImageReader *reader, int32_t *maxImages)
media_status_t AImageReader_acquireNextImage (AImageReader *reader, AImage **image)
media_status_t AImageReader_acquireLatestImage (AImageReader *reader, AImage **image)
media_status_t AImageReader_setImageListener (AImageReader *reader, AImageReader_ImageListener *listener)
media_status_t AImageReader_newWithUsage (int32_t width, int32_t height, int32_t format, uint64_t usage, int32_t maxImages, AImageReader **reader)
media_status_t AImageReader_acquireNextImageAsync (AImageReader *reader, AImage **image, int *acquireFenceFd)
media_status_t AImageReader_acquireLatestImageAsync (AImageReader *reader, AImage **image, int *acquireFenceFd)
media_status_t AImageReader_setBufferRemovedListener (AImageReader *reader, AImageReader_BufferRemovedListener *listener)
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


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. (April 2018 — Developer Survey)