Skip to main content
Version: 12 Dec 2024

CameraNativeBindings

NameSpace: Camera

Public Methods

unsafe CameraStatus ACameraCaptureSession_capture

public unsafe CameraStatus ACameraCaptureSession_capture(
ACameraCaptureSession session,
ACameraCaptureSession.CaptureCallbacks * callbacks,
int numRequests,
ACaptureRequest * requests,
out int outCaptureSequenceId
)

Parameters

TypeNameDescription
ACameraCaptureSessionsession
ACameraCaptureSession.CaptureCallbacks *callbacks
intnumRequests
ACaptureRequest *requests
out intoutCaptureSequenceId

void ACameraCaptureSession_close

public void ACameraCaptureSession_close(
ACameraCaptureSession session
)

Parameters

TypeNameDescription
ACameraCaptureSessionsession

CameraStatus ACameraCaptureSession_getDevice

public CameraStatus ACameraCaptureSession_getDevice(
ACameraCaptureSession session,
out ACameraDevice outDevice
)

Parameters

TypeNameDescription
ACameraCaptureSessionsession
out ACameraDeviceoutDevice

unsafe CameraStatus ACameraCaptureSession_setRepeatingRequest

public unsafe CameraStatus ACameraCaptureSession_setRepeatingRequest(
ACameraCaptureSession session,
ACameraCaptureSession.CaptureCallbacks * callbacks,
int numRequests,
ACaptureRequest * requests,
out int outSequenceId
)

Parameters

TypeNameDescription
ACameraCaptureSessionsession
ACameraCaptureSession.CaptureCallbacks *callbacks
intnumRequests
ACaptureRequest *requests
out intoutSequenceId

CameraStatus ACameraCaptureSession_stopRepeating

public CameraStatus ACameraCaptureSession_stopRepeating(
ACameraCaptureSession session
)

Parameters

TypeNameDescription
ACameraCaptureSessionsession

CameraStatus ACameraDevice_close

public CameraStatus ACameraDevice_close(
ACameraDevice camera
)

Parameters

TypeNameDescription
ACameraDevicecamera

CameraStatus ACameraDevice_createCaptureRequest

public CameraStatus ACameraDevice_createCaptureRequest(
ACameraDevice device,
ACaptureRequest.Template template,
out ACaptureRequest outRequest
)

Parameters

TypeNameDescription
ACameraDevicedevice
ACaptureRequest.Templatetemplate
out ACaptureRequestoutRequest

unsafe CameraStatus ACameraDevice_createCaptureSession

public unsafe CameraStatus ACameraDevice_createCaptureSession(
ACameraDevice device,
ACaptureSessionOutputContainer container,
ACameraCaptureSession.StateCallbacks * callbacks,
out ACameraCaptureSession session
)

Parameters

TypeNameDescription
ACameraDevicedevice
ACaptureSessionOutputContainercontainer
ACameraCaptureSession.StateCallbacks *callbacks
out ACameraCaptureSessionsession

unsafe byte * ACameraDevice_getId

public unsafe byte * ACameraDevice_getId(
ACameraDevice camera
)

Parameters

TypeNameDescription
ACameraDevicecamera

ACameraManager ACameraManager_create

public ACameraManager ACameraManager_create()

void ACameraManager_delete

public void ACameraManager_delete(
ACameraManager manager
)

Parameters

TypeNameDescription
ACameraManagermanager

void ACameraManager_deleteCameraIdList

public void ACameraManager_deleteCameraIdList(
ACameraIdList list
)

Parameters

TypeNameDescription
ACameraIdListlist

CameraStatus ACameraManager_getCameraCharacteristics

public CameraStatus ACameraManager_getCameraCharacteristics(
ACameraManager manager,
string cameraId,
out ACameraMetadata metadata
)

Parameters

TypeNameDescription
ACameraManagermanager
stringcameraId
out ACameraMetadatametadata

unsafe CameraStatus ACameraManager_getCameraCharacteristicsNonAlloc

public unsafe CameraStatus ACameraManager_getCameraCharacteristicsNonAlloc(
ACameraManager manager,
byte * cameraId,
out ACameraMetadata metadata
)

Parameters

TypeNameDescription
ACameraManagermanager
byte *cameraId
out ACameraMetadatametadata

CameraStatus ACameraManager_getCameraIdList

public CameraStatus ACameraManager_getCameraIdList(
ACameraManager manager,
out ACameraIdList list
)

Parameters

TypeNameDescription
ACameraManagermanager
out ACameraIdListlist

unsafe CameraStatus ACameraManager_openCamera

public unsafe CameraStatus ACameraManager_openCamera(
ACameraManager manager,
string cameraId,
ACameraDevice.StateCallbacks * callbacks,
out ACameraDevice camera
)

Parameters

TypeNameDescription
ACameraManagermanager
stringcameraId
ACameraDevice.StateCallbacks *callbacks
out ACameraDevicecamera

unsafe CameraStatus ACameraManager_openCameraNonAlloc

public unsafe CameraStatus ACameraManager_openCameraNonAlloc(
ACameraManager manager,
byte * cameraId,
ACameraDevice.StateCallbacks * callbacks,
out ACameraDevice camera
)

Parameters

TypeNameDescription
ACameraManagermanager
byte *cameraId
ACameraDevice.StateCallbacks *callbacks
out ACameraDevicecamera

CameraStatus ACameraManager_registerAvailabilityCallback

public CameraStatus ACameraManager_registerAvailabilityCallback(
ACameraManager manager,
ref ACameraManager.AvailabilityCallbacks callbacks
)

Parameters

TypeNameDescription
ACameraManagermanager
ref ACameraManager.AvailabilityCallbackscallbacks

CameraStatus ACameraManager_unregisterAvailabilityCallback

public CameraStatus ACameraManager_unregisterAvailabilityCallback(
ACameraManager manager,
ref ACameraManager.AvailabilityCallbacks callbacks
)

Parameters

TypeNameDescription
ACameraManagermanager
ref ACameraManager.AvailabilityCallbackscallbacks

ACameraMetadata ACameraMetadata_copy

public ACameraMetadata ACameraMetadata_copy(
ACameraMetadata metadata
)

Parameters

TypeNameDescription
ACameraMetadatametadata

void ACameraMetadata_free

public void ACameraMetadata_free(
ACameraMetadata metadata
)

Parameters

TypeNameDescription
ACameraMetadatametadata

unsafe CameraStatus ACameraMetadata_getAllTags

public unsafe CameraStatus ACameraMetadata_getAllTags(
ACameraMetadata metadata,
out int outNumEntries,
out uint * outTags
)

Parameters

TypeNameDescription
ACameraMetadatametadata
out intoutNumEntries
out uint *outTags

CameraStatus ACameraMetadata_getConstEntry

public CameraStatus ACameraMetadata_getConstEntry(
ACameraMetadata metadata,
uint tag,
out ACameraMetadata.Entry.ReadOnly outEntry
)

Parameters

TypeNameDescription
ACameraMetadatametadata
uinttag
out ACameraMetadata.Entry.ReadOnlyoutEntry

CameraStatus ACameraOutputTarget_create

public CameraStatus ACameraOutputTarget_create(
ANativeWindow window,
out ACameraOutputTarget outTarget
)

Parameters

TypeNameDescription
ANativeWindowwindow
out ACameraOutputTargetoutTarget

void ACameraOutputTarget_free

public void ACameraOutputTarget_free(
ACameraOutputTarget target
)

Parameters

TypeNameDescription
ACameraOutputTargettarget

CameraStatus ACaptureRequest_addTarget

public CameraStatus ACaptureRequest_addTarget(
ACaptureRequest request,
ACameraOutputTarget target
)

Parameters

TypeNameDescription
ACaptureRequestrequest
ACameraOutputTargettarget

void ACaptureRequest_free

public void ACaptureRequest_free(
ACaptureRequest request
)

Parameters

TypeNameDescription
ACaptureRequestrequest

unsafe CameraStatus ACaptureRequest_getAllTags

public unsafe CameraStatus ACaptureRequest_getAllTags(
ACaptureRequest request,
ref int numTags,
uint ** tags
)

Parameters

TypeNameDescription
ACaptureRequestrequest
ref intnumTags
uint **tags

CameraStatus ACaptureRequest_getConstEntry

public CameraStatus ACaptureRequest_getConstEntry(
ACaptureRequest request,
uint tag,
out ACameraMetadata.Entry.ReadOnly outEntry
)

Parameters

TypeNameDescription
ACaptureRequestrequest
uinttag
out ACameraMetadata.Entry.ReadOnlyoutEntry

unsafe CameraStatus ACaptureRequest_getUserContext

public unsafe CameraStatus ACaptureRequest_getUserContext(
ACaptureRequest request,
out System.IntPtr context
)

Parameters

TypeNameDescription
ACaptureRequestrequest
out System.IntPtrcontext

CameraStatus ACaptureRequest_removeTarget

public CameraStatus ACaptureRequest_removeTarget(
ACaptureRequest request,
ACameraOutputTarget target
)

Parameters

TypeNameDescription
ACaptureRequestrequest
ACameraOutputTargettarget

unsafe CameraStatus ACaptureRequest_setEntry_double

public unsafe CameraStatus ACaptureRequest_setEntry_double(
ACaptureRequest request,
uint tag,
uint count,
double * data
)

Parameters

TypeNameDescription
ACaptureRequestrequest
uinttag
uintcount
double *data

unsafe CameraStatus ACaptureRequest_setEntry_float

public unsafe CameraStatus ACaptureRequest_setEntry_float(
ACaptureRequest request,
uint tag,
uint count,
float * data
)

Parameters

TypeNameDescription
ACaptureRequestrequest
uinttag
uintcount
float *data

unsafe CameraStatus ACaptureRequest_setEntry_i32

public unsafe CameraStatus ACaptureRequest_setEntry_i32(
ACaptureRequest request,
uint tag,
uint count,
int * data
)

Parameters

TypeNameDescription
ACaptureRequestrequest
uinttag
uintcount
int *data

unsafe CameraStatus ACaptureRequest_setEntry_i64

public unsafe CameraStatus ACaptureRequest_setEntry_i64(
ACaptureRequest request,
uint tag,
uint count,
long * data
)

Parameters

TypeNameDescription
ACaptureRequestrequest
uinttag
uintcount
long *data

unsafe CameraStatus ACaptureRequest_setEntry_rational

public unsafe CameraStatus ACaptureRequest_setEntry_rational(
ACaptureRequest request,
uint tag,
uint count,
ACameraMetadata.Rational * data
)

Parameters

TypeNameDescription
ACaptureRequestrequest
uinttag
uintcount
ACameraMetadata.Rational *data

unsafe CameraStatus ACaptureRequest_setEntry_u8

public unsafe CameraStatus ACaptureRequest_setEntry_u8(
ACaptureRequest request,
uint tag,
uint count,
byte * data
)

Parameters

TypeNameDescription
ACaptureRequestrequest
uinttag
uintcount
byte *data

unsafe CameraStatus ACaptureRequest_setUserContext

public unsafe CameraStatus ACaptureRequest_setUserContext(
ACaptureRequest request,
System.IntPtr context
)

Parameters

TypeNameDescription
ACaptureRequestrequest
System.IntPtrcontext

CameraStatus ACaptureSessionOutputContainer_add

public CameraStatus ACaptureSessionOutputContainer_add(
ACaptureSessionOutputContainer container,
ACaptureSessionOutput output
)

Parameters

TypeNameDescription
ACaptureSessionOutputContainercontainer
ACaptureSessionOutputoutput

CameraStatus ACaptureSessionOutputContainer_create

public CameraStatus ACaptureSessionOutputContainer_create(
out ACaptureSessionOutputContainer outContainer
)

Parameters

TypeNameDescription
out ACaptureSessionOutputContaineroutContainer

void ACaptureSessionOutputContainer_free

public void ACaptureSessionOutputContainer_free(
ACaptureSessionOutputContainer container
)

Parameters

TypeNameDescription
ACaptureSessionOutputContainercontainer

CameraStatus ACaptureSessionOutputContainer_remove

public CameraStatus ACaptureSessionOutputContainer_remove(
ACaptureSessionOutputContainer container,
ACaptureSessionOutput output
)

Parameters

TypeNameDescription
ACaptureSessionOutputContainercontainer
ACaptureSessionOutputoutput

CameraStatus ACaptureSessionOutput_create

public CameraStatus ACaptureSessionOutput_create(
ANativeWindow window,
out ACaptureSessionOutput output
)

Parameters

TypeNameDescription
ANativeWindowwindow
out ACaptureSessionOutputoutput

void ACaptureSessionOutput_free

public void ACaptureSessionOutput_free(
ACaptureSessionOutput output
)

Parameters

TypeNameDescription
ACaptureSessionOutputoutput