ARX  1.2.0
The next-generation open source augmented reality toolkit.
Loading...
Searching...
No Matches
camera_utils.h File Reference
#include "videoAndroid.h"
#include <camera/NdkCameraError.h>
#include <camera/NdkCameraManager.h>
Include dependency graph for camera_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ASSERT(cond, fmt, ...)
#define CALL_CAMERA(func)
#define CALL_MGR(func)
#define CALL_DEV(func)
#define CALL_METADATA(func)
#define CALL_CONTAINER(func)
#define CALL_OUTPUT(func)
#define CALL_TARGET(func)
#define CALL_REQUEST(func)
#define CALL_SESSION(func)

Functions

const char * GetErrorStr (camera_status_t err)
const char * GetTagStr (acamera_metadata_tag_t tag)
void PrintMetadataTags (int32_t entries, const uint32_t *pTags)
void PrintLensFacing (ACameraMetadata_const_entry &lensData)
void PrintCameras (ACameraManager *cameraMgr)
void PrintCameraDeviceError (int err)
void PrintRequestMetadata (ACaptureRequest *req)

Macro Definition Documentation

◆ ASSERT

#define ASSERT ( cond,
fmt,
... )
Value:
if (!(cond)) { \
ARLOGe(#cond, fmt, ##__VA_ARGS__); \
}

◆ CALL_CAMERA

#define CALL_CAMERA ( func)
Value:
{ \
camera_status_t status = func; \
ASSERT(status == ACAMERA_OK, "%s call failed with code: %#x, %s", \
__FUNCTION__, status, GetErrorStr(status)); \
}
const char * GetErrorStr(camera_status_t err)
Definition camera_utils.cpp:62

◆ CALL_CONTAINER

#define CALL_CONTAINER ( func)
Value:
CALL_CAMERA(ACaptureSessionOutputContainer_##func)
#define CALL_CAMERA(func)
Definition camera_utils.h:34

◆ CALL_DEV

#define CALL_DEV ( func)
Value:
CALL_CAMERA(ACameraDevice_##func)

◆ CALL_METADATA

#define CALL_METADATA ( func)
Value:
CALL_CAMERA(ACameraMetadata_##func)

◆ CALL_MGR

#define CALL_MGR ( func)
Value:
CALL_CAMERA(ACameraManager_##func)

◆ CALL_OUTPUT

#define CALL_OUTPUT ( func)
Value:
CALL_CAMERA(ACaptureSessionOutput_##func)

◆ CALL_REQUEST

#define CALL_REQUEST ( func)
Value:
CALL_CAMERA(ACaptureRequest_##func)

◆ CALL_SESSION

#define CALL_SESSION ( func)
Value:
CALL_CAMERA(ACameraCaptureSession_##func)

◆ CALL_TARGET

#define CALL_TARGET ( func)
Value:
CALL_CAMERA(ACameraOutputTarget_##func)

Function Documentation

◆ GetErrorStr()

const char * GetErrorStr ( camera_status_t err)
Here is the call graph for this function:

◆ GetTagStr()

const char * GetTagStr ( acamera_metadata_tag_t tag)
Here is the call graph for this function:

◆ PrintCameraDeviceError()

void PrintCameraDeviceError ( int err)
Here is the call graph for this function:

◆ PrintCameras()

void PrintCameras ( ACameraManager * cameraMgr)
Here is the call graph for this function:

◆ PrintLensFacing()

void PrintLensFacing ( ACameraMetadata_const_entry & lensData)
Here is the call graph for this function:

◆ PrintMetadataTags()

void PrintMetadataTags ( int32_t entries,
const uint32_t * pTags )
Here is the call graph for this function:

◆ PrintRequestMetadata()

void PrintRequestMetadata ( ACaptureRequest * req)
Here is the call graph for this function: