2 * Copyright 2012 Samsung Electronics Co., Ltd
\r
4 * Licensed under the Flora License, Version 1.1 (the "License");
\r
5 * you may not use this file except in compliance with the License.
\r
6 * You may obtain a copy of the License at
\r
8 * http://floralicense.org/license/
\r
10 * Unless required by applicable law or agreed to in writing, software
\r
11 * distributed under the License is distributed on an "AS IS" BASIS,
\r
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
13 * See the License for the specific language governing permissions and
\r
14 * limitations under the License.
\r
18 #ifndef _CCAM_DEVICE_CAPACITY_H_
\r
19 #define _CCAM_DEVICE_CAPACITY_H_
\r
21 #include "cam_property.h"
\r
23 class CCamDeviceCapacity
\r
25 //===========================================================================
\r
26 // Constructor & Destructor
\r
30 CCamDeviceCapacity();
\r
31 virtual ~CCamDeviceCapacity();
\r
34 //===========================================================================
\r
37 static CCamDeviceCapacity* m_pInstance;
\r
39 typedef struct _DevCapsSupported
\r
45 typedef struct _DevCapsMinMax
\r
53 typedef struct _DevCapsRange
\r
57 unsigned int unCaps;
\r
61 DevCapsRange m_CamRes;
\r
62 DevCapsRange m_RecRes;
\r
63 DevCapsRange m_Focus;
\r
64 DevCapsRange m_Effect;
\r
66 DevCapsRange m_Scene;
\r
67 DevCapsRange m_Metering;
\r
69 DevCapsRange m_Flash;
\r
71 DevCapsRange m_Shot;
\r
72 DevCapsRange m_RecMode;
\r
74 DevCapsMinMax m_Zoom;
\r
78 DevCapsSupported m_WDR;
\r
79 DevCapsSupported m_AntiShake;
\r
80 DevCapsSupported m_RecAntiShake;
\r
81 DevCapsSupported m_Outdoorvisibility;
\r
83 unsigned int m_uFuncCaps;
\r
84 //===========================================================================
\r
88 static CCamDeviceCapacity* GetInstance();
\r
92 void GetCamDevFuncCaps(unsigned int *eType, void *user_data);
\r
94 bool GetCamDevCamResolutionCaps(unsigned int *uCapacity, void *user_data);
\r
95 bool GetCamDevRecResolutionCaps(unsigned int *uCapacity, void *user_data);
\r
96 bool GetCamDevFocusCaps(unsigned int *uCapacity, void *user_data);
\r
97 bool GetCamDevEffectCaps(unsigned int *uCapacity, void *user_data);
\r
98 bool GetCamDevWBCaps(unsigned int *uCapacity, void *user_data);
\r
99 bool GetCamDevSceneModeCaps(unsigned int *uCapacity, void *user_data);
\r
100 bool GetCamDevMeteringCaps(unsigned int *uCapacity, void *user_data);
\r
101 bool GetCamDevISOCaps(unsigned int *uCapacity, void *user_data);
\r
102 bool GetCamDevFlashCaps(unsigned int *uCapacity, void *user_data);
\r
103 bool GetCamDevFpsCaps(unsigned int *uCapacity, void *user_data);
\r
104 bool GetCamDevShotModeCaps(unsigned int *uCapacity, void *user_data);
\r
105 bool GetCamDevRecModeCaps(unsigned int *uCapacity, void *user_data);
\r
106 bool GetCamDevZoomCaps(int *min, int *max);
\r
107 bool GetCamDevEvCaps(int *min, int *max);
\r
108 bool GetCamDevBrCaps(int *min, int *max);
\r
113 bool IsSupported(unsigned int type, CamDeviceType deviceType, void *user_data);
\r
117 #endif //_CCAM_DEVICE_CAPACITY_H_
\r