17777dab0Sopenharmony_ci/* 27777dab0Sopenharmony_ci * Copyright (c) 2024 Huawei Device Co., Ltd. 37777dab0Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 47777dab0Sopenharmony_ci * you may not use this file except in compliance with the License. 57777dab0Sopenharmony_ci * You may obtain a copy of the License at 67777dab0Sopenharmony_ci * 77777dab0Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 87777dab0Sopenharmony_ci * 97777dab0Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 107777dab0Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 117777dab0Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 127777dab0Sopenharmony_ci * See the License for the specific language governing permissions and 137777dab0Sopenharmony_ci * limitations under the License. 147777dab0Sopenharmony_ci */ 157777dab0Sopenharmony_ci 167777dab0Sopenharmony_ci/** 177777dab0Sopenharmony_ci * @addtogroup OH_Camera 187777dab0Sopenharmony_ci * @{ 197777dab0Sopenharmony_ci * 207777dab0Sopenharmony_ci * @brief Provide the definition of the C interface for the camera module. 217777dab0Sopenharmony_ci * 227777dab0Sopenharmony_ci * @syscap SystemCapability.Multimedia.Camera.Core 237777dab0Sopenharmony_ci * 247777dab0Sopenharmony_ci * @since 12 257777dab0Sopenharmony_ci * @version 1.0 267777dab0Sopenharmony_ci */ 277777dab0Sopenharmony_ci 287777dab0Sopenharmony_ci/** 297777dab0Sopenharmony_ci * @file camera_device.h 307777dab0Sopenharmony_ci * 317777dab0Sopenharmony_ci * @brief Declare the camera device concepts. 327777dab0Sopenharmony_ci * 337777dab0Sopenharmony_ci * @library libohcamera.so 347777dab0Sopenharmony_ci * @kit CameraKit 357777dab0Sopenharmony_ci * @syscap SystemCapability.Multimedia.Camera.Core 367777dab0Sopenharmony_ci * @since 12 377777dab0Sopenharmony_ci * @version 1.0 387777dab0Sopenharmony_ci */ 397777dab0Sopenharmony_ci 407777dab0Sopenharmony_ci#ifndef NATIVE_INCLUDE_CAMERA_CAMERADEVICE_H 417777dab0Sopenharmony_ci#define NATIVE_INCLUDE_CAMERA_CAMERADEVICE_H 427777dab0Sopenharmony_ci 437777dab0Sopenharmony_ci#include <stdint.h> 447777dab0Sopenharmony_ci#include <stdio.h> 457777dab0Sopenharmony_ci#include "camera.h" 467777dab0Sopenharmony_ci 477777dab0Sopenharmony_ci#ifdef __cplusplus 487777dab0Sopenharmony_ciextern "C" { 497777dab0Sopenharmony_ci#endif 507777dab0Sopenharmony_ci 517777dab0Sopenharmony_ci/** 527777dab0Sopenharmony_ci * @brief Gets the sensor orientation attribute for a camera device. 537777dab0Sopenharmony_ci * 547777dab0Sopenharmony_ci * @param camera the {@link Camera_Device} which use to get attributes. 557777dab0Sopenharmony_ci * @param orientation the sensor orientation attribute if the method call succeeds. 567777dab0Sopenharmony_ci * @return {@link #CAMERA_OK} if the method call succeeds. 577777dab0Sopenharmony_ci * {@link #INVALID_ARGUMENT} if parameter missing or parameter type incorrect. 587777dab0Sopenharmony_ci * {@link #CAMERA_SERVICE_FATAL_ERROR} if camera service fatal error. 597777dab0Sopenharmony_ci * @since 12 607777dab0Sopenharmony_ci */ 617777dab0Sopenharmony_ciCamera_ErrorCode OH_CameraDevice_GetCameraOrientation(Camera_Device* camera, uint32_t* orientation); 627777dab0Sopenharmony_ci 637777dab0Sopenharmony_ci#ifdef __cplusplus 647777dab0Sopenharmony_ci} 657777dab0Sopenharmony_ci#endif 667777dab0Sopenharmony_ci 677777dab0Sopenharmony_ci#endif // NATIVE_INCLUDE_CAMERA_CAMERADEVICE_H 687777dab0Sopenharmony_ci/** @} */