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