1 /* 2 * Copyright (c) 2021 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef HOS_CAMERA_IMX219_H 17 #define HOS_CAMERA_IMX219_H 18 19 #include "isensor.h" 20 #include "create_sensor_factory.h" 21 #include "device_manager_adapter.h" 22 23 namespace OHOS::Camera { 24 class Imx219 : public ISensor { 25 DECLARE_SENSOR(Imx219) 26 public: 27 Imx219(); 28 virtual ~Imx219(); 29 void InitSensitivityRange(Camera::CameraMetadata& camera_meta_data); 30 void InitAwbModes(Camera::CameraMetadata& camera_meta_data); 31 void InitCompensationRange(Camera::CameraMetadata& camera_meta_data); 32 void InitFpsTarget(Camera::CameraMetadata& camera_meta_data); 33 void InitAvailableModes(Camera::CameraMetadata& camera_meta_data); 34 void InitAntiBandingModes(Camera::CameraMetadata& camera_meta_data); 35 void InitPhysicalSize(Camera::CameraMetadata& camera_meta_data); 36 void Init(Camera::CameraMetadata& camera_meta_data); 37 }; 38 } // namespace OHOS::Camera 39 #endif 40