Home
last modified time | relevance | path

Searched refs:FunctionsType (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/foundation/multimedia/camera_framework/frameworks/js/camera_napi/src/ability/
H A Dcamera_ability_napi.cpp39 {FunctionsType::PHOTO_FUNCTIONS, PHOTO_ABILITY_NAPI_CLASS_NAME},
43 {FunctionsType::VIDEO_FUNCTIONS, VIDEO_ABILITY_NAPI_CLASS_NAME},
149 if (type == FunctionsType::PHOTO_FUNCTIONS) { in Init()
151 } else if (type == FunctionsType::PHOTO_CONFLICT_FUNCTIONS) { in Init()
153 } else if (type == FunctionsType::PORTRAIT_PHOTO_FUNCTIONS) { in Init()
157 } else if (type == FunctionsType::VIDEO_FUNCTIONS) { in Init()
182 if (type == FunctionsType::PHOTO_FUNCTIONS) { in CreateCameraFunctions()
184 } else if (type == FunctionsType::PHOTO_CONFLICT_FUNCTIONS) { in CreateCameraFunctions()
186 } else if (type == FunctionsType::PORTRAIT_PHOTO_FUNCTIONS) { in CreateCameraFunctions()
190 } else if (type == FunctionsType::VIDEO_FUNCTIONS) { in CreateCameraFunctions()
[all …]
/ohos5.0/foundation/multimedia/camera_framework/frameworks/js/camera_napi/src/
H A Dnative_module_ohos_camera.cpp77 CameraFunctionsNapi::Init(env, exports, FunctionsType::PHOTO_FUNCTIONS); in Export()
78 CameraFunctionsNapi::Init(env, exports, FunctionsType::VIDEO_FUNCTIONS); in Export()
79 CameraFunctionsNapi::Init(env, exports, FunctionsType::PORTRAIT_PHOTO_FUNCTIONS); in Export()
80 CameraFunctionsNapi::Init(env, exports, FunctionsType::PHOTO_CONFLICT_FUNCTIONS); in Export()
81 CameraFunctionsNapi::Init(env, exports, FunctionsType::VIDEO_CONFLICT_FUNCTIONS); in Export()
82 CameraFunctionsNapi::Init(env, exports, FunctionsType::PORTRAIT_PHOTO_CONFLICT_FUNCTIONS); in Export()
/ohos5.0/foundation/multimedia/camera_framework/interfaces/kits/js/camera_napi/include/ability/
H A Dcamera_ability_napi.h27 enum class FunctionsType { enum
45 static napi_value Init(napi_env env, napi_value exports, FunctionsType type);
46 … napi_value CreateCameraFunctions(napi_env env, sptr<CameraAbility> functions, FunctionsType type);
123 static const std::map<FunctionsType, const char*> functionsNameMap_;
124 static const std::map<FunctionsType, Descriptor> functionsDescMap_;
/ohos5.0/foundation/multimedia/camera_framework/interfaces/kits/js/camera_napi/include/session/
H A Dcamera_session_napi.h378 napi_env env, std::vector<sptr<CameraAbility>> functionsList, FunctionsType type);
401 static const std::map<SceneMode, FunctionsType> modeToFunctionTypeMap_;
402 static const std::map<SceneMode, FunctionsType> modeToConflictFunctionTypeMap_;
/ohos5.0/foundation/multimedia/camera_framework/frameworks/js/camera_napi/src/session/
H A Dcamera_session_napi.cpp76 const std::map<SceneMode, FunctionsType> CameraSessionNapi::modeToFunctionTypeMap_ = {
77 {SceneMode::CAPTURE, FunctionsType::PHOTO_FUNCTIONS},
78 {SceneMode::VIDEO, FunctionsType::VIDEO_FUNCTIONS},
79 {SceneMode::PORTRAIT, FunctionsType::PORTRAIT_PHOTO_FUNCTIONS}
82 const std::map<SceneMode, FunctionsType> CameraSessionNapi::modeToConflictFunctionTypeMap_ = {
83 {SceneMode::CAPTURE, FunctionsType::PHOTO_CONFLICT_FUNCTIONS},
84 {SceneMode::VIDEO, FunctionsType::VIDEO_CONFLICT_FUNCTIONS},
85 {SceneMode::PORTRAIT, FunctionsType::PORTRAIT_PHOTO_CONFLICT_FUNCTIONS}
3619 napi_env env, std::vector<sptr<CameraAbility>> functionsList, FunctionsType type) in CreateFunctionsJSArray()