Skip to content

Most visited

Recently visited

navigation

NdkCameraDevice.h File Reference

NdkCameraDevice.h File Reference

Data Structures

struct  ACameraDevice_StateCallbacks
 

Typedefs

typedef typedef__BEGIN_DECLS struct ACameraDevice ACameraDevice
 
typedef void(* ACameraDevice_StateCallback) (void *context, ACameraDevice *device)
 
typedef void(* ACameraDevice_ErrorStateCallback) (void *context, ACameraDevice *device, int error)
 
typedef struct ACameraDevice_StateCallbacks ACameraDevice_stateCallbacks
 
typedef struct ACaptureSessionOutputContainer ACaptureSessionOutputContainer
 
typedef struct ACaptureSessionOutput ACaptureSessionOutput
 

Enumerations

enum  {
  ERROR_CAMERA_IN_USE = 1, ERROR_MAX_CAMERAS_IN_USE = 2, ERROR_CAMERA_DISABLED = 3, ERROR_CAMERA_DEVICE = 4,
  ERROR_CAMERA_SERVICE = 5
}
 Enum for ACameraDevice_ErrorStateCallback error code. More...
 
enum  ACameraDevice_request_template {
  TEMPLATE_PREVIEW = 1, TEMPLATE_STILL_CAPTURE = 2, TEMPLATE_RECORD = 3, TEMPLATE_VIDEO_SNAPSHOT = 4,
  TEMPLATE_ZERO_SHUTTER_LAG = 5, TEMPLATE_MANUAL = 6
}
 

Functions

camera_status_t ACameraDevice_close (ACameraDevice *device)
 
const char * ACameraDevice_getId (const ACameraDevice *device)
 
camera_status_t ACameraDevice_createCaptureRequest (const ACameraDevice *device, ACameraDevice_request_template templateId, ACaptureRequest **request)
 
camera_status_t ACaptureSessionOutputContainer_create (ACaptureSessionOutputContainer **container)
 
void ACaptureSessionOutputContainer_free (ACaptureSessionOutputContainer *container)
 
camera_status_t ACaptureSessionOutput_create (ANativeWindow *anw, ACaptureSessionOutput **output)
 
void ACaptureSessionOutput_free (ACaptureSessionOutput *output)
 
camera_status_t ACaptureSessionOutputContainer_add (ACaptureSessionOutputContainer *container, const ACaptureSessionOutput *output)
 
camera_status_t ACaptureSessionOutputContainer_remove (ACaptureSessionOutputContainer *container, const ACaptureSessionOutput *output)
 
camera_status_t ACameraDevice_createCaptureSession (ACameraDevice *device, const ACaptureSessionOutputContainer *outputs, const ACameraCaptureSession_stateCallbacks *callbacks, ACameraCaptureSession **session)
 
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)