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_PVR = 5, /**< PVR Content*/
52 MEDIA_SVC_MEDIA_TYPE_UHD = 6, /**< UHD Content*/
53 MEDIA_SVC_MEDIA_TYPE_SCSA = 7, /**< SCSA Content*/
54 } media_svc_media_type_e;
57 * Media meta data information
60 char *title; /**< track title*/
61 char *album; /**< album name*/
62 char *artist; /**< artist name*/
63 char *album_artist; /**< artist name*/
64 char *genre; /**< genre of track*/
65 char *composer; /**< composer name*/
66 char *year; /**< year*/
67 char *recorded_date; /**< recorded date*/
68 char *copyright; /**< copyright*/
69 char *track_num; /**< track number*/
70 char *description; /**< description*/
71 int bitrate; /**< bitrate*/
72 int samplerate; /**< samplerate*/
73 int channel; /**< channel*/
74 int duration; /**< duration*/
75 float longitude; /**< longitude*/
76 float latitude; /**< latitude*/
77 float altitude; /**< altitude*/
78 char *exposure_time; /**< exposure_time*/
79 float fnumber; /**< fnumber*/
81 char *model; /**< model*/
82 int width; /**< width*/
83 int height; /**< height*/
84 char *datetaken; /**< datetaken*/
85 int orientation; /**< orientation*/
86 int rating; /**< user defined rating */
87 char *weather; /**< weather of image */
88 int bitpersample; /**< bitrate*/
89 char *category; /**< category*/
90 char *keyword; /**< keyword*/
91 char *location_tag; /**< location_tag*/
92 char *content_name; /**< content_name*/
93 char *age_rating; /**< age_rating*/
94 char *author; /**< author*/
95 char *provider; /**< provider*/
97 char *file_name_pinyin; /**< pinyin for file_name*/
98 char *title_pinyin; /**< pinyin for title*/
99 char *album_pinyin; /**< pinyin for album*/
100 char *artist_pinyin; /**< pinyin for artist*/
101 char *album_artist_pinyin; /**< pinyin for album_artist*/
102 char *genre_pinyin; /**< pinyin for genre*/
103 char *composer_pinyin; /**< pinyin for composer*/
104 char *copyright_pinyin; /**< pinyin for copyright*/
105 char *description_pinyin; /**< pinyin for description*/
107 } media_svc_content_meta_s;
110 * Media data information
113 char *media_uuid; /**< Unique ID of item */
114 char *path; /**< Full path of media file */
115 char *file_name; /**< File name of media file. Display name */
116 char *file_name_pinyin; /**< File name pinyin of media file. Display name */
117 int media_type; /**< Type of media file : internal/external */
118 char *mime_type; /**< Full path and file name of media file */
119 unsigned long long size; /**< size */
120 time_t added_time; /**< added time, time_t */
121 time_t modified_time; /**< modified time, time_t */
122 time_t timeline; /**< timeline of media, time_t */
123 char *folder_uuid; /**< Unique ID of folder */
124 int album_id; /**< Unique ID of album */
125 char *thumbnail_path; /**< Thumbnail image file path */
126 int played_count; /**< played count */
127 int last_played_time; /**< last played time */
128 int last_played_position; /**< last played position */
129 time_t favourate; /**< time favourate set */
130 int is_drm; /**< is_drm. o or 1 */
131 int sync_status; /**< sync_status */
132 int storage_type; /**< Storage of media file : internal/external */
133 char *storage_uuid; /**< Unique ID of storage */
134 media_svc_content_meta_s media_meta; /**< meta data structure for audio files */
135 } media_svc_content_info_s;
138 * Type definition for scanning status
141 MEDIA_SVC_SCAN_PREPARE = 0, /**< Prepare scanning*/
142 MEDIA_SVC_SCAN_PROCESSING = 1, /**< Process scanning*/
143 MEDIA_SVC_SCAN_STOP = 2, /**< Stop scanning*/
144 MEDIA_SVC_SCAN_COMPLETE = 3, /**< Complete scanning*/
145 MEDIA_SVC_SCAN_MAX = 4, /**< Invalid status*/
146 } media_svc_scan_status_type_e;
148 #define MEDIA_SVC_DEFAULT_GPS_VALUE -200 /**< Default GPS Value*/
150 #endif /*_MEDIA_SVC_TYPES_H_*/