4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Hyunjun Ko <zzoon.ko@samsung.com>, Haejeong Kim <backto.kim@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.
24 #ifndef _MEDIA_SVC_TYPES_H_
25 #define _MEDIA_SVC_TYPES_H_
29 typedef void MediaSvcHandle; /**< Handle */
32 * Type definition for storage type
35 MEDIA_SVC_STORAGE_INTERNAL = 0, /**< The device's internal storage */
36 MEDIA_SVC_STORAGE_EXTERNAL = 1, /**< The device's external storage like sd card*/
37 MEDIA_SVC_STORAGE_EXTERNAL_USB = 2, /**< The external USB storage (Since 2.4) */
38 MEDIA_SVC_STORAGE_CLOUD = 100, /**< The Cloud storage (Since 2.4) */
39 MEDIA_SVC_STORAGE_MAX, /**< Invalid storage*/
40 } media_svc_storage_type_e;
43 * Type definition for content type
46 MEDIA_SVC_MEDIA_TYPE_IMAGE = 0, /**< Image Content*/
47 MEDIA_SVC_MEDIA_TYPE_VIDEO = 1, /**< Video Content*/
48 MEDIA_SVC_MEDIA_TYPE_SOUND = 2, /**< Sound Content like Ringtone*/
49 MEDIA_SVC_MEDIA_TYPE_MUSIC = 3, /**< Music Content like mp3*/
50 MEDIA_SVC_MEDIA_TYPE_OTHER = 4, /**< Not media Content*/
51 } media_svc_media_type_e;
54 * Media meta data information
57 char *title; /**< track title*/
58 char *album; /**< album name*/
59 char *artist; /**< artist name*/
60 char *album_artist; /**< artist name*/
61 char *genre; /**< genre of track*/
62 char *composer; /**< composer name*/
63 char *year; /**< year*/
64 char *recorded_date; /**< recorded date*/
65 char *copyright; /**< copyright*/
66 char *track_num; /**< track number*/
67 char *description; /**< description*/
68 int bitrate; /**< bitrate*/
69 int samplerate; /**< samplerate*/
70 int channel; /**< channel*/
71 int duration; /**< duration*/
72 float longitude; /**< longitude*/
73 float latitude; /**< latitude*/
74 float altitude; /**< altitude*/
75 char *exposure_time; /**< exposure_time*/
76 float fnumber; /**< fnumber*/
78 char *model; /**< model*/
79 int width; /**< width*/
80 int height; /**< height*/
81 char *datetaken; /**< datetaken*/
82 int orientation; /**< orientation*/
83 int rating; /**< user defined rating */
84 char *weather; /**< weather of image */
85 int bitpersample; /**< bitrate*/
87 char *file_name_pinyin; /**< pinyin for file_name*/
88 char *title_pinyin; /**< pinyin for title*/
89 char *album_pinyin; /**< pinyin for album*/
90 char *artist_pinyin; /**< pinyin for artist*/
91 char *album_artist_pinyin; /**< pinyin for album_artist*/
92 char *genre_pinyin; /**< pinyin for genre*/
93 char *composer_pinyin; /**< pinyin for composer*/
94 char *copyright_pinyin; /**< pinyin for copyright*/
95 char *description_pinyin; /**< pinyin for description*/
96 } media_svc_content_meta_s;
99 * Media data information
102 char *media_uuid; /**< Unique ID of item */
103 char *path; /**< Full path of media file */
104 char *file_name; /**< File name of media file. Display name */
105 char *file_name_pinyin; /**< File name pinyin of media file. Display name */
106 int media_type; /**< Type of media file : internal/external */
107 char *mime_type; /**< Full path and file name of media file */
108 unsigned long long size; /**< size */
109 time_t added_time; /**< added time, time_t */
110 time_t modified_time; /**< modified time, time_t */
111 time_t timeline; /**< timeline of media, time_t */
112 char *folder_uuid; /**< Unique ID of folder */
113 int album_id; /**< Unique ID of album */
114 char *thumbnail_path; /**< Thumbnail image file path */
115 int played_count; /**< played count */
116 int last_played_time; /**< last played time */
117 int last_played_position; /**< last played position */
118 int favourate; /**< favourate. o or 1 */
119 int is_drm; /**< is_drm. o or 1 */
120 int sync_status; /**< sync_status */
121 int storage_type; /**< Storage of media file : internal/external */
122 char *storage_uuid; /**< Unique ID of storage */
123 media_svc_content_meta_s media_meta; /**< meta data structure for audio files */
124 } media_svc_content_info_s;
127 * Type definition for scanning status
130 MEDIA_SVC_SCAN_PREPARE = 0, /**< Prepare scanning*/
131 MEDIA_SVC_SCAN_PROCESSING = 1, /**< Process scanning*/
132 MEDIA_SVC_SCAN_STOP = 2, /**< Stop scanning*/
133 MEDIA_SVC_SCAN_COMPLETE = 3, /**< Complete scanning*/
134 MEDIA_SVC_SCAN_MAX = 4, /**< Invalid status*/
135 }media_svc_scan_status_type_e;
137 #endif /*_MEDIA_SVC_TYPES_H_*/