Home
last modified time | relevance | path

Searched refs:CameraErrorCode (Results 1 – 25 of 56) sorted by relevance

123

/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/camera/src/session/
H A Dtime_lapse_photo_session.cpp199 return CameraErrorCode::SUCCESS; in IsTryAENeeded()
219 return CameraErrorCode::SUCCESS; in StartTryAE()
239 return CameraErrorCode::SUCCESS; in StopTryAE()
261 return CameraErrorCode::SUCCESS; in GetSupportedTimeLapseIntervalRange()
281 return CameraErrorCode::SUCCESS; in GetTimeLapseInterval()
297 return CameraErrorCode::SUCCESS; in SetTimeLapseInterval()
313 return CameraErrorCode::SUCCESS; in SetTimeLapseRecordState()
329 return CameraErrorCode::SUCCESS; in SetTimeLapsePreviewType()
356 return CameraErrorCode::SUCCESS; in SetExposureHintMode()
402 return CameraErrorCode::SUCCESS; in GetExposure()
[all …]
H A Dprofession_session.cpp109 return CameraErrorCode::SUCCESS; in GetSupportedMeteringModes()
124 return CameraErrorCode::SUCCESS; in IsMeteringModeSupported()
155 return CameraErrorCode::SUCCESS; in SetMeteringMode()
179 return CameraErrorCode::SUCCESS; in GetMeteringMode()
221 return CameraErrorCode::SUCCESS; in GetIsoRange()
255 return CameraErrorCode::SUCCESS; in SetISO()
275 return CameraErrorCode::SUCCESS; in GetISO()
325 return CameraErrorCode::SUCCESS; in GetSupportedFocusModes()
340 return CameraErrorCode::SUCCESS; in IsFocusModeSupported()
371 return CameraErrorCode::SUCCESS; in SetFocusMode()
[all …]
H A Dnight_session.cpp37 CHECK_ERROR_RETURN_RET_LOG(!inputDevice, CameraErrorCode::INVALID_ARGUMENT, in GetExposureRange()
40 CHECK_ERROR_RETURN_RET_LOG(!inputDeviceInfo, CameraErrorCode::INVALID_ARGUMENT, in GetExposureRange()
43 CHECK_AND_RETURN_RET(metadata != nullptr, CameraErrorCode::INVALID_ARGUMENT); in GetExposureRange()
51 return CameraErrorCode::SUCCESS; in GetExposureRange()
58 CHECK_ERROR_RETURN_RET_LOG(changedMetadata_ == nullptr, CameraErrorCode::SUCCESS, in SetExposure()
83 return CameraErrorCode::SUCCESS; in SetExposure()
91 CHECK_ERROR_RETURN_RET_LOG(!inputDevice, CameraErrorCode::INVALID_ARGUMENT, in GetExposure()
94 CHECK_ERROR_RETURN_RET_LOG(!inputDeviceInfo, CameraErrorCode::INVALID_ARGUMENT, in GetExposure()
97 CHECK_AND_RETURN_RET(metadata != nullptr, CameraErrorCode::INVALID_ARGUMENT); in GetExposure()
102 return CameraErrorCode::INVALID_ARGUMENT; in GetExposure()
[all …]
H A Dlight_painting_session.cpp30 CHECK_ERROR_RETURN_RET_LOG(!IsSessionCommited(), CameraErrorCode::SESSION_NOT_CONFIG, in GetSupportedLightPaintings()
33 CHECK_ERROR_RETURN_RET_LOG(!inputDevice, CameraErrorCode::SESSION_NOT_CONFIG, in GetSupportedLightPaintings()
36 CHECK_ERROR_RETURN_RET_LOG(!inputDeviceInfo, CameraErrorCode::SESSION_NOT_CONFIG, in GetSupportedLightPaintings()
39 CHECK_ERROR_RETURN_RET(metadata == nullptr, CameraErrorCode::OPERATION_NOT_ALLOWED); in GetSupportedLightPaintings()
51 return CameraErrorCode::SUCCESS; in GetSupportedLightPaintings()
62 return CameraErrorCode::SUCCESS; in GetLightPainting()
70 CHECK_ERROR_RETURN_RET_LOG(changedMetadata_ == nullptr, CameraErrorCode::SUCCESS, in SetLightPainting()
89 CHECK_ERROR_RETURN_RET_LOG(!status, CameraErrorCode::SERVICE_FATL_ERROR, in SetLightPainting()
92 return CameraErrorCode::SUCCESS; in SetLightPainting()
117 CHECK_ERROR_RETURN_RET_LOG(!status, CameraErrorCode::SERVICE_FATL_ERROR, in TriggerLighting()
[all …]
H A Dcapture_session.cpp204 return CameraErrorCode::SUCCESS; in OnError()
299 return CameraErrorCode::SUCCESS; in EnableRawDelivery()
711 return CameraErrorCode::SUCCESS; in ConfigurePreviewOutput()
790 return CameraErrorCode::SUCCESS; in ConfigurePhotoOutput()
820 return CameraErrorCode::SUCCESS; in ConfigureVideoOutput()
840 return CameraErrorCode::SUCCESS; in ConfigureOutput()
935 return CameraErrorCode::SUCCESS; in AdaptOutputVideoHighFrameRate()
1323 return CameraErrorCode::SUCCESS; in UpdateSetting()
1396 return CameraErrorCode::SUCCESS; in UnlockForControl()
1462 return CameraErrorCode::SUCCESS; in GetActiveVideoStabilizationMode()
[all …]
H A Daperture_video_session.cpp43 CHECK_ERROR_RETURN_RET(ret != CameraErrorCode::SUCCESS, ret); in CommitConfig()
48 CHECK_ERROR_RETURN_RET(item == nullptr || item->count == 0, CameraErrorCode::SUCCESS); in CommitConfig()
56 CHECK_ERROR_RETURN_RET(!isSupportAuto, CameraErrorCode::SUCCESS); in CommitConfig()
64 CHECK_ERROR_RETURN_RET_LOG(!updateStabilizationAutoResult, CameraErrorCode::SERVICE_FATL_ERROR, in CommitConfig()
66 return CameraErrorCode::SUCCESS; in CommitConfig()
H A Dscan_session.cpp39 CHECK_ERROR_RETURN_RET_LOG(inputDevice == nullptr, CameraErrorCode::SESSION_NOT_CONFIG, in AddOutput()
46 …CHECK_AND_RETURN_RET_LOG(device != nullptr && cameraManager != nullptr, CameraErrorCode::DEVICE_DI… in AddOutput()
51 … output->GetOutputType() == CAPTURE_OUTPUT_TYPE_PREVIEW), CameraErrorCode::SESSION_NOT_CONFIG, in AddOutput()
H A Dslow_motion_session.cpp99 … CHECK_ERROR_RETURN_LOG(retCode != CameraErrorCode::SUCCESS, "EnableMotionDetection call failed"); in SetSlowMotionDetectionArea()
166 CHECK_ERROR_RETURN_RET_LOG(!IsSessionCommited(), CameraErrorCode::SESSION_NOT_CONFIG, in EnableMotionDetection()
180 return CameraErrorCode::SUCCESS; in EnableMotionDetection()
H A Dmacro_video_session.cpp36 CHECK_AND_RETURN_RET(ret == CameraErrorCode::SUCCESS, ret); in CommitConfig()
H A Dmacro_photo_session.cpp35 CHECK_AND_RETURN_RET(ret == CameraErrorCode::SUCCESS, ret); in CommitConfig()
/ohos5.0/foundation/multimedia/camera_framework/services/camera_service/binder/base/src/
H A Dicamera_util.cpp25 int32_t err = CameraErrorCode::SERVICE_FATL_ERROR; in ServiceToCameraError()
31 err = CameraErrorCode::SERVICE_FATL_ERROR; in ServiceToCameraError()
34 err = CameraErrorCode::SERVICE_FATL_ERROR; in ServiceToCameraError()
37 err = CameraErrorCode::DEVICE_DISABLED; in ServiceToCameraError()
40 err = CameraErrorCode::CONFLICT_CAMERA; in ServiceToCameraError()
43 err = CameraErrorCode::DEVICE_DISABLED; in ServiceToCameraError()
46 err = CameraErrorCode::SERVICE_FATL_ERROR; in ServiceToCameraError()
49 err = CameraErrorCode::SERVICE_FATL_ERROR; in ServiceToCameraError()
52 err = CameraErrorCode::SERVICE_FATL_ERROR; in ServiceToCameraError()
55 err = CameraErrorCode::SERVICE_FATL_ERROR; in ServiceToCameraError()
[all …]
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/ndk/impl/
H A Dcamera_util.cpp27 case CameraErrorCode::SUCCESS: in FrameworkToNdkCameraError()
33 case CameraErrorCode::PARAMETER_ERROR: in FrameworkToNdkCameraError()
34 case CameraErrorCode::INVALID_ARGUMENT: in FrameworkToNdkCameraError()
37 case CameraErrorCode::OPERATION_NOT_ALLOWED: in FrameworkToNdkCameraError()
40 case CameraErrorCode::SESSION_NOT_CONFIG: in FrameworkToNdkCameraError()
43 case CameraErrorCode::SESSION_NOT_RUNNING: in FrameworkToNdkCameraError()
46 case CameraErrorCode::SESSION_CONFIG_LOCKED: in FrameworkToNdkCameraError()
52 case CameraErrorCode::CONFLICT_CAMERA: in FrameworkToNdkCameraError()
55 case CameraErrorCode::DEVICE_DISABLED: in FrameworkToNdkCameraError()
58 case CameraErrorCode::DEVICE_PREEMPTED: in FrameworkToNdkCameraError()
[all …]
H A Dcapture_session_impl.cpp368 if (ret != CameraErrorCode::SUCCESS) { in SetZoomRatio()
379 if (ret != CameraErrorCode::SUCCESS) { in IsFocusModeSupported()
402 if (ret != CameraErrorCode::SUCCESS) { in SetFocusMode()
420 if (ret != CameraErrorCode::SUCCESS) { in SetFocusPoint()
472 if (ret != CameraErrorCode::SUCCESS) { in SetFlashMode()
483 if (ret != CameraErrorCode::SUCCESS) { in IsExposureModeSupported()
506 if (ret != CameraErrorCode::SUCCESS) { in SetExposureMode()
533 if (ret != CameraErrorCode::SUCCESS) { in SetMeteringPoint()
563 if (ret != CameraErrorCode::SUCCESS) { in SetExposureBias()
H A Dcamera_manager_impl.cpp484 if (retCode != CameraErrorCode::SUCCESS) { in CreateCameraInput()
534 CHECK_ERROR_RETURN_RET(retCode != CameraErrorCode::SUCCESS, CAMERA_SERVICE_FATAL_ERROR); in CreatePreviewOutput()
555 CHECK_AND_RETURN_RET_LOG(retCode == CameraErrorCode::SUCCESS, CAMERA_SERVICE_FATAL_ERROR, in CreatePreviewOutputUsedInPreconfig()
579 CHECK_ERROR_RETURN_RET(retCode != CameraErrorCode::SUCCESS, CAMERA_SERVICE_FATAL_ERROR); in CreatePhotoOutput()
602 CHECK_AND_RETURN_RET_LOG(retCode == CameraErrorCode::SUCCESS, CAMERA_SERVICE_FATAL_ERROR, in CreatePhotoOutputUsedInPreconfig()
632 CHECK_AND_RETURN_RET_LOG((retCode == CameraErrorCode::SUCCESS && innerPhotoOutput != nullptr), in CreatePhotoOutputWithoutSurface()
663 CHECK_ERROR_RETURN_RET(retCode != CameraErrorCode::SUCCESS, CAMERA_SERVICE_FATAL_ERROR); in CreateVideoOutput()
680 CHECK_AND_RETURN_RET_LOG(retCode == CameraErrorCode::SUCCESS, CAMERA_SERVICE_FATAL_ERROR, in CreateVideoOutputUsedInPreconfig()
696 CHECK_ERROR_RETURN_RET(retCode != CameraErrorCode::SUCCESS, CAMERA_SERVICE_FATAL_ERROR); in CreateMetadataOutput()
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/camera/src/output/
H A Dvideo_output.cpp225 CHECK_ERROR_PRINT_LOG(retCode != CameraErrorCode::SUCCESS, in CreateStream()
287 CHECK_ERROR_RETURN_RET(result != CameraErrorCode::SUCCESS, result); in SetFrameRate()
297 return CameraErrorCode::SUCCESS; in SetFrameRate()
334 CHECK_ERROR_RETURN_RET_LOG(session == nullptr, CameraErrorCode::SESSION_NOT_CONFIG, in enableMirror()
342 return CameraErrorCode::SUCCESS; in enableMirror()
437 CameraErrorCode::UNRESOLVED_CONFLICTS_BETWEEN_STREAMS, in canSetFrameRateRange()
444 return CameraErrorCode::SUCCESS; in canSetFrameRateRange()
448 return CameraErrorCode::INVALID_ARGUMENT; in canSetFrameRateRange()
572 return CameraErrorCode::SUCCESS; in GetSupportedRotations()
591 return CameraErrorCode::SUCCESS; in IsRotationSupported()
[all …]
H A Dpreview_output.cpp97 CHECK_ERROR_RETURN_RET_LOG(GetStream() == nullptr, CameraErrorCode::SERVICE_FATL_ERROR, in Release()
332 CHECK_ERROR_RETURN_RET(sketchSurface == nullptr, CameraErrorCode::INVALID_ARGUMENT); in AttachSketchSurface()
382 CHECK_ERROR_RETURN_RET(result != CameraErrorCode::SUCCESS, result); in SetFrameRate()
404 return CameraErrorCode::SUCCESS; in SetFrameRate()
446 CameraErrorCode::SESSION_NOT_CONFIG, in StartSketch()
460 CameraErrorCode::SESSION_NOT_CONFIG, in StopSketch()
645 CameraErrorCode::UNRESOLVED_CONFLICTS_BETWEEN_STREAMS, in canSetFrameRateRange()
652 return CameraErrorCode::SUCCESS; in canSetFrameRateRange()
656 return CameraErrorCode::INVALID_ARGUMENT; in canSetFrameRateRange()
741 return CameraErrorCode::SERVICE_FATL_ERROR; in SetPreviewRotation()
[all …]
H A Dmetadata_output.cpp179 return CameraErrorCode::INVALID_ARGUMENT; in AddMetadataObjectTypes()
203 CameraErrorCode::INVALID_ARGUMENT, in AddMetadataObjectTypes()
212 errCode != CAMERA_OK, CameraErrorCode::SERVICE_FATL_ERROR, in AddMetadataObjectTypes()
214 return CameraErrorCode::SUCCESS; in AddMetadataObjectTypes()
225 return CameraErrorCode::INVALID_ARGUMENT; in RemoveMetadataObjectTypes()
239 errCode != CAMERA_OK, CameraErrorCode::SERVICE_FATL_ERROR, in RemoveMetadataObjectTypes()
241 return CameraErrorCode::SUCCESS; in RemoveMetadataObjectTypes()
291 return CameraErrorCode::SUCCESS; in CreateStream()
305 return CameraErrorCode::SUCCESS; in Start()
403 return CameraErrorCode::SUCCESS; in ProcessMetaObjects()
[all …]
H A Ddepth_data_output.cpp78 return CameraErrorCode::SESSION_NOT_CONFIG; in Start()
82 return CameraErrorCode::SERVICE_FATL_ERROR; in Start()
103 return CameraErrorCode::SERVICE_FATL_ERROR; in Stop()
125 return CameraErrorCode::SERVICE_FATL_ERROR; in SetDataAccuracy()
143 return CameraErrorCode::SUCCESS; in CreateStream()
157 return CameraErrorCode::SERVICE_FATL_ERROR; in Release()
H A Dphoto_output.cpp519 if (session->EnableRawDelivery(enabled) == CameraErrorCode::SUCCESS) { in EnableRawDelivery()
583 CHECK_ERROR_RETURN_RET_LOG(GetStream() == nullptr, CameraErrorCode::SERVICE_FATL_ERROR, in Capture()
628 CHECK_ERROR_RETURN_RET_LOG(GetStream() == nullptr, CameraErrorCode::SERVICE_FATL_ERROR, in ConfirmCapture()
644 CHECK_ERROR_RETURN_RET_LOG(stream != nullptr, CameraErrorCode::OPERATION_NOT_ALLOWED, in CreateStream()
647 CHECK_ERROR_RETURN_RET_LOG(producer == nullptr, CameraErrorCode::OPERATION_NOT_ALLOWED, in CreateStream()
655 CHECK_ERROR_PRINT_LOG(res != CameraErrorCode::SUCCESS, in CreateStream()
670 CHECK_ERROR_RETURN_RET_LOG(GetStream() == nullptr, CameraErrorCode::SERVICE_FATL_ERROR, in Release()
730 CHECK_ERROR_RETURN_RET_LOG(session == nullptr, CameraErrorCode::SESSION_NOT_RUNNING, in EnableMirror()
737 CHECK_ERROR_RETURN_RET_LOG(ret != CameraErrorCode::SUCCESS, ret, in EnableMirror()
985 return CameraErrorCode::SERVICE_FATL_ERROR; in GetPhotoRotation()
[all …]
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/camera/src/input/
H A Dcamera_manager.cpp398 return CameraErrorCode::SUCCESS; in CreateCaptureSession()
445 return CameraErrorCode::SUCCESS; in CreateDeferredPhotoProcessingSession()
491 return CameraErrorCode::SUCCESS; in CreateDeferredVideoProcessingSession()
521 return CameraErrorCode::SUCCESS; in CreatePhotoOutputWithoutProfile()
547 return CameraErrorCode::SUCCESS; in CreatePhotoOutput()
598 return CameraErrorCode::SUCCESS; in CreatePreviewOutput()
616 return CameraErrorCode::SUCCESS; in CreatePreviewOutputStream()
636 return CameraErrorCode::SUCCESS; in CreatePhotoOutputStream()
646 return CameraErrorCode::SUCCESS; in ValidCreateOutputStream()
912 return ret == 0 ? CameraErrorCode::SUCCESS : CameraErrorCode::SERVICE_FATL_ERROR; in SubscribeSystemAbility()
[all …]
/ohos5.0/foundation/multimedia/camera_framework/frameworks/js/camera_napi/src/mode/
H A Dtime_lapse_photo_session_napi.cpp334 if (ret != CameraErrorCode::SUCCESS) { in IsTryAENeeded()
359 if (ret != CameraErrorCode::SUCCESS) { in StartTryAE()
382 if (ret != CameraErrorCode::SUCCESS) { in StopTryAE()
404 if (ret != CameraErrorCode::SUCCESS) { in GetSupportedTimeLapseIntervalRange()
434 if (ret != CameraErrorCode::SUCCESS) { in GetTimeLapseInterval()
459 if (ret != CameraErrorCode::SUCCESS) { in SetTimeLapseInterval()
482 if (ret != CameraErrorCode::SUCCESS) { in SetTimeLapseRecordState()
505 if (ret != CameraErrorCode::SUCCESS) { in SetTimeLapsePreviewType()
528 if (ret != CameraErrorCode::SUCCESS) { in GetExposure()
553 if (ret != CameraErrorCode::SUCCESS) { in SetExposure()
[all …]
/ohos5.0/docs/zh-cn/application-dev/reference/apis-camera-kit/
H A Djs-apis-camera.md221 ## CameraErrorCode section
5105 | [Point](#point) | 获取当前曝光点。接口调用失败会返回相应错误码,错误码类型[CameraErrorCode](#cameraerrorcode)。 |
5279 | boolean | 获取是否支持曝光模式。接口调用失败会返回相应错误码,错误码类型[CameraErrorCode](#cameraerrorcode)。 |
5319 | Array\<number\> | 获取补偿范围的数组。接口调用失败会返回相应错误码,错误码类型[CameraErrorCode](#cameraerrorcode)。 |
5484 | [Point](#point) | 用于获取当前焦点。接口调用失败会返回相应错误码,错误码类型[CameraErrorCode](#cameraerrorcode)。 |
5524 | number | 用于获取当前焦距,单位mm。接口调用失败会返回相应错误码,错误码类型[CameraErrorCode](#cameraerrorcode)。 |
5683 | number | 获取当前的变焦比结果。接口调用失败会返回相应错误码,错误码类型[CameraErrorCode](#cameraerrorcode)。 |
6672 | boolean | 获取是否支持曝光模式。接口调用失败会返回相应错误码,错误码类型[CameraErrorCode](#cameraerrorcode)。 |
6799 | [Point](#point) | 获取当前曝光点。接口调用失败会返回相应错误码,错误码类型[CameraErrorCode](#cameraerrorcode)。 |
7243 | number | 用于获取当前焦距。接口调用失败会返回相应错误码,错误码类型[CameraErrorCode](#cameraerrorcode)。 |
[all …]
/ohos5.0/foundation/multimedia/camera_framework/interfaces/inner_api/native/camera/include/
H A Dcamera_error_code.h28 enum CameraErrorCode : int32_t { enum
/ohos5.0/docs/en/application-dev/media/camera/
H A Dcamera-metadata.md35 …ent. If the call fails, an error code is returned. For details, see [CameraErrorCode](../../refere…
71 …ata. If the call fails, an error code is returned. For details, see [CameraErrorCode](../../refere…
104 …PI is incorrectly used. For details about the error code types, see [CameraErrorCode](../../refere…
/ohos5.0/foundation/multimedia/camera_framework/frameworks/js/camera_napi/src/
H A Dcamera_napi_security_utils.cpp27 int32_t errorCode = CameraErrorCode::NO_SYSTEM_APP_PERMISSION; in CheckSystemApp()

123