相机框架商用分支蓝黄同步

Signed-off-by: 136******92 <yupanwen@huawei.com>
Change-Id: I3f89b4b62c850f782bb5ec3ac0ae61dfa0fb17ad
This commit is contained in:
136******92 2024-08-31 16:04:58 +08:00
parent d3db3530e4
commit f991725871
3 changed files with 56 additions and 0 deletions

View File

@ -222,6 +222,20 @@ Camera_ErrorCode OH_PhotoOutput_UnregisterCallback(Camera_PhotoOutput* photoOutp
Camera_ErrorCode OH_PhotoOutput_RegisterCaptureStartWithInfoCallback(Camera_PhotoOutput* photoOutput,
OH_PhotoOutput_CaptureStartWithInfo callback);
/**
* @brief Gets the photo rotation angle.
*
* @param photoOutput the {@link Camera_PhotoOutput} instance which used to get the photo rotation angle.
* @param deviceDegree the current device rotation degree.
* @param imageRotation the {@link Camera_ImageRotation} result of photo rotation angle.
* @return {@link #CAMERA_OK} if the method call succeeds.
* {@link #CAMERA_INVALID_ARGUMENT} if parameter missing or parameter type incorrect.
* {@link #CAMERA_SERVICE_FATAL_ERROR} if camera service fatal error.
* @since 12
*/
Camera_ErrorCode OH_PhotoOutput_GetPhotoRotation(Camera_PhotoOutput* photoOutput, int deviceDegree,
Camera_ImageRotation* imageRotation);
/**
* @brief Unregister capture start event callback.
*

View File

@ -190,6 +190,34 @@ Camera_ErrorCode OH_PreviewOutput_GetActiveProfile(Camera_PreviewOutput* preview
*/
Camera_ErrorCode OH_PreviewOutput_DeleteProfile(Camera_Profile* profile);
/**
* @brief Gets the preview rotation angle.
*
* @param previewOutput the {@link Camera_PreviewOutput} instance which used to get the preview rotation angle.
* @param displayRotation the current display rotation angle.
* @param imageRotation the {@link Camera_ImageRotation} result of preview rotation angle.
* @return {@link #CAMERA_OK} if the method call succeeds.
* {@link #CAMERA_INVALID_ARGUMENT} if parameter missing or parameter type incorrect.
* {@link #CAMERA_SERVICE_FATAL_ERROR} if camera service fatal error.
* @since 12
*/
Camera_ErrorCode OH_PreviewOutput_GetPreviewRotation(Camera_PreviewOutput* previewOutput, int displayRotation,
Camera_ImageRotation* imageRotation);
/**
* @brief Sets the preview rotation angle.
*
* @param previewOutput the {@link Camera_PreviewOutput} instance which used to set the preview rotation angle.
* @param previewRotation the {@link Camera_ImageRotation} of preview display rotation angle.
* @param isDisplayLocked TRUE means the display is locked.
* @return {@link #CAMERA_OK} if the method call succeeds.
* {@link #CAMERA_INVALID_ARGUMENT} if parameter missing or parameter type incorrect.
* {@link #CAMERA_SERVICE_FATAL_ERROR} if camera service fatal error.
* @since 12
*/
Camera_ErrorCode OH_PreviewOutput_SetPreviewRotation(Camera_PreviewOutput* previewOutput,
Camera_ImageRotation previewRotation, bool isDisplayLocked);
/**
* @brief Get supported preview output frame rate list.
*

View File

@ -188,6 +188,20 @@ Camera_ErrorCode OH_VideoOutput_GetActiveProfile(Camera_VideoOutput* videoOutput
*/
Camera_ErrorCode OH_VideoOutput_DeleteProfile(Camera_VideoProfile* profile);
/**
* @brief Gets the video rotation angle.
*
* @param videoOutput the {@link Camera_VideoOutput} instance which used to get the video rotation angle.
* @param deviceDegree the current device rotation degree.
* @param imageRotation the {@link Camera_ImageRotation} result of video rotation angle.
* @return {@link #CAMERA_OK} if the method call succeeds.
* {@link #CAMERA_INVALID_ARGUMENT} if parameter missing or parameter type incorrect.
* {@link #CAMERA_SERVICE_FATAL_ERROR} if camera service fatal error.
* @since 12
*/
Camera_ErrorCode OH_VideoOutput_GetVideoRotation(Camera_VideoOutput* videoOutput, int deviceDegree,
Camera_ImageRotation* imageRotation);
/**
* @brief Get supported video output frame rate list.
*