2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
9 // http://www.apache.org/licenses/LICENSE-2.0
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.
19 * @file FMediaImageTypes.h
20 * @brief This is the header file for the common types in the %Image class.
22 * This header file contains the declarations of the enumerations of the Image class.
25 #ifndef _FMEDIA_IMAGE_TYPES_H_
26 #define _FMEDIA_IMAGE_TYPES_H_
28 namespace Tizen { namespace Media
34 * Defines the image formats.
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 */
50 * @enum ImageRotationType
52 * Defines the types of rotations.
56 enum ImageRotationType
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 */
67 * Defines the types of flips.
73 IMAGE_FLIP_NONE = 0x00, /**< No flip type */
74 IMAGE_FLIP_HORIZONTAL, /**< The horizontal flip */
75 IMAGE_FLIP_VERTICAL, /**< The vertical flip */
79 * @enum MediaPixelFormat
81 * Defines the pixel formats of the media data.
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 */
105 * @enum ImageScalingMethod
107 * Defines the image scaling methods.
111 enum ImageScalingMethod
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 */
119 * @enum ExifOrientation
121 * Defines the image's EXIF orientation flags.
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 */