| /* |
| ** |
| ** Copyright 2013, Samsung Electronics Co. LTD |
| ** |
| ** Licensed under the Apache License, Version 2.0 (the "License"); |
| ** you may not use this file except in compliance with the License. |
| ** You may obtain a copy of the License at |
| ** |
| ** http://www.apache.org/licenses/LICENSE-2.0 |
| ** |
| ** Unless required by applicable law or agreed to in writing, software |
| ** distributed under the License is distributed on an "AS IS" BASIS, |
| ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| ** See the License for the specific language governing permissions and |
| ** limitations under the License. |
| */ |
| |
| #ifndef EXYNOS_CAMERA_UTILS_MODULE_H |
| #define EXYNOS_CAMERA_UTILS_MODULE_H |
| |
| #include <cutils/properties.h> |
| #include <utils/threads.h> |
| #include <utils/String8.h> |
| |
| #include "ExynosRect.h" |
| #include "fimc-is-metadata.h" |
| #include "ExynosCameraConfig.h" |
| /* HACK: BDS for FHD in Helsinki Prime */ |
| #include "ExynosCameraUtils.h" |
| |
| namespace android { |
| |
| /* |
| * Will deprecated this API. |
| * Please, use ExynosCameraNodeGroup class. |
| */ |
| void updateNodeGroupInfoMainPreview( |
| int cameraId, |
| camera2_node_group *node_group_info_3aa, |
| camera2_node_group *node_group_info_isp, |
| ExynosRect bayerCropSize, |
| ExynosRect bdsSize, |
| int previewW, int previewH, |
| int pictureW, int pictureH); |
| |
| void updateNodeGroupInfoReprocessing( |
| int cameraId, |
| camera2_node_group *node_group_info_3aa, |
| camera2_node_group *node_group_info_isp, |
| ExynosRect bayerCropSizePreview, |
| ExynosRect bayerCropSizePicture, |
| ExynosRect bdsSize, |
| int pictureW, int pictureH, |
| bool pureBayerReprocessing, |
| bool flag3aaIspOtf); |
| |
| void updateNodeGroupInfoFront( |
| int cameraId, |
| camera2_node_group *node_group_info_3aa, |
| camera2_node_group *node_group_info_isp, |
| ExynosRect bayerCropSize, |
| ExynosRect bdsSize, |
| int previewW, int previewH, |
| int pictureW, int pictureH); |
| |
| class ExynosCameraNodeGroup { |
| private: |
| ExynosCameraNodeGroup(); |
| virtual ~ExynosCameraNodeGroup(); |
| |
| public: |
| /* this is for preview */ |
| static void updateNodeGroupInfo( |
| int cameraId, |
| camera2_node_group *node_group_info_3aa, |
| camera2_node_group *node_group_info_isp, |
| ExynosRect bayerCropSize, |
| ExynosRect bdsSize, |
| int previewW, int previewH, |
| int pictureW, int pictureH); |
| |
| /* this is for reprocessing */ |
| static void updateNodeGroupInfo( |
| int cameraId, |
| camera2_node_group *node_group_info_3aa, |
| camera2_node_group *node_group_info_isp, |
| ExynosRect bayerCropSizePreview, |
| ExynosRect bayerCropSizePicture, |
| ExynosRect bdsSize, |
| int pictureW, int pictureH, |
| bool pureBayerReprocessing, |
| bool flag3aaIspOtf); |
| |
| protected: |
| static void m_dump(const char *name, int cameraId, camera2_node_group *node_group_info); |
| }; |
| |
| class ExynosCameraNodeGroup3AA : public ExynosCameraNodeGroup { |
| private: |
| ExynosCameraNodeGroup3AA(); |
| virtual ~ExynosCameraNodeGroup3AA(); |
| |
| public: |
| /* this is for preview */ |
| static void updateNodeGroupInfo( |
| int cameraId, |
| camera2_node_group *node_group_info, |
| ExynosRect bayerCropSize, |
| ExynosRect bdsSize, |
| int previewW, int previewH, |
| int pictureW, int pictureH); |
| }; |
| |
| class ExynosCameraNodeGroupISP : public ExynosCameraNodeGroup { |
| private: |
| ExynosCameraNodeGroupISP(); |
| virtual ~ExynosCameraNodeGroupISP(); |
| |
| public: |
| /* this is for preview */ |
| static void updateNodeGroupInfo( |
| int cameraId, |
| camera2_node_group *node_group_info, |
| ExynosRect bayerCropSize, |
| ExynosRect bdsSize, |
| int previewW, int previewH, |
| int pictureW, int pictureH, |
| bool dis); |
| }; |
| |
| class ExynosCameraNodeGroupDIS : public ExynosCameraNodeGroup { |
| private: |
| ExynosCameraNodeGroupDIS(); |
| virtual ~ExynosCameraNodeGroupDIS(); |
| |
| public: |
| /* this is for preview */ |
| static void updateNodeGroupInfo( |
| int cameraId, |
| camera2_node_group *node_group_info, |
| ExynosRect bayerCropSize, |
| ExynosRect bdsSize, |
| int previewW, int previewH, |
| int pictureW, int pictureH, |
| bool dis = false); |
| }; |
| |
| }; /* namespace android */ |
| |
| #endif |
| |