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
Type | Name | Description |
---|---|---|
ACameraCaptureSession | session | |
ACameraCaptureSession.CaptureCallbacks * | callbacks | |
int | numRequests | |
ACaptureRequest * | requests | |
out int | outCaptureSequenceId |
void ACameraCaptureSession_close
public void ACameraCaptureSession_close(
ACameraCaptureSession session
)
Parameters
Type | Name | Description |
---|---|---|
ACameraCaptureSession | session |
CameraStatus ACameraCaptureSession_getDevice
public CameraStatus ACameraCaptureSession_getDevice(
ACameraCaptureSession session,
out ACameraDevice outDevice
)
Parameters
Type | Name | Description |
---|---|---|
ACameraCaptureSession | session | |
out ACameraDevice | outDevice |
unsafe CameraStatus ACameraCaptureSession_setRepeatingRequest
public unsafe CameraStatus ACameraCaptureSession_setRepeatingRequest(
ACameraCaptureSession session,
ACameraCaptureSession.CaptureCallbacks * callbacks,
int numRequests,
ACaptureRequest * requests,
out int outSequenceId
)
Parameters
Type | Name | Description |
---|---|---|
ACameraCaptureSession | session | |
ACameraCaptureSession.CaptureCallbacks * | callbacks | |
int | numRequests | |
ACaptureRequest * | requests | |
out int | outSequenceId |
CameraStatus ACameraCaptureSession_stopRepeating
public CameraStatus ACameraCaptureSession_stopRepeating(
ACameraCaptureSession session
)
Parameters
Type | Name | Description |
---|---|---|
ACameraCaptureSession | session |
CameraStatus ACameraDevice_close
public CameraStatus ACameraDevice_close(
ACameraDevice camera
)
Parameters
Type | Name | Description |
---|---|---|
ACameraDevice | camera |
CameraStatus ACameraDevice_createCaptureRequest
public CameraStatus ACameraDevice_createCaptureRequest(
ACameraDevice device,
ACaptureRequest.Template template,
out ACaptureRequest outRequest
)
Parameters
Type | Name | Description |
---|---|---|
ACameraDevice | device | |
ACaptureRequest.Template | template | |
out ACaptureRequest | outRequest |
unsafe CameraStatus ACameraDevice_createCaptureSession
public unsafe CameraStatus ACameraDevice_createCaptureSession(
ACameraDevice device,
ACaptureSessionOutputContainer container,
ACameraCaptureSession.StateCallbacks * callbacks,
out ACameraCaptureSession session
)
Parameters
Type | Name | Description |
---|---|---|
ACameraDevice | device | |
ACaptureSessionOutputContainer | container | |
ACameraCaptureSession.StateCallbacks * | callbacks | |
out ACameraCaptureSession | session |
unsafe byte * ACameraDevice_getId
public unsafe byte * ACameraDevice_getId(
ACameraDevice camera
)
Parameters
Type | Name | Description |
---|---|---|
ACameraDevice | camera |
ACameraManager ACameraManager_create
public ACameraManager ACameraManager_create()
void ACameraManager_delete
public void ACameraManager_delete(
ACameraManager manager
)
Parameters
Type | Name | Description |
---|---|---|
ACameraManager | manager |
void ACameraManager_deleteCameraIdList
public void ACameraManager_deleteCameraIdList(
ACameraIdList list
)
Parameters
Type | Name | Description |
---|---|---|
ACameraIdList | list |
CameraStatus ACameraManager_getCameraCharacteristics
public CameraStatus ACameraManager_getCameraCharacteristics(
ACameraManager manager,
string cameraId,
out ACameraMetadata metadata
)
Parameters
Type | Name | Description |
---|---|---|
ACameraManager | manager | |
string | cameraId | |
out ACameraMetadata | metadata |
unsafe CameraStatus ACameraManager_getCameraCharacteristicsNonAlloc
public unsafe CameraStatus ACameraManager_getCameraCharacteristicsNonAlloc(
ACameraManager manager,
byte * cameraId,
out ACameraMetadata metadata
)
Parameters
Type | Name | Description |
---|---|---|
ACameraManager | manager | |
byte * | cameraId | |
out ACameraMetadata | metadata |
CameraStatus ACameraManager_getCameraIdList
public CameraStatus ACameraManager_getCameraIdList(
ACameraManager manager,
out ACameraIdList list
)
Parameters
Type | Name | Description |
---|---|---|
ACameraManager | manager | |
out ACameraIdList | list |
unsafe CameraStatus ACameraManager_openCamera
public unsafe CameraStatus ACameraManager_openCamera(
ACameraManager manager,
string cameraId,
ACameraDevice.StateCallbacks * callbacks,
out ACameraDevice camera
)
Parameters
Type | Name | Description |
---|---|---|
ACameraManager | manager | |
string | cameraId | |
ACameraDevice.StateCallbacks * | callbacks | |
out ACameraDevice | camera |
unsafe CameraStatus ACameraManager_openCameraNonAlloc
public unsafe CameraStatus ACameraManager_openCameraNonAlloc(
ACameraManager manager,
byte * cameraId,
ACameraDevice.StateCallbacks * callbacks,
out ACameraDevice camera
)
Parameters
Type | Name | Description |
---|---|---|
ACameraManager | manager | |
byte * | cameraId | |
ACameraDevice.StateCallbacks * | callbacks | |
out ACameraDevice | camera |
CameraStatus ACameraManager_registerAvailabilityCallback
public CameraStatus ACameraManager_registerAvailabilityCallback(
ACameraManager manager,
ref ACameraManager.AvailabilityCallbacks callbacks
)
Parameters
Type | Name | Description |
---|---|---|
ACameraManager | manager | |
ref ACameraManager.AvailabilityCallbacks | callbacks |
CameraStatus ACameraManager_unregisterAvailabilityCallback
public CameraStatus ACameraManager_unregisterAvailabilityCallback(
ACameraManager manager,
ref ACameraManager.AvailabilityCallbacks callbacks
)
Parameters
Type | Name | Description |
---|---|---|
ACameraManager | manager | |
ref ACameraManager.AvailabilityCallbacks | callbacks |
ACameraMetadata ACameraMetadata_copy
public ACameraMetadata ACameraMetadata_copy(
ACameraMetadata metadata
)
Parameters
Type | Name | Description |
---|---|---|
ACameraMetadata | metadata |
void ACameraMetadata_free
public void ACameraMetadata_free(
ACameraMetadata metadata
)
Parameters
Type | Name | Description |
---|---|---|
ACameraMetadata | metadata |
unsafe CameraStatus ACameraMetadata_getAllTags
public unsafe CameraStatus ACameraMetadata_getAllTags(
ACameraMetadata metadata,
out int outNumEntries,
out uint * outTags
)
Parameters
Type | Name | Description |
---|---|---|
ACameraMetadata | metadata | |
out int | outNumEntries | |
out uint * | outTags |
CameraStatus ACameraMetadata_getConstEntry
public CameraStatus ACameraMetadata_getConstEntry(
ACameraMetadata metadata,
uint tag,
out ACameraMetadata.Entry.ReadOnly outEntry
)
Parameters
Type | Name | Description |
---|---|---|
ACameraMetadata | metadata | |
uint | tag | |
out ACameraMetadata.Entry.ReadOnly | outEntry |
CameraStatus ACameraOutputTarget_create
public CameraStatus ACameraOutputTarget_create(
ANativeWindow window,
out ACameraOutputTarget outTarget
)
Parameters
Type | Name | Description |
---|---|---|
ANativeWindow | window | |
out ACameraOutputTarget | outTarget |
void ACameraOutputTarget_free
public void ACameraOutputTarget_free(
ACameraOutputTarget target
)
Parameters
Type | Name | Description |
---|---|---|
ACameraOutputTarget | target |
CameraStatus ACaptureRequest_addTarget
public CameraStatus ACaptureRequest_addTarget(
ACaptureRequest request,
ACameraOutputTarget target
)
Parameters
Type | Name | Description |
---|---|---|
ACaptureRequest | request | |
ACameraOutputTarget | target |
void ACaptureRequest_free
public void ACaptureRequest_free(
ACaptureRequest request
)
Parameters
Type | Name | Description |
---|---|---|
ACaptureRequest | request |
unsafe CameraStatus ACaptureRequest_getAllTags
public unsafe CameraStatus ACaptureRequest_getAllTags(
ACaptureRequest request,
ref int numTags,
uint ** tags
)
Parameters
Type | Name | Description |
---|---|---|
ACaptureRequest | request | |
ref int | numTags | |
uint ** | tags |
CameraStatus ACaptureRequest_getConstEntry
public CameraStatus ACaptureRequest_getConstEntry(
ACaptureRequest request,
uint tag,
out ACameraMetadata.Entry.ReadOnly outEntry
)
Parameters
Type | Name | Description |
---|---|---|
ACaptureRequest | request | |
uint | tag | |
out ACameraMetadata.Entry.ReadOnly | outEntry |
unsafe CameraStatus ACaptureRequest_getUserContext
public unsafe CameraStatus ACaptureRequest_getUserContext(
ACaptureRequest request,
out System.IntPtr context
)
Parameters
Type | Name | Description |
---|---|---|
ACaptureRequest | request | |
out System.IntPtr | context |
CameraStatus ACaptureRequest_removeTarget
public CameraStatus ACaptureRequest_removeTarget(
ACaptureRequest request,
ACameraOutputTarget target
)
Parameters
Type | Name | Description |
---|---|---|
ACaptureRequest | request | |
ACameraOutputTarget | target |
unsafe CameraStatus ACaptureRequest_setEntry_double
public unsafe CameraStatus ACaptureRequest_setEntry_double(
ACaptureRequest request,
uint tag,
uint count,
double * data
)
Parameters
Type | Name | Description |
---|---|---|
ACaptureRequest | request | |
uint | tag | |
uint | count | |
double * | data |
unsafe CameraStatus ACaptureRequest_setEntry_float
public unsafe CameraStatus ACaptureRequest_setEntry_float(
ACaptureRequest request,
uint tag,
uint count,
float * data
)
Parameters
Type | Name | Description |
---|---|---|
ACaptureRequest | request | |
uint | tag | |
uint | count | |
float * | data |
unsafe CameraStatus ACaptureRequest_setEntry_i32
public unsafe CameraStatus ACaptureRequest_setEntry_i32(
ACaptureRequest request,
uint tag,
uint count,
int * data
)
Parameters
Type | Name | Description |
---|---|---|
ACaptureRequest | request | |
uint | tag | |
uint | count | |
int * | data |
unsafe CameraStatus ACaptureRequest_setEntry_i64
public unsafe CameraStatus ACaptureRequest_setEntry_i64(
ACaptureRequest request,
uint tag,
uint count,
long * data
)
Parameters
Type | Name | Description |
---|---|---|
ACaptureRequest | request | |
uint | tag | |
uint | count | |
long * | data |
unsafe CameraStatus ACaptureRequest_setEntry_rational
public unsafe CameraStatus ACaptureRequest_setEntry_rational(
ACaptureRequest request,
uint tag,
uint count,
ACameraMetadata.Rational * data
)
Parameters
Type | Name | Description |
---|---|---|
ACaptureRequest | request | |
uint | tag | |
uint | count | |
ACameraMetadata.Rational * | data |
unsafe CameraStatus ACaptureRequest_setEntry_u8
public unsafe CameraStatus ACaptureRequest_setEntry_u8(
ACaptureRequest request,
uint tag,
uint count,
byte * data
)
Parameters
Type | Name | Description |
---|---|---|
ACaptureRequest | request | |
uint | tag | |
uint | count | |
byte * | data |
unsafe CameraStatus ACaptureRequest_setUserContext
public unsafe CameraStatus ACaptureRequest_setUserContext(
ACaptureRequest request,
System.IntPtr context
)
Parameters
Type | Name | Description |
---|---|---|
ACaptureRequest | request | |
System.IntPtr | context |
CameraStatus ACaptureSessionOutputContainer_add
public CameraStatus ACaptureSessionOutputContainer_add(
ACaptureSessionOutputContainer container,
ACaptureSessionOutput output
)
Parameters
Type | Name | Description |
---|---|---|
ACaptureSessionOutputContainer | container | |
ACaptureSessionOutput | output |
CameraStatus ACaptureSessionOutputContainer_create
public CameraStatus ACaptureSessionOutputContainer_create(
out ACaptureSessionOutputContainer outContainer
)
Parameters
Type | Name | Description |
---|---|---|
out ACaptureSessionOutputContainer | outContainer |
void ACaptureSessionOutputContainer_free
public void ACaptureSessionOutputContainer_free(
ACaptureSessionOutputContainer container
)
Parameters
Type | Name | Description |
---|---|---|
ACaptureSessionOutputContainer | container |
CameraStatus ACaptureSessionOutputContainer_remove
public CameraStatus ACaptureSessionOutputContainer_remove(
ACaptureSessionOutputContainer container,
ACaptureSessionOutput output
)
Parameters
Type | Name | Description |
---|---|---|
ACaptureSessionOutputContainer | container | |
ACaptureSessionOutput | output |
CameraStatus ACaptureSessionOutput_create
public CameraStatus ACaptureSessionOutput_create(
ANativeWindow window,
out ACaptureSessionOutput output
)
Parameters
Type | Name | Description |
---|---|---|
ANativeWindow | window | |
out ACaptureSessionOutput | output |
void ACaptureSessionOutput_free
public void ACaptureSessionOutput_free(
ACaptureSessionOutput output
)
Parameters
Type | Name | Description |
---|---|---|
ACaptureSessionOutput | output |