tizen 2.4 release
[apps/home/attach-panel-gallery.git] / include / ge-exif.h
1 /*
2 * Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 */
17
18 #ifdef _USE_ROTATE_BG_GE
19
20 #ifndef _GE_EXIF_H_
21 #define _GE_EXIF_H_
22
23 #include <stdbool.h>
24 #include <stdio.h>
25
26 #ifdef _cplusplus
27 extern "C"
28 {
29 #endif
30
31 /*
32 Orientation - angle
33 1 - 0
34 3 - 180
35 6 - 90
36 8 - 270
37 */
38 typedef enum _ge_orientation_rot_t ge_orientation_rot_e;
39
40 enum _ge_orientation_rot_t {
41         GE_ORIENTATION_ROT_ERR = 0,
42         GE_ORIENTATION_ROT_0 = 1,
43         GE_ORIENTATION_ROT_180 = 3,
44         GE_ORIENTATION_ROT_90 = 6,
45         GE_ORIENTATION_ROT_270 = 8,
46 };
47
48 int _ge_exif_get_orientation(char *file_path, unsigned int *orientation);
49
50 #ifdef _cplusplus
51 }
52 #endif
53
54 #endif //_GE_EXIF_H_
55
56 #endif //_USE_ROTATE_BG_GE
57