From 9ff9b42739f7a6b1ae62d778164d7abeb7b8dbbe Mon Sep 17 00:00:00 2001 From: cold Date: Fri, 12 Apr 2024 09:35:06 +0000 Subject: [PATCH] =?UTF-8?q?update=20multimedia/camera=5Fframework/camera.h?= =?UTF-8?q?.=20=E7=9B=B8=E6=9C=BA=E6=97=8B=E8=BD=AC=E8=A7=92=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: cold --- multimedia/camera_framework/camera.h | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/multimedia/camera_framework/camera.h b/multimedia/camera_framework/camera.h index 5e32272de82..8151505d68d 100644 --- a/multimedia/camera_framework/camera.h +++ b/multimedia/camera_framework/camera.h @@ -226,6 +226,34 @@ typedef enum Camera_Connection { CAMERA_CONNECTION_REMOTE = 2 } Camera_Connection; +/** + * @brief Enum for the image rotation angles. + * + * @since 11 + * @version 1.0 + */ +typedef enum Camera_Orientation { + /** + * The camera orientation 0 degrees. + */ + CAMERA_ORIENTATION_0 = 0, + + /** + * The camera orientation 90 degrees. + */ + CAMERA_ORIENTATION_90 = 90, + + /** + * The camera orientation 180 degrees. + */ + CAMERA_ORIENTATION_180 = 180, + + /** + * The camera orientation 270 degrees. + */ + CAMERA_ORIENTATION_270 = 270 +} Camera_Orientation; + /** * @brief Enum for camera format type. * @@ -599,6 +627,8 @@ typedef struct Camera_Device { * Camera connection type attribute. */ Camera_Connection connectionType; + + Camera_Orientation cameraOrientation; } Camera_Device; /** -- Gitee