2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 #ifndef __TIZEN_CONTENT_MEDIA_INFO_H__
19 #define __TIZEN_CONTENT_MEDIA_INFO_H__
21 #include <media_content_type.h>
27 #endif /* __cplusplus */
31 * @brief This file contains the media info function and related functions to proceed with it. \n
32 * You can use the functions to insert, delete, count and get list of content files from media database. \n
33 * You can get properties of content file such as size, mime_type, modified_time etc. And you can set properties such as favorite etc. \n
34 * And you can get bookmark, face, tag info related the content file.
39 * @addtogroup CAPI_CONTENT_MEDIA_INFO_MODULE
44 * @brief Inserts the content file into the media database.
45 * @details In general, you can use this function to insert content files into the media database. \n
46 * You can use media_content_scan_file()/media_content_scan_folder() function instead of this function. \n
47 * If media information exists in the media database, this function returns information stored in the database.\n
48 * Since 5.5, if media information already exists in the media database,
49 * this function returns the updated latest information. (Media database will be updated if necessary).
51 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
54 * @privilege %http://tizen.org/privilege/content.write \n
55 * %http://tizen.org/privilege/mediastorage \n
56 * %http://tizen.org/privilege/externalstorage
58 * @remarks The @a info should be released using media_info_destroy(). \n
59 * You must add the privilege http://tizen.org/privilege/content.write. You need to add more privileges depending on your choice of contents path. \n
60 * If you want to access only internal storage by using this function, you should add privilege http://tizen.org/privilege/mediastorage. \n
61 * If you want to access only external storage by using this function, you should add privilege http://tizen.org/privilege/externalstorage. \n
62 * If you want to access storages of both types, you must add all privileges. \n
63 * Since 4.0, this function does not accept symbolic links. \n
64 * @remarks Since 4.0, this function is related to the following feature:\n
65 * %http://tizen.org/feature/content.scanning.others\n
66 * If this feature is not supported on the device, #MEDIA_CONTENT_TYPE_OTHERS type files are not scanned.
68 * @param[in] path The path of the content file to add
69 * @param[out] info The handle of the inserted content file
71 * @return @c 0 on success,
72 * otherwise a negative error value
74 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
75 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
76 * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
77 * @retval #MEDIA_CONTENT_ERROR_INVALID_OPERATION Invalid operation
78 * @retval #MEDIA_CONTENT_ERROR_DB_FAILED DB Operation failed
79 * @retval #MEDIA_CONTENT_ERROR_DB_BUSY DB Operation busy
80 * @retval #MEDIA_CONTENT_ERROR_NETWORK Network fail
81 * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
82 * @retval #MEDIA_CONTENT_ERROR_NOT_SUPPORTED Not supported
84 * @pre This function requires opened connection to content service by media_content_connect().
86 * @see media_content_connect()
87 * @see media_content_scan_file()
88 * @see media_content_scan_folder()
90 int media_info_insert_to_db(const char *path, media_info_h *info);
93 * @brief Inserts content files into the media database, asynchronously.
94 * @details This function can insert multiple content files into the media database.
96 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
99 * @privilege %http://tizen.org/privilege/content.write \n
100 * %http://tizen.org/privilege/mediastorage \n
101 * %http://tizen.org/privilege/externalstorage
103 * @remarks You must add privilege http://tizen.org/privilege/content.write. And You add more privilege depending on your choice of contents path. \n
104 * If you want to access only internal storage by using this function, you should add privilege http://tizen.org/privilege/mediastorage. \n
105 * Or if you want to access only external storage by using this function, you should add privilege http://tizen.org/privilege/externalstorage. \n
106 * If you can access both storage, you must add all privilege. \n
107 * Since 4.0, This function does not allow a symbolic link. \n
108 * @remarks Since 4.0, this function is related to the following feature:\n
109 * %http://tizen.org/feature/content.scanning.others\n
110 * If this feature is not supported on the device, MEDIA_CONTENT_TYPE_OTHERS type file is not scanned.
112 * @param[in] path_array The path array of the content files to add
113 * @param[in] array_length The length of the array
114 * @param[in] callback The callback function to be invoked when media items inserted completely
115 * @param[in] user_data The user data to be passed to the callback function
117 * @return @c 0 on success,
118 * otherwise a negative error value
120 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
121 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
122 * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
123 * @retval #MEDIA_CONTENT_ERROR_INVALID_OPERATION Invalid operation
124 * @retval #MEDIA_CONTENT_ERROR_DB_FAILED DB Operation failed
125 * @retval #MEDIA_CONTENT_ERROR_DB_BUSY DB Operation busy
126 * @retval #MEDIA_CONTENT_ERROR_NETWORK Network fail
127 * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
128 * @retval #MEDIA_CONTENT_ERROR_NOT_SUPPORTED Not supported
130 * @pre This function requires opened connection to content service by media_content_connect().
132 * @see media_content_connect()
133 * @see media_insert_completed_cb()
135 int media_info_insert_batch_to_db(const char **path_array, unsigned int array_length, media_insert_completed_cb callback, void *user_data);
138 * @deprecated Deprecated since 5.0. Use media_content_scan_file() instead.
139 * @brief Deletes the media information from the media database.
140 * @details This function only remove media information in the media database. \n
141 * You can use media_content_scan_file()/media_content_scan_folder() function instead of this function if a file is removed from the file system.
143 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
146 * @privilege %http://tizen.org/privilege/content.write
148 * @param[in] media_id The media ID. It can get from media info handle.
150 * @return @c 0 on success,
151 * otherwise a negative error value
153 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
154 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
155 * @retval #MEDIA_CONTENT_ERROR_INVALID_OPERATION Invalid operation
156 * @retval #MEDIA_CONTENT_ERROR_DB_FAILED DB Operation failed
157 * @retval #MEDIA_CONTENT_ERROR_DB_BUSY DB Operation busy
158 * @retval #MEDIA_CONTENT_ERROR_NETWORK Network fail
159 * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
161 * @pre This function requires opened connection to content service by media_content_connect().
163 * @see media_content_connect()
164 * @see media_content_scan_file()
165 * @see media_content_scan_folder()
167 int media_info_delete_from_db(const char *media_id) TIZEN_DEPRECATED_API;
171 * @brief Destroys media info.
172 * @details The function frees all resources related to the media info handle. This handle
173 * can no longer be used to perform any operations. New media info handle has to
174 * be created before the next usage.
176 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
178 * @param[in] media The handle to the media info
180 * @return @c 0 on success,
181 * otherwise a negative error value
183 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
184 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
186 * @pre Get copy of media_info handle by calling media_info_clone().
188 * @see media_info_clone()
190 int media_info_destroy(media_info_h media);
193 * @brief Clones the media info handle.
195 * @details This function copies the media info handle from a source to the destination.
196 * To use this handle outside of these foreach functions, use this function.
198 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
200 * @remarks The @a dst should be released using media_info_destroy().
202 * @param[out] dst The destination handle to the media info
203 * @param[in] src The source handle to the media info
205 * @return @c 0 on success,
206 * otherwise a negative error value
208 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
209 * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
210 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
212 * @see media_info_destroy()
213 * @see media_album_foreach_media_from_db()
214 * @see media_playlist_foreach_media_from_db()
215 * @see media_group_foreach_media_from_db()
216 * @see media_tag_foreach_media_from_db()
217 * @see media_info_foreach_media_from_db()
218 * @see media_info_insert_to_db()
219 * @see media_folder_foreach_media_from_db()
221 int media_info_clone(media_info_h *dst, media_info_h src);
224 * @brief Gets the count of media info for the passed @a filter from the media database.
225 * @details If @c NULL is passed to the @a filter, then no filtering is applied.
227 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
230 * @param[in] filter The handle to the media filter
231 * @param[out] media_count The count of media
233 * @return @c 0 on success,
234 * otherwise a negative error value
236 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
237 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
238 * @retval #MEDIA_CONTENT_ERROR_DB_FAILED DB Operation failed
239 * @retval #MEDIA_CONTENT_ERROR_DB_BUSY DB Operation busy
241 * @pre This function requires opened connection to content service by media_content_connect().
243 * @see media_content_connect()
244 * @see media_filter_create()
246 int media_info_get_media_count_from_db(filter_h filter, int *media_count);
249 * @brief Iterates through media info from the media database.
250 * @details This function gets all media info handles meeting the given @a filter.
251 * The @a callback function will be invoked for every retrieved media info.
252 * If @c NULL is passed to the @a filter, then no filtering is applied.
254 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
256 * @remarks Do not call updating DB function like media_info_update_to_db() in your callback function,
257 * your callback function is invoked as inline function.
258 * So, your callback function is in read state in SQLite. When you are in read state, sometimes you do not update DB.
259 * We do not recommend you call updating DB function in callback of foreach function.
261 * @param[in] filter The handle to the media filter
262 * @param[in] callback The callback function to be invoked
263 * @param[in] user_data The user data to be passed to the callback function
265 * @return @c 0 on success,
266 * otherwise a negative error value
268 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
269 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
270 * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
271 * @retval #MEDIA_CONTENT_ERROR_DB_FAILED DB Operation failed
272 * @retval #MEDIA_CONTENT_ERROR_DB_BUSY DB Operation busy
274 * @pre This function requires opened connection to content service by media_content_connect().
275 * @post This function invokes media_info_cb().
277 * @see media_content_connect()
278 * @see #media_info_cb
279 * @see media_filter_create()
281 int media_info_foreach_media_from_db(filter_h filter, media_info_cb callback, void *user_data);
284 * @brief Gets the count of media tags for the passed @a filter in the given @a media_id from the media database.
285 * @details If @c NULL is passed to the @a filter, then no filtering is applied.
287 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
289 * @param[in] media_id The media ID
290 * @param[in] filter The handle to the media filter
291 * @param[out] tag_count The count of the media tag
293 * @return @c 0 on success,
294 * otherwise a negative error value
296 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
297 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
298 * @retval #MEDIA_CONTENT_ERROR_DB_FAILED DB Operation failed
299 * @retval #MEDIA_CONTENT_ERROR_DB_BUSY DB Operation busy
301 * @pre This function requires opened connection to content service by media_content_connect().
303 * @see media_content_connect()
304 * @see media_filter_create()
306 int media_info_get_tag_count_from_db(const char *media_id, filter_h filter, int *tag_count);
309 * @brief Iterates through the media tag in the given media info from the media database.
310 * @details This function gets all the media tags associated with the given @a media_id and calls @a callback for every retrieved media tag. \n
311 * If @c NULL is passed to the @a filter, then no filtering is applied.
313 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
315 * @param[in] media_id The media ID
316 * @param[in] filter The handle to the media filter
317 * @param[in] callback The callback function to be invoked
318 * @param[in] user_data The user data to be passed to the callback function
320 * @return @c 0 on success,
321 * otherwise a negative error value
323 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
324 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
325 * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
326 * @retval #MEDIA_CONTENT_ERROR_DB_FAILED DB Operation failed
327 * @retval #MEDIA_CONTENT_ERROR_DB_BUSY DB Operation busy
329 * @pre This function requires opened connection to content service by media_content_connect().
330 * @post This function invokes media_tag_cb().
332 * @see media_content_connect()
334 * @see media_filter_create()
336 int media_info_foreach_tag_from_db(const char *media_id, filter_h filter, media_tag_cb callback, void *user_data);
339 * @brief Gets the number of bookmarks for the passed @a filter in the given media ID from the media database.
340 * @details If @c NULL is passed to the @a filter, then no filtering is applied.
342 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
344 * @param[in] media_id The media ID
345 * @param[in] filter The handle to the media filter
346 * @param[out] bookmark_count The count of the media tag
348 * @return @c 0 on success,
349 * otherwise a negative error value
351 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
352 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
353 * @retval #MEDIA_CONTENT_ERROR_DB_FAILED DB Operation failed
354 * @retval #MEDIA_CONTENT_ERROR_DB_BUSY DB Operation busy
356 * @pre This function requires opened connection to content service by media_content_connect().
358 * @see media_content_connect()
359 * @see media_filter_create()
361 int media_info_get_bookmark_count_from_db(const char *media_id, filter_h filter, int *bookmark_count);
364 * @brief Iterates through the media bookmark in the given media info from the media database.
365 * @details This function gets all media bookmarks associated with the given media and calls @a callback for every retrieved media bookmark.
366 * If @c NULL is passed to the @a filter, then no filtering is applied.
368 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
370 * @param[in] media_id The media ID
371 * @param[in] filter The handle to the media filter
372 * @param[in] callback The callback function to be invoked
373 * @param[in] user_data The user data to be passed to the callback function
375 * @return @c 0 on success,
376 * otherwise a negative error value
378 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
379 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
380 * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
381 * @retval #MEDIA_CONTENT_ERROR_DB_FAILED DB Operation failed
382 * @retval #MEDIA_CONTENT_ERROR_DB_BUSY DB Operation busy
384 * @pre This function requires opened connection to content service by media_content_connect().
385 * @post This function invokes media_bookmark_cb().
387 * @see media_content_connect()
388 * @see media_bookmark_cb()
389 * @see media_filter_create()
391 int media_info_foreach_bookmark_from_db(const char *media_id, filter_h filter, media_bookmark_cb callback, void *user_data);
394 * @brief Gets the number of face for the passed @a media_id from the media database.
395 * @details If @c NULL is passed to the @a filter, then no filtering is applied.
399 * @param[in] media_id The media ID
400 * @param[in] filter The handle to the media filter
401 * @param[out] face_count The count of media face
403 * @return 0 on success, otherwise a negative error value.
405 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
406 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
407 * @retval #MEDIA_CONTENT_ERROR_DB_FAILED DB operation failed
409 * @pre This function requires opened connection to content service by media_content_connect().
410 * @see media_content_connect()
411 * @see media_filter_create()
414 int media_info_get_face_count_from_db(const char *media_id, filter_h filter, int *face_count);
417 * @brief Iterates through the media files with optional @a filter in the given @a media_id from the media database.
418 * @details This function gets all media face info associated with the given media id and
419 * meeting desired filter option and calls @a callback for
420 * every retrieved media face info. If NULL is passed to the @a filter, no filtering is applied.
424 * @param[in] media_id The media ID
425 * @param[in] filter The handle to the media filter
426 * @param[in] callback The callback function to invoke
427 * @param[in] user_data The user data to be passed to the callback function
429 * @return 0 on success, otherwise a negative error value.
431 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
432 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
433 * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
435 * @pre This function requires opened connection to content service by media_content_connect().
436 * @see media_content_connect()
437 * @see media_filter_create()
440 int media_info_foreach_face_from_db(const char *media_id, filter_h filter, media_face_cb callback, void *user_data);
443 * @brief Gets the image metadata handle for a given media info.
444 * @details This function returns an image metadata handle retrieved from the media info.
446 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
448 * @remarks The @a image should be released using image_meta_destroy().
450 * @param[in] media The handle to the media info
451 * @param[out] image The handle to the image metadata
453 * @return @c 0 on success,
454 * otherwise a negative error value
456 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
457 * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
458 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
460 * @see image_meta_destroy()
462 int media_info_get_image(media_info_h media, image_meta_h *image);
465 * @brief Gets a video metadata handle for a given media info.
466 * @details This function returns a video metadata handle retrieved from the media info handle.
468 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
470 * @remarks The @a video should be released using video_meta_destroy().
472 * @param[in] media The handle to the media info
473 * @param[out] video The handle to the video metadata
475 * @return @c 0 on success,
476 * otherwise a negative error value
478 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
479 * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
480 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
482 * @see video_meta_destroy()
484 int media_info_get_video(media_info_h media, video_meta_h *video);
487 * @brief Gets an audio metadata handle for a given media info.
488 * @details This function returns an audio metadata handle retrieved from the media info handle.
490 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
492 * @remarks The @a audio should be released using audio_meta_destroy().
494 * @param[in] media The handle to the media info
495 * @param[out] audio The handle to the audio metadata
497 * @return @c 0 on success,
498 * otherwise a negative error value
500 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
501 * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
502 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
504 * @see audio_meta_destroy()
506 int media_info_get_audio(media_info_h media, audio_meta_h *audio);
509 * @brief Gets the media ID.
510 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
511 * @remarks The @a media_id should be released using free().
513 * @param[in] media The handle to the media info
514 * @param[out] media_id The media ID
516 * @return @c 0 on success,
517 * otherwise a negative error value
519 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
520 * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
521 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
523 int media_info_get_media_id(media_info_h media, char **media_id);
526 * @brief Gets the full path of the content file.
527 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
529 * @remarks The @a path should be released using free().
531 * @param[in] media The handle to the media info
532 * @param[out] path The full path of the content file
534 * @return @c 0 on success,
535 * otherwise a negative error value
537 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
538 * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
539 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
542 int media_info_get_file_path(media_info_h media, char **path);
545 * @brief Gets the file name including the extension of the content file.
546 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
548 * @remarks The @a name should be released using free().
550 * @param[in] media The handle to the media info
551 * @param[out] name The file name including the extension of the content file
553 * @return @c 0 on success,
554 * otherwise a negative error value
556 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
557 * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
558 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
560 int media_info_get_display_name(media_info_h media, char **name);
563 * @brief Gets the content type of the content file.
564 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
566 * @param[in] media The handle to the media info
567 * @param[out] type The content type of the content file (#media_content_type_e)
569 * @return @c 0 on success,
570 * otherwise a negative error value
572 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
573 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
575 * @see #media_content_type_e
577 int media_info_get_media_type(media_info_h media, media_content_type_e *type);
580 * @brief Gets the MIME type of the content file.
581 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
583 * @remarks The @a mime_type should be released using free().
585 * @param[in] media The handle to the media info
586 * @param[out] mime_type The MIME type of the content file
588 * @return @c 0 on success,
589 * otherwise a negative error value
591 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
592 * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
593 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
595 int media_info_get_mime_type(media_info_h media, char **mime_type);
598 * @brief Gets the content file size.
599 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
601 * @param[in] media The handle to the media info
602 * @param[out] size The content file size
604 * @return @c 0 on success,
605 * otherwise a negative error value
607 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
608 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
610 int media_info_get_size(media_info_h media, unsigned long long *size);
613 * @brief Gets the added time of the content file.
614 * @details The added time refers to the time that content file was first added to media database.
615 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
617 * @param[in] media The handle to the media info
618 * @param[out] added_time The added time to the media database
620 * @return @c 0 on success,
621 * otherwise a negative error value
623 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
624 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
626 int media_info_get_added_time(media_info_h media, time_t *added_time);
629 * @brief Gets the modified time of the content file.
630 * @details The modified time refers to the last modification time provided by the file system.
631 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
633 * @param[in] media The handle to the media info
634 * @param[out] time The last modification time of the content file
636 * @return @c 0 on success,
637 * otherwise a negative error value
639 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
640 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
642 int media_info_get_modified_time(media_info_h media, time_t *time);
645 * @brief Gets the timeline of content file.
646 * @details If the content file has the creation time information (like Content recorded date or Image creation date), that value is timeline. \n
647 * Otherwise, timeline value is the same as modified time.
648 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
650 * @param[in] media The handle to the media info
651 * @param[out] time The timeline of content file
653 * @return @c 0 on success,
654 * otherwise a negative error value
656 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
657 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
659 int media_info_get_timeline(media_info_h media, time_t *time);
662 * @brief Gets the thumbnail path of content file.
663 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
665 * @remarks The @a path should be released using free(). \n
666 * If the thumbnail extraction for the given media has not been requested yet, this function returns NULL. \n
667 * To create a thumbnail, you should use media_info_generate_thumbnail() function. \n
668 * This function returns an empty string if media_info_generate_thumbnail() has failed to create a thumbnail for the given media.
670 * @param[in] media The handle to the media info
671 * @param[out] path The thumbnail path
673 * @return @c 0 on success,
674 * otherwise a negative error value
676 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
677 * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
678 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
680 int media_info_get_thumbnail_path(media_info_h media, char **path);
683 * @brief Gets the description of content file.
684 * @details If the value is an empty string, the method returns "Unknown". \n
685 * Since 3.0, if the media info has no description, the method returns empty string.
686 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
688 * @remarks The @a description should be released using free().
690 * @param[in] media The handle to the media info
691 * @param[out] description The description of the content file
693 * @return @c 0 on success,
694 * otherwise a negative error value
696 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
697 * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
698 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
700 int media_info_get_description(media_info_h media, char **description);
703 * @brief Gets the longitude of content file.
704 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
706 * @param[in] media The handle to the media info
707 * @param[out] longitude The longitude of the content file
709 * @return @c 0 on success,
710 * otherwise a negative error value
712 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
713 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
715 int media_info_get_longitude(media_info_h media, double *longitude);
718 * @brief Gets the latitude of content file.
719 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
721 * @param[in] media The handle to the media info
722 * @param[out] latitude The latitude of the content file
724 * @return @c 0 on success,
725 * otherwise a negative error value
727 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
728 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
731 int media_info_get_latitude(media_info_h media, double* latitude);
734 * @brief Gets the altitude of content file.
735 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
737 * @param[in] media The handle to the media info
738 * @param[out] altitude The altitude of the content file
740 * @return @c 0 on success,
741 * otherwise a negative error value
743 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
744 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
746 int media_info_get_altitude(media_info_h media, double* altitude);
749 * @brief Gets the rating of content file.
750 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
752 * @param[in] media The handle to the media info
753 * @param[out] rating The rating of the content file
755 * @return @c 0 on success,
756 * otherwise a negative error value
758 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
759 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
761 int media_info_get_rating(media_info_h media, int *rating);
764 * @brief Gets the favorite status of content file which User set.
765 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
767 * @param[in] media The handle to the media info
768 * @param[out] favorite @c true if content file is set as favorite,
769 * otherwise @c false if content file is not set as favorite
771 * @return @c 0 on success,
772 * otherwise a negative error value
774 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
775 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
777 * @see media_info_set_favorite()
779 int media_info_get_favorite(media_info_h media, bool* favorite);
782 * @brief Gets the title of content file.
783 * @details If the content file does not have a title, this method returns the filename without the extension.
785 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
787 * @remarks The @a title should be released using free().
789 * @param[in] media The handle to the media info
790 * @param[out] title The title of the content file
792 * @return @c 0 on success,
793 * otherwise a negative error value
795 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
796 * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
797 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
799 int media_info_get_title(media_info_h media, char **title);
802 * @deprecated Deprecated since 5.0.
803 * @brief Gets the storage id of content file.
804 * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
806 * @remarks The @a storage_id should be released using free().
808 * @param[in] media The handle to the media info
809 * @param[out] storage_id The ID of the media storage
811 * @return @c 0 on success,
812 * otherwise a negative error value
814 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
815 * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
816 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
818 int media_info_get_storage_id(media_info_h media, char **storage_id) TIZEN_DEPRECATED_API;
821 * @brief Checks whether the media is protected via DRM.
822 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
824 * @param[in] media The handle to the media info
825 * @param[out] is_drm @c true if media is DRM media,
826 * otherwise @c false if media is not DRM media
828 * @return @c 0 on success,
829 * otherwise a negative error value
831 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
832 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
834 int media_info_is_drm(media_info_h media, bool *is_drm);
837 * @brief Checks whether the content file is 360 content.
840 * @param[in] media The handle to the media info
841 * @param[out] is_360 @c true if media is 360 content,
842 * otherwise @c false if media is not 360 content
844 * @return @c 0 on success,
845 * otherwise a negative error value
847 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
848 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
850 int media_info_is_360_content(media_info_h media, bool *is_360);
853 * @deprecated Deprecated since 5.0. Use storage_get_type_dev() instead.
854 * @brief Gets the storage type of content file.
855 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
857 * @param[in] media The handle to the media info
858 * @param[out] storage_type The storage type of the content file
860 * @return @c 0 on success,
861 * otherwise a negative error value
863 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
864 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
866 int media_info_get_storage_type(media_info_h media, media_content_storage_e *storage_type) TIZEN_DEPRECATED_API;
869 * @brief Gets the media info from the media database.
871 * @details This function creates a new media handle from the media database by the given @a media_id.
872 * Media info will be created and filled with information.
874 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
876 * @remarks The @a media should be released using media_info_destroy().
878 * @param[in] media_id The media ID
879 * @param[out] media The handle to the media info
881 * @return @c 0 on success,
882 * otherwise a negative error value
884 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
885 * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
886 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
887 * @retval #MEDIA_CONTENT_ERROR_DB_FAILED DB Operation failed
888 * @retval #MEDIA_CONTENT_ERROR_DB_BUSY DB Operation busy
890 * @pre This function requires opened connection to content service by media_content_connect().
892 * @see media_content_connect()
893 * @see media_info_destroy()
895 int media_info_get_media_from_db(const char *media_id, media_info_h *media);
898 * @brief Sets the favorite of media info.
899 * @details This function can mark favorite of the media. If set to @c true, this function record the time of the change moment. \n
900 * So, If you use it in order parameter, you can sort the order of the time was a favorite. \n
901 * Or, if you use it in condition parameter, you can get the result of the favorite media.
903 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
905 * @param[in] media The handle to the media info
906 * @param[in] favorite Set @c true to set the media info as favorite,
907 * otherwise set @c false to not set the media info as favorite
909 * @return @c 0 on success,
910 * otherwise a negative error value
912 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
913 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
915 int media_info_set_favorite(media_info_h media, bool favorite);
918 * @brief Updates the media info to the media database.
920 * @details The function updates the given media info in the media database.
922 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
924 * @privilege %http://tizen.org/privilege/content.write
926 * @remarks The function should be called after any change in media, to be updated to the media
927 * database. For example, after using media_info_set_favorite()
928 * for setting the name of the media, the media_info_update_to_db() function should be called so as to update
929 * the given media info attributes in the media database.
931 * @param[in] media The handle to the media info
933 * @return @c 0 on success,
934 * otherwise a negative error value
936 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
937 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
938 * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
939 * @retval #MEDIA_CONTENT_ERROR_INVALID_OPERATION Invalid operation
940 * @retval #MEDIA_CONTENT_ERROR_DB_FAILED DB Operation failed
941 * @retval #MEDIA_CONTENT_ERROR_DB_BUSY DB Operation busy
942 * @retval #MEDIA_CONTENT_ERROR_NETWORK Network fail
943 * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
945 * @pre This function requires opened connection to content service by media_content_connect().
947 * @see media_content_connect()
948 * @see media_info_set_favorite()
950 int media_info_update_to_db(media_info_h media);
953 * @brief Moves the media info to the given destination path in the media database.
954 * @details After moving or renaming a file in the filesystem, call this function to update the database. \n
955 * If the source path and destination path are the same, then this function does nothing.
956 * If you want to refresh media information, you should use media_content_scan_file() function.
958 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
961 * @privilege %http://tizen.org/privilege/content.write \n
962 * %http://tizen.org/privilege/mediastorage \n
963 * %http://tizen.org/privilege/externalstorage
965 * @remarks You must add privilege http://tizen.org/privilege/content.write. And You add more privilege depending on your choice of contents path. \n
966 * If you want to access only internal storage by using this function, you should add privilege http://tizen.org/privilege/mediastorage. \n
967 * Or if you want to access only external storage by using this function, you should add privilege http://tizen.org/privilege/externalstorage. \n
968 * If you can access both storage, you should add all privilege. \n
969 * Since 4.0, this function does not allow symbolic links. \n
970 * This function does not support USB storage before 5.0. Since 5.0, USB storage is supported. \n
971 * Since 5.0, the thumbnail is removed if it exists.
973 * @param[in] media The handle to the media info
974 * @param[in] dst_path The path of destination
976 * @return @c 0 on success,
977 * otherwise a negative error value
979 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
980 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter (Especially, if the request is duplicated, this error returns.)
981 * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
982 * @retval #MEDIA_CONTENT_ERROR_INVALID_OPERATION Invalid operation
983 * @retval #MEDIA_CONTENT_ERROR_DB_FAILED DB Operation failed
984 * @retval #MEDIA_CONTENT_ERROR_DB_BUSY DB Operation busy
985 * @retval #MEDIA_CONTENT_ERROR_NETWORK Network fail
986 * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
988 * @pre This function requires opened connection to content service by media_content_connect().
990 * @see media_content_connect()
991 * @see media_content_scan_folder()
992 * @see media_info_generate_thumbnail()
994 int media_info_move_to_db(media_info_h media, const char* dst_path);
997 * @deprecated Deprecated since 5.0. Use media_info_generate_thumbnail() instead.
998 * @brief Creates a thumbnail file for the given media, asynchronously.
999 * @details This function creates an thumbnail file for given media item and calls @a callback for completion of creating the thumbnail.
1000 * If a thumbnail already exists for the given media, then the path of thumbnail will be returned in callback function. \n
1001 * Since 3.0, a thumbnail is not automatically extracted during media scanning. \n
1002 * Therefore, if there exists no thumbnail for the given media, you MUST call this function to create a thumbnail.
1004 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1007 * @privilege %http://tizen.org/privilege/content.write \n
1008 * %http://tizen.org/privilege/mediastorage \n
1009 * %http://tizen.org/privilege/externalstorage
1011 * @remarks If you want to destroy media handle before callback invoked, you must cancel thumbnail request by using media_info_cancel_thumbnail() \n
1012 * Since 3.0, if creation of a thumbnail is failed, empty string will be passed through media_thumbnail_completed_cb().
1013 * Items in external storage except MMC not supported.
1015 * @param[in] media The handle to the media info
1016 * @param[in] callback The callback function to be invoked
1017 * @param[in] user_data The user data to be passed to the callback function
1019 * @return @c 0 on success,
1020 * otherwise a negative error value
1022 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
1023 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
1024 * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
1025 * @retval #MEDIA_CONTENT_ERROR_INVALID_OPERATION Invalid operation
1026 * @retval #MEDIA_CONTENT_ERROR_DB_FAILED DB Operation failed
1027 * @retval #MEDIA_CONTENT_ERROR_DB_BUSY DB Operation busy
1028 * @retval #MEDIA_CONTENT_ERROR_NETWORK Network fail
1029 * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
1031 * @pre This function requires opened connection to content service by media_content_connect().
1033 * @see media_content_connect()
1035 int media_info_create_thumbnail(media_info_h media, media_thumbnail_completed_cb callback, void *user_data) TIZEN_DEPRECATED_API;
1038 * @deprecated Deprecated since 5.0.
1039 * @brief Cancels the creation of thumbnail file for the given media.
1040 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1043 * @privilege %http://tizen.org/privilege/content.write
1045 * @remarks If you request cancel for the already thumbnail created media, this function returns #MEDIA_CONTENT_ERROR_INVALID_OPERATION
1047 * @param[in] media The handle to the media info
1049 * @return @c 0 on success,
1050 * otherwise a negative error value
1052 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
1053 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
1054 * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
1055 * @retval #MEDIA_CONTENT_ERROR_INVALID_OPERATION Invalid operation
1057 * @pre This function requires opened connection to content service by media_content_connect().
1058 * @see media_content_connect()
1060 int media_info_cancel_thumbnail(media_info_h media) TIZEN_DEPRECATED_API;
1063 * @brief Generates a thumbnail file for the given media, synchronously.
1068 * @privilege %http://tizen.org/privilege/content.write
1070 * @remarks http://tizen.org/privilege/mediastorage is needed if input or output path are relevant to media storage. \n
1071 * http://tizen.org/privilege/externalstorage is needed if input or output path are relevant to external storage. \n
1072 * Items in external storage are not supported, with the exception of MMC.
1074 * @param[in] media The handle to the media info
1076 * @return @c 0 on success,
1077 * otherwise a negative error value
1079 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
1080 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
1081 * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
1082 * @retval #MEDIA_CONTENT_ERROR_INVALID_OPERATION Invalid operation
1083 * @retval #MEDIA_CONTENT_ERROR_DB_FAILED DB Operation failed
1084 * @retval #MEDIA_CONTENT_ERROR_DB_BUSY DB Operation busy
1085 * @retval #MEDIA_CONTENT_ERROR_NETWORK Network fail
1086 * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
1088 * @pre This function requires opened connection to content service by media_content_connect().
1090 * @see media_content_connect()
1091 * @see media_info_get_thumbnail_path()
1093 int media_info_generate_thumbnail(media_info_h media);
1096 * @ingroup CAPI_CONTENT_MEDIA_FACE_DETECTION_MODULE
1097 * @brief Starts face detection for the given image, asynchronously.
1098 * @details This function detects faces for given image item and calls the given callback function when the detection is completed. \n
1099 * The given callback function is called when the detection is completed. \n
1100 * To obtain the detected faces, call the media_info_foreach_face_from_db() function. \n
1101 * Supported image formats are jpg, png, and bmp.
1106 * @privilege %http://tizen.org/privilege/content.write \n
1107 * %http://tizen.org/privilege/mediastorage \n
1108 * %http://tizen.org/privilege/externalstorage
1110 * @remarks If you want to destroy the media handle before the callback invoked, you must cancel the face detection request using media_info_cancel_face_detection(). \n
1111 * If the face detection fails, the @a face_count argument in media_face_detection_completed_cb() will be set to 0. \n
1112 * The face detection of media items in external storage except MMC is not supported. \n
1113 * Since 5.5, if the format of media data is unsupported, this function returns an error and the callback will not be invoked.
1115 * @param[in] media The handle to the media info
1116 * @param[in] callback The callback function to be invoked when detection is completed
1117 * @param[in] user_data The user data to be passed to the callback function
1119 * @return @c 0 on success,
1120 * otherwise a negative error value
1122 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
1123 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
1124 * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
1125 * @retval #MEDIA_CONTENT_ERROR_INVALID_OPERATION Invalid operation
1126 * @retval #MEDIA_CONTENT_ERROR_DB_FAILED DB Operation failed
1127 * @retval #MEDIA_CONTENT_ERROR_DB_BUSY DB Operation busy
1128 * @retval #MEDIA_CONTENT_ERROR_NETWORK Network fail
1129 * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
1130 * @retval #MEDIA_CONTENT_ERROR_NOT_SUPPORTED Not supported
1132 * @pre This function requires opened connection to content service by media_content_connect().
1134 * @see media_content_connect()
1135 * @see media_info_cancel_face_detection()
1137 int media_info_start_face_detection(media_info_h media, media_face_detection_completed_cb callback, void *user_data);
1140 * @ingroup CAPI_CONTENT_MEDIA_FACE_DETECTION_MODULE
1141 * @brief Cancels face detection of image for the given media.
1142 * @details This function cancels face detection for given media item. \n
1143 * If you cancel face detection request before callback is invoked, the callback registered by media_info_start_face_detection() function will not be invoked.
1148 * @privilege %http://tizen.org/privilege/content.write
1150 * @remarks If face detection is already done when you request the cancellation, this function returns #MEDIA_CONTENT_ERROR_INVALID_OPERATION
1152 * @param[in] media The handle to the media info
1154 * @return @c 0 on success,
1155 * otherwise a negative error value
1157 * @retval #MEDIA_CONTENT_ERROR_NONE Successful
1158 * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
1159 * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
1160 * @retval #MEDIA_CONTENT_ERROR_INVALID_OPERATION Invalid operation
1162 * @pre This function requires opened connection to content service by media_content_connect().
1164 * @see media_content_connect()
1165 * @see media_info_start_face_detection()
1167 int media_info_cancel_face_detection(media_info_h media);
1175 #endif /* __cplusplus */
1177 #endif /* __TIZEN_CONTENT_MEDIA_INFO_H__ */