Tizen 2.0 Release
[framework/osp/media.git] / src / FMedia_CameraTypes.h
1 //\r
2 // Open Service Platform\r
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.\r
4 //\r
5 // Licensed under the Apache License, Version 2.0 (the License);\r
6 // you may not use this file except in compliance with the License.\r
7 // You may obtain a copy of the License at\r
8 //\r
9 //     http://www.apache.org/licenses/LICENSE-2.0\r
10 //\r
11 // Unless required by applicable law or agreed to in writing, software\r
12 // distributed under the License is distributed on an "AS IS" BASIS,\r
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
14 // See the License for the specific language governing permissions and\r
15 // limitations under the License.\r
16 //\r
17
18 /**
19  * @file                        FMedia_CameraTypes.h
20  * @brief                       This header file contains the types of the camcorder.
21  *
22  */
23
24 #ifndef _FMEDIA_INTERNAL_CAMERA_TYPES_H_
25 #define _FMEDIA_INTERNAL_CAMERA_TYPES_H_
26
27 #include <camera.h>
28
29 namespace Tizen { namespace Media
30 {
31
32 typedef camera_h _CameraHandle;\r
33
34 #define MM_INVALID_HANDLE 0
35 #define MEDIA_INVALID_VALUE -1
36 #define MM_SUCCESS 0
37
38 // @enum _CameraSceneMode\r
39 // Defines the camera scen mode
40 enum _CameraSceneMode\r
41 {
42         CAMERA_SCENE_NONE,
43         CAMERA_SCENE_AUTO,
44         CAMERA_SCENE_PORTRAIT,
45         CAMERA_SCENE_LANDSCAPE,
46         CAMERA_SCENE_SPORTS,
47         CAMERA_SCENE_PARTY_INDOOR,
48         CAMERA_SCENE_BEACH_SHOW,
49         CAMERA_SCENE_SUNSET,
50         CAMERA_SCENE_DUSK_DAWN,
51         CAMERA_SCENE_FALLCOLOR,
52         CAMERA_SCENE_NIGHTSHOT,
53         CAMERA_SCENE_FIREWORK,
54         CAMERA_SCENE_TEXT,
55         CAMERA_SCENE_SHOW_WINDOW,
56         CAMERA_SCENE_CANDLELIGHT,
57         CAMERA_SCENE_BACKLIGHT
58 };
59
60 //@enum _CameraDisplayOrientationType\r
61 //Defines the camera's display orientation type
62 enum _CameraDisplayOrientationType\r
63 {
64         _CAMERA_DISPLAY_NONE,\r
65         _CAMERA_DISPLAY_PORTRAIT,\r
66         _CAMERA_DISPLAY_LANDSCAPE,\r
67         _CAMERA_DISPLAY_REVERSE_PORTRAIT,\r
68         _CAMERA_DISPLAY_REVERSE_LANDSCAPE,\r
69 };
70
71 //
72 // @enum _CameraMode\r
73 // Defines the camera's mode
74 //
75 enum _CameraMode\r
76 {
77         _CAMERA_MODE_NONE,\r
78         _CAMERA_MODE_IMAGE,\r
79         _CAMERA_MODE_VIDEO,\r
80 };
81
82 //
83 // @enum _CameraDeviceType\r
84 // Defines the camera's device type
85 //
86 enum _CameraDeviceType\r
87 {
88         _CAMERA_DEVICE_NONE,              /**< The device none */\r
89         _CAMERA_DEVICE_PRIMARY,         /**< The primary camera */\r
90         _CAMERA_DEVICE_SECONDARY,         /**< The secondary camera */\r
91         _CAMERA_DEVICE_MAX                               /**< The max boundary */\r
92 };
93 \r
94 //
95 // @enum _ResolutionType\r
96 // This represents the resolutoin type for the capability.
97 //
98 enum _ResolutionType\r
99 {
100         _RES_NONE = 0,\r
101         _RES_128X96,\r
102         _RES_160X120,\r
103         _RES_176X144,\r
104         _RES_176X176,\r
105         _RES_240X320,\r
106         _RES_320X240,\r
107         _RES_240X400,\r
108         _RES_400X240,\r
109         _RES_352X288,\r
110         _RES_480X360,\r
111         _RES_640X360,\r
112         _RES_640X480,\r
113         _RES_720X480,\r
114         _RES_800X480,\r
115         _RES_800X600,\r
116         _RES_960X720,\r
117         _RES_1280X720,\r
118         _RES_1280X960,\r
119         _RES_1392X1392,\r
120         _RES_1600X1200,\r
121         _RES_1920X1080,\r
122         _RES_MAX = 0xfe,\r
123 };
124
125 }}
126
127 #endif