![]() |
SLProject
4.3.020
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
|
#include <vector>#include <string>#include <utility>#include <typeinfo>#include <cinttypes>#include <media/NdkImage.h>#include <camera/NdkCameraManager.h>#include "SENSAndroidCameraUtils.h"#include <android/log.h>Go to the source code of this file.
Macros | |
| #define | LOG_TAG "CAMERA-SAMPLE" |
| #define | LOGI(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__) |
| #define | LOGW(...) __android_log_print(ANDROID_LOG_WARN, LOG_TAG, __VA_ARGS__) |
| #define | LOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__) |
| #define | ASSERT(cond, fmt, ...) |
| #define | UKNOWN_TAG "UNKNOW_TAG" |
| #define | MAKE_PAIR(val) std::make_pair(val, #val) |
| #define | MODE_LABLE "ModeInfo:" |
Typedefs | |
| using | ERROR_PAIR = std::pair< camera_status_t, const char * > |
| using | TAG_PAIR = std::pair< acamera_metadata_tag_t, const char * > |
| using | FORMAT_PAIR = std::pair< int, const char * > |
| using | DEV_ERROR_PAIR = std::pair< int, const char * > |
Functions | |
| template<typename T > | |
| const char * | GetPairStr (T key, std::vector< std::pair< T, const char * >> &store) |
| const char * | GetErrorStr (camera_status_t err) |
| const char * | GetTagStr (acamera_metadata_tag_t tag) |
| const char * | GetFormatStr (int fmt) |
| void | PrintMetadataTags (int32_t entries, const uint32_t *pTags) |
| void | PrintLensFacing (ACameraMetadata_const_entry &lens) |
| void | PrintStreamConfigurations (ACameraMetadata_const_entry &val) |
| void | PrintTagVal (const char *printLabel, ACameraMetadata_const_entry &val) |
| void | PrintCameras (ACameraManager *cmrMgr) |
| void | PrintRequestMetadata (ACaptureRequest *req) |
| const char * | GetCameraDeviceErrorStr (int err) |
| void | PrintCameraDeviceError (int err) |
Variables | |
| static std::vector< ERROR_PAIR > | errorInfo |
| static std::vector< TAG_PAIR > | tagInfo |
| static std::vector< FORMAT_PAIR > | formatInfo |
| static std::vector< DEV_ERROR_PAIR > | devErrors |
| #define ASSERT | ( | cond, | |
| fmt, | |||
| ... | |||
| ) |
Definition at line 31 of file SENSAndroidCameraUtils.cpp.
| #define LOG_TAG "CAMERA-SAMPLE" |
Definition at line 27 of file SENSAndroidCameraUtils.cpp.
| #define LOGE | ( | ... | ) | __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__) |
Definition at line 30 of file SENSAndroidCameraUtils.cpp.
| #define LOGI | ( | ... | ) | __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__) |
Definition at line 28 of file SENSAndroidCameraUtils.cpp.
| #define LOGW | ( | ... | ) | __android_log_print(ANDROID_LOG_WARN, LOG_TAG, __VA_ARGS__) |
Definition at line 29 of file SENSAndroidCameraUtils.cpp.
| #define MAKE_PAIR | ( | val | ) | std::make_pair(val, #val) |
Definition at line 38 of file SENSAndroidCameraUtils.cpp.
| #define MODE_LABLE "ModeInfo:" |
| #define UKNOWN_TAG "UNKNOW_TAG" |
Definition at line 37 of file SENSAndroidCameraUtils.cpp.
| using DEV_ERROR_PAIR = std::pair<int, const char*> |
Definition at line 471 of file SENSAndroidCameraUtils.cpp.
| using ERROR_PAIR = std::pair<camera_status_t, const char*> |
Definition at line 57 of file SENSAndroidCameraUtils.cpp.
| using FORMAT_PAIR = std::pair<int, const char*> |
Definition at line 287 of file SENSAndroidCameraUtils.cpp.
| using TAG_PAIR = std::pair<acamera_metadata_tag_t, const char*> |
Definition at line 84 of file SENSAndroidCameraUtils.cpp.
| const char* GetCameraDeviceErrorStr | ( | int | err | ) |
Definition at line 480 of file SENSAndroidCameraUtils.cpp.
| const char* GetErrorStr | ( | camera_status_t | err | ) |
Definition at line 75 of file SENSAndroidCameraUtils.cpp.
| const char* GetFormatStr | ( | int | fmt | ) |
Definition at line 299 of file SENSAndroidCameraUtils.cpp.
| const char* GetPairStr | ( | T | key, |
| std::vector< std::pair< T, const char * >> & | store | ||
| ) |
Definition at line 40 of file SENSAndroidCameraUtils.cpp.
| const char* GetTagStr | ( | acamera_metadata_tag_t | tag | ) |
Definition at line 282 of file SENSAndroidCameraUtils.cpp.
| void PrintCameraDeviceError | ( | int | err | ) |
Definition at line 484 of file SENSAndroidCameraUtils.cpp.
| void PrintCameras | ( | ACameraManager * | cmrMgr | ) |
Definition at line 379 of file SENSAndroidCameraUtils.cpp.
| void PrintLensFacing | ( | ACameraMetadata_const_entry & | lens | ) |
Definition at line 313 of file SENSAndroidCameraUtils.cpp.
| void PrintMetadataTags | ( | int32_t | entries, |
| const uint32_t * | pTags | ||
| ) |
Definition at line 301 of file SENSAndroidCameraUtils.cpp.
| void PrintRequestMetadata | ( | ACaptureRequest * | req | ) |
Definition at line 425 of file SENSAndroidCameraUtils.cpp.
| void PrintStreamConfigurations | ( | ACameraMetadata_const_entry & | val | ) |
Definition at line 324 of file SENSAndroidCameraUtils.cpp.
| void PrintTagVal | ( | const char * | printLabel, |
| ACameraMetadata_const_entry & | val | ||
| ) |
Definition at line 339 of file SENSAndroidCameraUtils.cpp.
|
static |
Definition at line 472 of file SENSAndroidCameraUtils.cpp.
|
static |
Definition at line 58 of file SENSAndroidCameraUtils.cpp.
|
static |
Definition at line 288 of file SENSAndroidCameraUtils.cpp.
|
static |
Definition at line 85 of file SENSAndroidCameraUtils.cpp.