Home
last modified time | relevance | path

Searched refs:opMode (Results 1 - 13 of 13) sorted by relevance

/foundation/multimedia/camera_framework/services/camera_service/src/
H A Dcamera_util.cpp241 bool IsValidMode(int32_t opMode, std::shared_ptr<OHOS::Camera::CameraMetadata> cameraAbility) in IsValidMode() argument
243 if (opMode == 0 || opMode == 1 || opMode == 2) { // 0 is normal mode, 1 is capture mode, 2 is video mode in IsValidMode()
244 MEDIA_INFO_LOG("operationMode:%{public}d", opMode); in IsValidMode()
261 if (opMode == item.data.u8[i]) { in IsValidMode()
262 MEDIA_INFO_LOG("operationMode:%{public}d found in supported streams", opMode); in IsValidMode()
266 MEDIA_ERR_LOG("operationMode:%{public}d not found in supported streams", opMode); in IsValidMode()
H A Dhcamera_restore_param.cpp86 void HCameraRestoreParam::SetCameraOpMode(int32_t opMode) in SetCameraOpMode() argument
88 mOpMode = opMode; in SetCameraOpMode()
H A Dhcamera_host_manager.cpp91 bool IsNeedRestore(int32_t opMode,
390 int32_t opMode = cameraRestoreParam->GetCameraOpMode(); in Prelaunch() local
391 bool isNeedRestore = IsNeedRestore(opMode, cameraRestoreParam->GetSetting(), prelaunchConfig.cameraId); in Prelaunch()
395 MEDIA_INFO_LOG("CameraHostInfo::PrelaunchWithOpMode ICameraHost V1_2 %{public}d", opMode); in Prelaunch()
396 rc = (CamRetCode)(cameraHostProxyV1_2_->PrelaunchWithOpMode(prelaunchConfig, opMode)); in Prelaunch()
398 MEDIA_INFO_LOG("CameraHostInfo::Prelaunch ICameraHost V1_2 %{public}d", opMode); in Prelaunch()
414 bool HCameraHostManager::CameraHostInfo::IsNeedRestore(int32_t opMode, in IsNeedRestore() argument
424 if (opMode == 0) { // 0 is normal mode in IsNeedRestore()
425 MEDIA_INFO_LOG("operationMode:%{public}d", opMode); in IsNeedRestore()
442 if (opMode in IsNeedRestore()
[all...]
H A Dhcapture_session.cpp132 sptr<HCaptureSession> HCaptureSession::NewInstance(const uint32_t callerToken, int32_t opMode) in NewInstance() argument
135 CHECK_AND_RETURN_RET(session->Initialize(callerToken, opMode) != CAMERA_OK, session); in NewInstance()
139 int32_t HCaptureSession::Initialize(const uint32_t callerToken, int32_t opMode) in Initialize() argument
157 opMode_ = opMode; in Initialize()
159 CameraReportUtils::GetInstance().updateModeChangePerfInfo(opMode, CameraReportUtils::GetCallerInfo()); in Initialize()
174 HCaptureSession::HCaptureSession(const uint32_t callingTokenId, int32_t opMode) in HCaptureSession() argument
176 Initialize(callingTokenId, opMode); in HCaptureSession()
H A Dhcamera_service.cpp437 int32_t HCameraService::CreateCaptureSession(sptr<ICaptureSession>& session, int32_t opMode) in CreateCaptureSession() argument
442 MEDIA_INFO_LOG("HCameraService::CreateCaptureSession opMode_= %{public}d", opMode); in CreateCaptureSession()
445 sptr<HCaptureSession> captureSession = HCaptureSession::NewInstance(callerToken, opMode); in CreateCaptureSession()
H A Dhcamera_device.cpp1158 OperationMode opMode = OperationMode::NORMAL; in CommitStreams() local
1159 hdiRc = (CamRetCode)(streamOperator->CommitStreams(opMode, setting)); in CommitStreams()
/foundation/multimedia/camera_framework/test/fuzztest/camerarestoreparam_fuzzer/
H A Dcamera_restore_param_fuzzer.cpp71 int32_t opMode = data.ReadInt32(); in Test() local
72 fuzz->SetCameraOpMode(opMode); in Test()
/foundation/multimedia/camera_framework/services/camera_service/include/
H A Dhcamera_restore_param.h53 void SetCameraOpMode(int32_t opMode);
H A Dhcapture_session.h210 static sptr<HCaptureSession> NewInstance(const uint32_t callerToken, int32_t opMode);
212 explicit HCaptureSession(const uint32_t callingTokenId, int32_t opMode);
266 int32_t Initialize(const uint32_t callerToken, int32_t opMode);
H A Dcamera_util.h151 bool IsValidMode(int32_t opMode, std::shared_ptr<OHOS::Camera::CameraMetadata> cameraAbility);
H A Dhcamera_service.h99 int32_t CreateCaptureSession(sptr<ICaptureSession>& session, int32_t opMode) override;
/foundation/multimedia/camera_framework/frameworks/native/camera/src/input/
H A Dcamera_manager.cpp176 bool ConvertMetaToFwkMode(const OperationMode opMode, SceneMode &scMode) in ConvertMetaToFwkMode() argument
178 auto it = g_metaToFwSupportedMode_.find(opMode); in ConvertMetaToFwkMode()
181 MEDIA_DEBUG_LOG("ConvertMetaToFwkMode OperationMode = %{public}d to SceneMode %{public}d", opMode, scMode); in ConvertMetaToFwkMode()
184 MEDIA_ERR_LOG("ConvertMetaToFwkMode OperationMode = %{public}d err", opMode); in ConvertMetaToFwkMode()
188 bool ConvertFwkToMetaMode(const SceneMode scMode, OperationMode &opMode) in ConvertFwkToMetaMode() argument
192 opMode = it->second; in ConvertFwkToMetaMode()
193 MEDIA_DEBUG_LOG("ConvertFwkToMetaMode SceneMode %{public}d to OperationMode = %{public}d", scMode, opMode); in ConvertFwkToMetaMode()
362 OperationMode opMode = OperationMode::NORMAL; in CreateCaptureSession() local
363 if (!ConvertFwkToMetaMode(mode, opMode)) { in CreateCaptureSession()
367 retCode = serviceProxy->CreateCaptureSession(session, opMode); in CreateCaptureSession()
[all...]
/foundation/multimedia/camera_framework/frameworks/native/camera/test/unittest/src/v1_1/
H A Dcamera_framework_unittest.cpp7498 * CaseDescription: Test opMode PORTRAIT fuzz test
7503 SceneMode opMode = PORTRAIT; in HWTEST_F() local
7504 sptr<HCaptureSession> session = HCaptureSession::NewInstance(callerToken, opMode); in HWTEST_F()
8277 SceneMode opMode = CAPTURE; in HWTEST_F() local
8278 sptr<HCaptureSession> session = HCaptureSession::NewInstance(callerToken, opMode); in HWTEST_F()

Completed in 31 milliseconds