Init Tizen 2.2.1
[framework/osp/image-core.git] / inc / FMediaImageTypes.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17
18 /**
19  * @file                FMediaImageTypes.h
20  * @brief               This is the header file for the common types in the %Image class.
21  *
22  * This header file contains the declarations of the enumerations of the Image class.
23  */
24
25 #ifndef _FMEDIA_IMAGE_TYPES_H_
26 #define _FMEDIA_IMAGE_TYPES_H_
27
28 namespace Tizen { namespace Media
29 {
30
31 /**
32  * @enum        ImageFormat
33  *
34  * Defines the image formats.
35  *
36  * @since       2.0
37  */
38 enum ImageFormat
39 {
40         IMG_FORMAT_NONE = -1,       /**< No image format type */
41         IMG_FORMAT_JPG = 0,         /**< The JPEG image format type */
42         IMG_FORMAT_PNG,             /**< The PNG image format type */
43         IMG_FORMAT_GIF,             /**< The GIF image format type */
44         IMG_FORMAT_BMP,             /**< The BMP image format type */
45         IMG_FORMAT_TIFF,            /**< The TIFF image format type */
46         IMG_FORMAT_WBMP,            /**< The WBMP image format type */
47 };
48
49 /**
50  * @enum ImageRotationType
51  *
52  * Defines the types of rotations.
53  *
54  * @since       2.0
55  */
56 enum ImageRotationType
57 {
58         IMAGE_ROTATION_0 = 0x00,    /**< No rotation type */
59         IMAGE_ROTATION_90,          /**< The 90 degree rotation in the clockwise direction */
60         IMAGE_ROTATION_180,         /**< The 180 degree rotation in the clockwise direction */
61         IMAGE_ROTATION_270,         /**< The 270 degree rotation in the clockwise direction */
62 };
63
64 /**
65  * @enum ImageFlipType
66  *
67  * Defines the types of flips.
68  *
69  * @since       2.0
70  */
71 enum ImageFlipType
72 {
73         IMAGE_FLIP_NONE = 0x00,     /**< No flip type */
74         IMAGE_FLIP_HORIZONTAL,      /**< The horizontal flip */
75         IMAGE_FLIP_VERTICAL,        /**< The vertical flip */
76 };
77
78 /**
79  * @enum        MediaPixelFormat
80  *
81  * Defines the pixel formats of the media data.
82  *
83  * @since       2.0
84  */
85 enum MediaPixelFormat
86 {
87         MEDIA_PIXEL_FORMAT_NONE = 0x0000,     /**< The undefined pixel format */
88         MEDIA_PIXEL_FORMAT_RGB565LE = 0x0001, /**< The RGB565 little-endian format */
89         MEDIA_PIXEL_FORMAT_RGB565BE,          /**< The RGB565 big-endian format */
90         MEDIA_PIXEL_FORMAT_RGB888 = 0x0100,   /**< The RGB888 format */
91         MEDIA_PIXEL_FORMAT_BGR888,            /**< The BGR888 format */
92         MEDIA_PIXEL_FORMAT_RGBA8888,          /**< The RGBA8888 format */
93         MEDIA_PIXEL_FORMAT_BGRA8888,          /**< The BGRA8888 format */
94         MEDIA_PIXEL_FORMAT_YUV420P = 0x0200,  /**< The YUV420 Planar format */
95         MEDIA_PIXEL_FORMAT_NV12,              /**< The NV12 format */
96         MEDIA_PIXEL_FORMAT_NV12_TILE,         /**< The NV12 tiled format */
97         MEDIA_PIXEL_FORMAT_NV21,              /**< The NV21 format */
98         MEDIA_PIXEL_FORMAT_YUV444P,           /**< The YUV444 Planar format */
99         MEDIA_PIXEL_FORMAT_YUYV422,           /**< The YUYV422 format */
100         MEDIA_PIXEL_FORMAT_UYVY422,           /**< The UYVY422 format */
101         MEDIA_PIXEL_FORMAT_GRAY,              /**< The gray pixel format */
102 };
103
104 /**
105  * @enum ImageScalingMethod
106  *
107  * Defines the image scaling methods.
108  *
109  * @since  2.1
110  */
111 enum ImageScalingMethod
112 {
113         IMAGE_SCALING_METHOD_FAST_BILINEAR,   /**< Fast bilinear interpolation method */
114         IMAGE_SCALING_METHOD_BILINEAR,        /**< Bilinear interpolation method */
115         IMAGE_SCALING_METHOD_BICUBIC,         /**< Bicubic interpolation method */
116 };
117
118 /**
119  * @enum ExifOrientation
120  *
121  * Defines the image's EXIF orientation flags.
122  *
123  * @since       2.1
124  */
125 enum ExifOrientation
126 {
127         EXIF_ORIENTATION_TOP_LEFT = 0x01,     /**< The 0th row is on the top, the 0th column is to the left */
128         EXIF_ORIENTATION_TOP_RIGHT,           /**< The 0th row is on the top, the 0th column is to the right */
129         EXIF_ORIENTATION_BOTTOM_RIGHT,        /**< The 0th row is at the bottom, the 0th column is to the right */
130         EXIF_ORIENTATION_BOTTOM_LEFT,         /**< The 0th row is at the bottom, the 0th column is to the left */
131         EXIF_ORIENTATION_LEFT_TOP,            /**< The 0th row is to the left, the 0th column is at the top */
132         EXIF_ORIENTATION_RIGHT_TOP,           /**< The 0th row is to the right, the 0th column is at the top */
133         EXIF_ORIENTATION_RIGHT_BOTTOM,        /**< The 0th row is to the right, the 0th column is at the bottom */
134         EXIF_ORIENTATION_LEFT_BOTTOM,         /**< The 0th row is to the left, the 0th column is at the bottom */
135 };
136
137 };
138 };   // Tizen::Media
139
140
141 #endif