/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/camera/src/output/ |
H A D | preview_output.cpp | 658 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() 701 …imageRotation = ((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 D | video_output.cpp | 451 int32_t VideoOutput::GetVideoRotation(int32_t imageRotation) in GetVideoRotation() argument 477 … imageRotation = (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 D | photo_output.cpp | 945 int32_t PhotoOutput::GetPhotoRotation(int32_t imageRotation) in GetPhotoRotation() argument 971 … imageRotation = (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 D | video_output.cpp | 200 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 D | preview_output.cpp | 200 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 D | photo_output.cpp | 399 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 D | preview_output_impl.cpp | 198 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 D | preview_output_impl.h | 50 …Camera_ErrorCode GetPreviewRotation(int32_t imageRotation, Camera_ImageRotation* cameraImageRotati… 52 Camera_ErrorCode SetPreviewRotation(int32_t imageRotation, bool isDisplayLocked);
|
H A D | video_output_impl.cpp | 206 Camera_ErrorCode Camera_VideoOutput::GetVideoRotation(int32_t imageRotation, Camera_ImageRotation* … in GetVideoRotation() argument 212 int32_t cameraOutputRotation = innerVideoOutput_->GetVideoRotation(imageRotation); in GetVideoRotation()
|
H A D | video_output_impl.h | 50 …Camera_ErrorCode GetVideoRotation(int32_t imageRotation, Camera_ImageRotation* cameraImageRotation…
|
H A D | photo_output_impl.cpp | 412 Camera_ErrorCode Camera_PhotoOutput::GetPhotoRotation(int32_t imageRotation, Camera_ImageRotation* … in GetPhotoRotation() argument 416 int32_t cameraOutputRotation = innerPhotoOutput_->GetPhotoRotation(imageRotation); in GetPhotoRotation()
|
H A D | photo_output_impl.h | 268 …Camera_ErrorCode GetPhotoRotation(int32_t imageRotation, Camera_ImageRotation* cameraImageRotation…
|
/ohos5.0/foundation/multimedia/camera_framework/interfaces/inner_api/native/camera/include/output/ |
H A D | preview_output.h | 123 int32_t GetPreviewRotation(int32_t imageRotation); 128 int32_t SetPreviewRotation(int32_t imageRotation, bool isDisplayLocked); 237 int32_t JudegRotationFunc(int32_t imageRotation);
|
H A D | video_output.h | 105 int32_t GetVideoRotation(int32_t imageRotation);
|
H A D | photo_output.h | 298 int32_t GetPhotoRotation(int32_t imageRotation);
|
/ohos5.0/foundation/multimedia/camera_framework/frameworks/js/camera_napi/src/output/ |
H A D | preview_output_napi.cpp | 864 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 D | video_output_napi.cpp | 671 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 D | take-picture-and-preview.md | 190 rotation: this.imageRotation,
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-camera-kit/ |
H A D | js-apis-camera.md | 2137 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 D | js-apis-camera.md | 2144 function testGetPreviewRotation(previewOutput: camera.PreviewOutput, imageRotation : camera.ImageRo… 2147 previewRotation = previewOutput.getPreviewRotation(imageRotation);
|