Home
last modified time | relevance | path

Searched refs:imageRotation (Results 1 – 20 of 20) sorted by relevance

/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/camera/src/output/
H A Dpreview_output.cpp658 int32_t PreviewOutput::GetPreviewRotation(int32_t imageRotation) in GetPreviewRotation() argument
661 CHECK_ERROR_RETURN_RET_LOG(imageRotation % ROTATION_90_DEGREES != 0, INVALID_ARGUMENT, in GetPreviewRotation()
683 imageRotation = JudegRotationFunc(imageRotation); in GetPreviewRotation()
686 result = (ImageRotation)((imageRotation + sensorOrientation) % CAPTURE_ROTATION_BASE); in GetPreviewRotation()
692 int32_t PreviewOutput::JudegRotationFunc(int32_t imageRotation) in JudegRotationFunc() argument
695 if (imageRotation > CAPTURE_ROTATION_BASE) { in JudegRotationFunc()
701imageRotation = ((imageRotation - ROTATION_90_DEGREES + CAPTURE_ROTATION_BASE) % CAPTURE_ROTATION_… in JudegRotationFunc()
703 return imageRotation; in JudegRotationFunc()
706 int32_t PreviewOutput::SetPreviewRotation(int32_t imageRotation, bool isDisplayLocked) in SetPreviewRotation() argument
709 CHECK_ERROR_RETURN_RET_LOG(imageRotation % ROTATION_90_DEGREES != 0, INVALID_ARGUMENT, in SetPreviewRotation()
[all …]
H A Dvideo_output.cpp451 int32_t VideoOutput::GetVideoRotation(int32_t imageRotation) in GetVideoRotation() argument
477imageRotation = (imageRotation + ROTATION_45_DEGREES) / ROTATION_90_DEGREES * ROTATION_90_DEGREES; in GetVideoRotation()
479 result = (ImageRotation)((imageRotation + sensorOrientation) % CAPTURE_ROTATION_BASE); in GetVideoRotation()
481 …result = (ImageRotation)((sensorOrientation - imageRotation + CAPTURE_ROTATION_BASE) % CAPTURE_ROT… in GetVideoRotation()
H A Dphoto_output.cpp945 int32_t PhotoOutput::GetPhotoRotation(int32_t imageRotation) in GetPhotoRotation() argument
971imageRotation = (imageRotation + ROTATION_45_DEGREES) / ROTATION_90_DEGREES * ROTATION_90_DEGREES; in GetPhotoRotation()
973 result = (ImageRotation)((imageRotation + sensorOrientation) % CAPTURE_ROTATION_BASE); in GetPhotoRotation()
975 …result = (ImageRotation)((sensorOrientation - imageRotation + CAPTURE_ROTATION_BASE) % CAPTURE_ROT… in GetPhotoRotation()
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/ndk/
H A Dvideo_output.cpp200 Camera_ImageRotation* imageRotation) in OH_VideoOutput_GetVideoRotation() argument
205 CHECK_AND_RETURN_RET_LOG(imageRotation != nullptr, CAMERA_INVALID_ARGUMENT, in OH_VideoOutput_GetVideoRotation()
207 return videoOutput->GetVideoRotation(deviceDegree, imageRotation); in OH_VideoOutput_GetVideoRotation()
H A Dpreview_output.cpp200 Camera_ImageRotation* imageRotation) in OH_PreviewOutput_GetPreviewRotation() argument
205 CHECK_AND_RETURN_RET_LOG(imageRotation != nullptr, CAMERA_INVALID_ARGUMENT, in OH_PreviewOutput_GetPreviewRotation()
207 return previewOutput->GetPreviewRotation(displayRotation, imageRotation); in OH_PreviewOutput_GetPreviewRotation()
H A Dphoto_output.cpp399 Camera_ImageRotation* imageRotation) in OH_PhotoOutput_GetPhotoRotation() argument
404 CHECK_AND_RETURN_RET_LOG(imageRotation != nullptr, CAMERA_INVALID_ARGUMENT, in OH_PhotoOutput_GetPhotoRotation()
406 return photoOutput->GetPhotoRotation(deviceDegree, imageRotation); in OH_PhotoOutput_GetPhotoRotation()
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/ndk/impl/
H A Dpreview_output_impl.cpp198 Camera_ErrorCode Camera_PreviewOutput::GetPreviewRotation(int32_t imageRotation, in GetPreviewRotation() argument
203 int32_t cameraOutputRotation = innerPreviewOutput_->GetPreviewRotation(imageRotation); in GetPreviewRotation()
212 Camera_ErrorCode Camera_PreviewOutput::SetPreviewRotation(int32_t imageRotation, bool isDisplayLock… in SetPreviewRotation() argument
214 int32_t ret = innerPreviewOutput_->SetPreviewRotation(imageRotation, isDisplayLocked); in SetPreviewRotation()
H A Dpreview_output_impl.h50 …Camera_ErrorCode GetPreviewRotation(int32_t imageRotation, Camera_ImageRotation* cameraImageRotati…
52 Camera_ErrorCode SetPreviewRotation(int32_t imageRotation, bool isDisplayLocked);
H A Dvideo_output_impl.cpp206 Camera_ErrorCode Camera_VideoOutput::GetVideoRotation(int32_t imageRotation, Camera_ImageRotation* … in GetVideoRotation() argument
212 int32_t cameraOutputRotation = innerVideoOutput_->GetVideoRotation(imageRotation); in GetVideoRotation()
H A Dvideo_output_impl.h50 …Camera_ErrorCode GetVideoRotation(int32_t imageRotation, Camera_ImageRotation* cameraImageRotation…
H A Dphoto_output_impl.cpp412 Camera_ErrorCode Camera_PhotoOutput::GetPhotoRotation(int32_t imageRotation, Camera_ImageRotation* … in GetPhotoRotation() argument
416 int32_t cameraOutputRotation = innerPhotoOutput_->GetPhotoRotation(imageRotation); in GetPhotoRotation()
H A Dphoto_output_impl.h268 …Camera_ErrorCode GetPhotoRotation(int32_t imageRotation, Camera_ImageRotation* cameraImageRotation…
/ohos5.0/foundation/multimedia/camera_framework/interfaces/inner_api/native/camera/include/output/
H A Dpreview_output.h123 int32_t GetPreviewRotation(int32_t imageRotation);
128 int32_t SetPreviewRotation(int32_t imageRotation, bool isDisplayLocked);
237 int32_t JudegRotationFunc(int32_t imageRotation);
H A Dvideo_output.h105 int32_t GetVideoRotation(int32_t imageRotation);
H A Dphoto_output.h298 int32_t GetPhotoRotation(int32_t imageRotation);
/ohos5.0/foundation/multimedia/camera_framework/frameworks/js/camera_napi/src/output/
H A Dpreview_output_napi.cpp864 int32_t imageRotation = 0; in SetPreviewRotation() local
867 … CameraNapiParamParser jsParamParser(env, info, previewOutputNapi, imageRotation, isDisplayLocked); in SetPreviewRotation()
869 MEDIA_INFO_LOG("PreviewOutputNapi SetPreviewRotation! %{public}d", imageRotation); in SetPreviewRotation()
872 jsParamParser = CameraNapiParamParser(env, info, previewOutputNapi, imageRotation); in SetPreviewRotation()
879 if (previewOutputNapi->previewOutput_ == nullptr || imageRotation < 0 || in SetPreviewRotation()
880 imageRotation > ROTATION_270 || (imageRotation % ROTATION_90 != 0)) { in SetPreviewRotation()
885 retCode = previewOutputNapi->previewOutput_->SetPreviewRotation(imageRotation, isDisplayLocked); in SetPreviewRotation()
H A Dvideo_output_napi.cpp671 int32_t imageRotation; in GetVideoRotation() local
672 napi_status ret = napi_get_value_int32(env, argv[PARAM0], &imageRotation); in GetVideoRotation()
678 int32_t retCode = videoOutputNapi->videoOutput_->GetVideoRotation(imageRotation); in GetVideoRotation()
/ohos5.0/docs/zh-cn/third-party-cases/
H A Dtake-picture-and-preview.md190 rotation: this.imageRotation,
/ohos5.0/docs/zh-cn/application-dev/reference/apis-camera-kit/
H A Djs-apis-camera.md2137 function testGetPreviewRotation(previewOutput: camera.PreviewOutput, imageRotation : camera.ImageRo…
2140 previewRotation = previewOutput.getPreviewRotation(imageRotation);
/ohos5.0/docs/en/application-dev/reference/apis-camera-kit/
H A Djs-apis-camera.md2144 function testGetPreviewRotation(previewOutput: camera.PreviewOutput, imageRotation : camera.ImageRo…
2147 previewRotation = previewOutput.getPreviewRotation(imageRotation);