4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Hyunjun Ko <zzoon.ko@samsung.com>
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
23 #include "media-thumbnail.h"
24 #include "media-thumb-error.h"
25 #include "media-thumb-types.h"
26 #include "media-thumb-debug.h"
27 #include <gdk-pixbuf/gdk-pixbuf.h>
29 #ifndef _MEDIA_THUMB_INTERNAL_H_
30 #define _MEDIA_THUMB_INTERNAL_H_
32 #define THUMB_WIDTH_MAX
33 /* The maximum of resolution to be able to get thumbnail is 3000 x 3000, except for only jpeg */
34 #define THUMB_MAX_ALLOWED_MEM_FOR_THUMB 9000000
36 #define THUMB_LARGE_WIDTH 320
37 #define THUMB_LARGE_HEIGHT 240
38 #define THUMB_SMALL_WIDTH 160
39 #define THUMB_SMALL_HEIGHT 120
51 enum Exif_Orientation {
69 _media_thumb_image(const char *origin_path,
72 media_thumb_format format,
73 media_thumb_info *thumb_info,
77 _media_thumb_video(const char *origin_path,
80 media_thumb_format format,
81 media_thumb_info *thumb_info,
84 #endif /*_MEDIA_THUMB_INTERNAL_H_*/