Apply video recording bitrate dynamically
[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 _CameraDisplayOrientationType\r
39 //Defines the camera's display orientation type
40 enum _CameraDisplayOrientationType\r
41 {
42         _CAMERA_DISPLAY_NONE,\r
43         _CAMERA_DISPLAY_PORTRAIT,\r
44         _CAMERA_DISPLAY_LANDSCAPE,\r
45         _CAMERA_DISPLAY_REVERSE_PORTRAIT,\r
46         _CAMERA_DISPLAY_REVERSE_LANDSCAPE,\r
47 };
48
49 //
50 // @enum _CameraMode\r
51 // Defines the camera's mode
52 //
53 enum _CameraMode\r
54 {
55         _CAMERA_MODE_NONE,\r
56         _CAMERA_MODE_IMAGE,\r
57         _CAMERA_MODE_VIDEO,\r
58 };
59
60 //
61 // @enum _CameraDeviceType\r
62 // Defines the camera's device type
63 //
64 enum _CameraDeviceType\r
65 {
66         _CAMERA_DEVICE_NONE,              /**< The device none */\r
67         _CAMERA_DEVICE_PRIMARY,         /**< The primary camera */\r
68         _CAMERA_DEVICE_SECONDARY,         /**< The secondary camera */\r
69         _CAMERA_DEVICE_MAX                               /**< The max boundary */\r
70 };
71 \r
72 //
73 // @enum _ResolutionType\r
74 // This represents the resolutoin type for the capability.
75 //
76 enum _ResolutionType\r
77 {
78         _RES_NONE = 0,\r
79         _RES_128X96,\r
80         _RES_160X120,\r
81         _RES_176X144,\r
82         _RES_176X176,\r
83         _RES_240X320,\r
84         _RES_320X240,\r
85         _RES_240X400,\r
86         _RES_400X240,\r
87         _RES_352X288,\r
88         _RES_480X360,\r
89         _RES_640X360,\r
90         _RES_640X480,\r
91         _RES_720X480,\r
92         _RES_800X480,\r
93         _RES_800X600,\r
94         _RES_960X720,\r
95         _RES_1280X720,\r
96         _RES_1280X960,\r
97         _RES_1392X1392,\r
98         _RES_1440X1080,\r
99         _RES_1600X1200,\r
100         _RES_1920X1080,\r
101         _RES_2048X1536,\r
102         _RES_MAX = 0xfe,\r
103 };
104
105 }}
106
107 #endif