summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdoc/media_content_doc.h4
-rwxr-xr-xinclude/media_content_type.h6
-rwxr-xr-xinclude/media_face.h48
-rwxr-xr-xinclude/media_image.h12
-rwxr-xr-xinclude/media_info.h12
-rwxr-xr-xinclude_product/media_content_type.h5
-rwxr-xr-xinclude_product/media_face.h48
-rwxr-xr-xinclude_product/media_image.h12
-rwxr-xr-xinclude_product/media_info.h12
-rwxr-xr-xsrc/media_face.c16
-rwxr-xr-xsrc/media_image.c4
-rw-r--r--src/media_info.c4
12 files changed, 132 insertions, 51 deletions
diff --git a/doc/media_content_doc.h b/doc/media_content_doc.h
index 045e816..9e5b103 100755
--- a/doc/media_content_doc.h
+++ b/doc/media_content_doc.h
@@ -800,7 +800,7 @@
*/
/**
- * @defgroup CAPI_CONTENT_MEDIA_FACE_DETECTION_MODULE Face Detection
+ * @defgroup CAPI_CONTENT_MEDIA_FACE_DETECTION_MODULE Face Detection(Deprecated)
* @brief The Face Detection API provides functions to detect face information about stored image files.
*
* @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
@@ -1029,7 +1029,7 @@
*/
/**
- * @defgroup CAPI_CONTENT_MEDIA_FACE_MODULE Media Face
+ * @defgroup CAPI_CONTENT_MEDIA_FACE_MODULE Media Face(Deprecated)
* @brief The Media Face Information API provides functions to manage the face information in the image files.
*
* @ingroup CAPI_MEDIA_CONTENT_MODULE
diff --git a/include/media_content_type.h b/include/media_content_type.h
index fa99901..204b80c 100755
--- a/include/media_content_type.h
+++ b/include/media_content_type.h
@@ -250,6 +250,7 @@ typedef struct book_meta_s *book_meta_h;
typedef struct filter_s *filter_h;
/**
+ * @deprecated Deprecated since 8.0.
* @ingroup CAPI_CONTENT_MEDIA_FACE_MODULE
* @brief The structure type for the Media face handle.
* @since_tizen 3.0
@@ -373,8 +374,8 @@ typedef bool (*media_info_cb)(media_info_h media, void *user_data);
*/
typedef void (*media_insert_completed_cb)(media_content_error_e error, void * user_data);
-
/**
+ * @deprecated Deprecated since 8.0.
* @ingroup CAPI_CONTENT_MEDIA_FACE_DETECTION_MODULE
* @brief Called when face detection on the image is completed.
*
@@ -559,6 +560,7 @@ typedef bool (*media_album_cb)(media_album_h album, void *user_data);
typedef bool (*media_group_cb)(const char *group_name, void *user_data);
/**
+ * @deprecated Deprecated since 8.0.
* @ingroup CAPI_CONTENT_MEDIA_FACE_MODULE
* @brief Called for every face in the obtained list of face.
* @details Iterates over a media face list.
@@ -1012,6 +1014,7 @@ typedef bool (*media_face_cb)(media_face_h face, void *user_data);
#define BOOKMARK_NAME "BOOKMARK_NAME"
/**
+ * @deprecated Deprecated since 8.0.
* @brief Face tag.
* @details You can use above define to set the condition of face filter and order keyword.
* @since_tizen 3.0
@@ -1019,6 +1022,7 @@ typedef bool (*media_face_cb)(media_face_h face, void *user_data);
#define MEDIA_FACE_TAG "MEDIA_FACE_TAG"
/**
+ * @deprecated Deprecated since 8.0.
* @brief Face id.
* @details You can use above define to set the condition of face filter and order keyword.
* @since_tizen 4.0
diff --git a/include/media_face.h b/include/media_face.h
index ff93d86..4c5f78e 100755
--- a/include/media_face.h
+++ b/include/media_face.h
@@ -37,6 +37,7 @@ extern "C" {
*/
/**
+ * @deprecated Deprecated since 8.0.
* @brief Clones the media face handle.
* @details This function copies the media face handle from a source to
* destination. There is no media_face_create() function. The media_face_h is created internally and available through
@@ -58,9 +59,10 @@ extern "C" {
* @see media_face_destroy()
* @see media_face_foreach_face_from_db()
*/
-int media_face_clone(media_face_h *dst, media_face_h src);
+int media_face_clone(media_face_h *dst, media_face_h src) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Destroys the media face handle.
* @details Function frees all resources related to media face handle. This
* handle no longer can be used to perform any operations. New handle has to
@@ -79,9 +81,10 @@ int media_face_clone(media_face_h *dst, media_face_h src);
*
* @see media_face_clone()
*/
-int media_face_destroy(media_face_h face);
+int media_face_destroy(media_face_h face) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Gets the face id from the media face handle.
*
* @since_tizen 3.0
@@ -96,9 +99,10 @@ int media_face_destroy(media_face_h face);
* @retval #MEDIA_CONTENT_ERROR_NONE Successful
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
*/
-int media_face_get_face_id(media_face_h face, char **face_id);
+int media_face_get_face_id(media_face_h face, char **face_id) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Gets the media id from the media face handle.
*
* @since_tizen 3.0
@@ -113,9 +117,10 @@ int media_face_get_face_id(media_face_h face, char **face_id);
* @retval #MEDIA_CONTENT_ERROR_NONE Successful
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
*/
-int media_face_get_media_id(media_face_h face, char **media_id);
+int media_face_get_media_id(media_face_h face, char **media_id) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Gets the face's rectangle from the media face handle.
* @details This function can get the face's rectangle information. returned rectangle information includes the orientation value.
*
@@ -131,9 +136,10 @@ int media_face_get_media_id(media_face_h face, char **media_id);
* @retval #MEDIA_CONTENT_ERROR_NONE Successful
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
*/
-int media_face_get_face_rect(media_face_h face, unsigned int *rect_x, unsigned int *rect_y, unsigned int *rect_w, unsigned int *rect_h);
+int media_face_get_face_rect(media_face_h face, unsigned int *rect_x, unsigned int *rect_y, unsigned int *rect_w, unsigned int *rect_h) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Gets the orientation from the media face handle.
* @details This function can get the orientation value from the original image.
*
@@ -146,9 +152,10 @@ int media_face_get_face_rect(media_face_h face, unsigned int *rect_x, unsigned i
* @retval #MEDIA_CONTENT_ERROR_NONE Successful
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
*/
-int media_face_get_orientation(media_face_h face, media_content_orientation_e *orientation);
+int media_face_get_orientation(media_face_h face, media_content_orientation_e *orientation) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Gets the tag from the media face handle.
*
* @since_tizen 3.0
@@ -162,9 +169,10 @@ int media_face_get_orientation(media_face_h face, media_content_orientation_e *o
* @retval #MEDIA_CONTENT_ERROR_NONE Successful
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
*/
-int media_face_get_tag(media_face_h face, char **tag);
+int media_face_get_tag(media_face_h face, char **tag) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Creates the media face handle.
*
* @since_tizen 3.0
@@ -181,9 +189,10 @@ int media_face_get_tag(media_face_h face, char **tag);
*
* @see media_face_destroy()
*/
-int media_face_create(const char *media_id, media_face_h *face);
+int media_face_create(const char *media_id, media_face_h *face) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Sets the face rectangle of the media face handle.
*
* @since_tizen 3.0
@@ -202,9 +211,10 @@ int media_face_create(const char *media_id, media_face_h *face);
* @post media_face_update_to_db()
*
*/
-int media_face_set_face_rect(media_face_h face, unsigned int rect_x, unsigned int rect_y, unsigned int rect_w, unsigned int rect_h);
+int media_face_set_face_rect(media_face_h face, unsigned int rect_x, unsigned int rect_y, unsigned int rect_w, unsigned int rect_h) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Sets the orientation of the media face handle.
* @details This function may set the value of the original image orientation.
*
@@ -221,9 +231,10 @@ int media_face_set_face_rect(media_face_h face, unsigned int rect_x, unsigned in
* @post media_face_update_to_db()
*
*/
-int media_face_set_orientation(media_face_h face, media_content_orientation_e orientation);
+int media_face_set_orientation(media_face_h face, media_content_orientation_e orientation) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Sets the tag of the media face handle.
*
* @since_tizen 3.0
@@ -239,9 +250,10 @@ int media_face_set_orientation(media_face_h face, media_content_orientation_e or
* @post media_face_insert_to_db()
* @post media_face_update_to_db()
*/
-int media_face_set_tag(media_face_h face, const char *tag);
+int media_face_set_tag(media_face_h face, const char *tag) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Inserts a new face in the media database.
* @since_tizen 3.0
*
@@ -269,9 +281,10 @@ int media_face_set_tag(media_face_h face, const char *tag);
* @see media_face_set_orientation()
* @see media_face_set_tag()
*/
-int media_face_insert_to_db(media_face_h face);
+int media_face_insert_to_db(media_face_h face) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Updates the face details to the media database.
*
* @details The function updates the given media face in the media database. The function should be called after any change in face, to be updated to the media
@@ -303,9 +316,10 @@ int media_face_insert_to_db(media_face_h face);
* @see media_face_set_tag()
*
*/
-int media_face_update_to_db(media_face_h face);
+int media_face_update_to_db(media_face_h face) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Deletes the face with given face id from the media database.
*
* @since_tizen 3.0
@@ -328,9 +342,10 @@ int media_face_update_to_db(media_face_h face);
* @see media_content_connect()
*
*/
-int media_face_delete_from_db(const char *face_id);
+int media_face_delete_from_db(const char *face_id) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Gets the number of media faces with an optional filter from the media database.
* @since_tizen 4.0
*
@@ -350,9 +365,10 @@ int media_face_delete_from_db(const char *face_id);
* @see media_content_connect()
* @see media_filter_create()
*/
-int media_face_get_face_count_from_db(filter_h filter, int *face_count);
+int media_face_get_face_count_from_db(filter_h filter, int *face_count) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Iterates through the faces with an optional filter from the media database.
* @details This function gets all faces associated with the given filter and calls @a callback for every retrieved media face.
* If @c NULL is passed to the @a filter, then no filtering is applied.
@@ -378,7 +394,7 @@ int media_face_get_face_count_from_db(filter_h filter, int *face_count);
* @see media_face_cb()
* @see media_filter_create()
*/
-int media_face_foreach_face_from_db(filter_h filter, media_face_cb callback, void *user_data);
+int media_face_foreach_face_from_db(filter_h filter, media_face_cb callback, void *user_data) TIZEN_DEPRECATED_API;
/**
* @}
diff --git a/include/media_image.h b/include/media_image.h
index 3dd6221..49c262f 100755
--- a/include/media_image.h
+++ b/include/media_image.h
@@ -163,6 +163,7 @@ int image_meta_get_orientation(image_meta_h image, media_content_orientation_e *
int image_meta_get_date_taken(image_meta_h image, char **date_taken);
/**
+ * @deprecated Deprecated since 8.0.
* @brief Gets the exposure time from EXIF.
* @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
*
@@ -179,9 +180,10 @@ int image_meta_get_date_taken(image_meta_h image, char **date_taken);
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
*
*/
-int image_meta_get_exposure_time(image_meta_h image, char **exposure_time);
+int image_meta_get_exposure_time(image_meta_h image, char **exposure_time) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Gets the fnumber from EXIF.
* @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
*
@@ -195,9 +197,10 @@ int image_meta_get_exposure_time(image_meta_h image, char **exposure_time);
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
*
*/
-int image_meta_get_fnumber(image_meta_h image, double *fnumber);
+int image_meta_get_fnumber(image_meta_h image, double *fnumber) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Gets the iso from EXIF.
* @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
*
@@ -211,9 +214,10 @@ int image_meta_get_fnumber(image_meta_h image, double *fnumber);
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
*
*/
-int image_meta_get_iso(image_meta_h image, int *iso);
+int image_meta_get_iso(image_meta_h image, int *iso) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Gets the model from EXIF.
* @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
*
@@ -230,7 +234,7 @@ int image_meta_get_iso(image_meta_h image, int *iso);
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
*
*/
-int image_meta_get_model(image_meta_h image, char **model);
+int image_meta_get_model(image_meta_h image, char **model) TIZEN_DEPRECATED_API;
/**
* @}
diff --git a/include/media_info.h b/include/media_info.h
index 29d60c1..d91c101 100755
--- a/include/media_info.h
+++ b/include/media_info.h
@@ -358,6 +358,7 @@ int media_info_get_bookmark_count_from_db(const char *media_id, filter_h filter,
int media_info_foreach_bookmark_from_db(const char *media_id, filter_h filter, media_bookmark_cb callback, void *user_data);
/**
+ * @deprecated Deprecated since 8.0.
* @brief Gets the number of face for the passed @a media_id from the media database.
* @details If @c NULL is passed to the @a filter, then no filtering is applied.
*
@@ -378,9 +379,10 @@ int media_info_foreach_bookmark_from_db(const char *media_id, filter_h filter, m
* @see media_filter_create()
*
*/
-int media_info_get_face_count_from_db(const char *media_id, filter_h filter, int *face_count);
+int media_info_get_face_count_from_db(const char *media_id, filter_h filter, int *face_count) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Iterates through the media files with optional @a filter in the given @a media_id from the media database.
* @details This function gets all media face info associated with the given media id and
* meeting desired filter option and calls @a callback for
@@ -404,7 +406,7 @@ int media_info_get_face_count_from_db(const char *media_id, filter_h filter, int
* @see media_filter_create()
*
*/
-int media_info_foreach_face_from_db(const char *media_id, filter_h filter, media_face_cb callback, void *user_data);
+int media_info_foreach_face_from_db(const char *media_id, filter_h filter, media_face_cb callback, void *user_data) TIZEN_DEPRECATED_API;
/**
* @brief Gets the image metadata handle for a given media info.
@@ -1015,6 +1017,7 @@ int media_info_move_to_db(media_info_h media, const char* dst_path);
int media_info_generate_thumbnail(media_info_h media);
/**
+ * @deprecated Deprecated since 8.0.
* @ingroup CAPI_CONTENT_MEDIA_FACE_DETECTION_MODULE
* @brief Starts face detection for the given image, asynchronously.
* @details This function detects faces for given image item and calls the given callback function when the detection is completed. \n
@@ -1056,9 +1059,10 @@ int media_info_generate_thumbnail(media_info_h media);
* @see media_content_connect()
* @see media_info_cancel_face_detection()
*/
-int media_info_start_face_detection(media_info_h media, media_face_detection_completed_cb callback, void *user_data);
+int media_info_start_face_detection(media_info_h media, media_face_detection_completed_cb callback, void *user_data) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @ingroup CAPI_CONTENT_MEDIA_FACE_DETECTION_MODULE
* @brief Cancels face detection of image for the given media.
* @details This function cancels face detection for given media item. \n
@@ -1086,7 +1090,7 @@ int media_info_start_face_detection(media_info_h media, media_face_detection_com
* @see media_content_connect()
* @see media_info_start_face_detection()
*/
-int media_info_cancel_face_detection(media_info_h media);
+int media_info_cancel_face_detection(media_info_h media) TIZEN_DEPRECATED_API;
/**
* @}
diff --git a/include_product/media_content_type.h b/include_product/media_content_type.h
index 39dbed3..0c98464 100755
--- a/include_product/media_content_type.h
+++ b/include_product/media_content_type.h
@@ -324,6 +324,7 @@ typedef struct book_meta_s *book_meta_h;
typedef struct filter_s *filter_h;
/**
+ * @deprecated Deprecated since 8.0.
* @ingroup CAPI_CONTENT_MEDIA_FACE_MODULE
* @brief The structure type for the Media face handle.
* @since_tizen 3.0
@@ -448,6 +449,7 @@ typedef bool (*media_info_cb)(media_info_h media, void *user_data);
typedef void (*media_insert_completed_cb)(media_content_error_e error, void * user_data);
/**
+ * @deprecated Deprecated since 8.0.
* @ingroup CAPI_CONTENT_MEDIA_FACE_DETECTION_MODULE
* @brief Called when face detection on the image is completed.
*
@@ -653,6 +655,7 @@ typedef bool (*media_group_cb)(const char *group_name, void *user_data);
typedef bool (*media_storage_cb)(media_storage_h storage, void *user_data);
/**
+ * @deprecated Deprecated since 8.0.
* @ingroup CAPI_CONTENT_MEDIA_FACE_MODULE
* @brief Called for every face in the obtained list of face.
* @details Iterates over a media face list.
@@ -1106,6 +1109,7 @@ typedef bool (*media_face_cb)(media_face_h face, void *user_data);
#define BOOKMARK_NAME "BOOKMARK_NAME"
/**
+ * @deprecated Deprecated since 8.0.
* @brief Face tag.
* @details You can use above define to set the condition of face filter and order keyword.
* @since_tizen 3.0
@@ -1113,6 +1117,7 @@ typedef bool (*media_face_cb)(media_face_h face, void *user_data);
#define MEDIA_FACE_TAG "MEDIA_FACE_TAG"
/**
+ * @deprecated Deprecated since 8.0.
* @brief Face id.
* @details You can use above define to set the condition of face filter and order keyword.
* @since_tizen 4.0
diff --git a/include_product/media_face.h b/include_product/media_face.h
index ff93d86..4c5f78e 100755
--- a/include_product/media_face.h
+++ b/include_product/media_face.h
@@ -37,6 +37,7 @@ extern "C" {
*/
/**
+ * @deprecated Deprecated since 8.0.
* @brief Clones the media face handle.
* @details This function copies the media face handle from a source to
* destination. There is no media_face_create() function. The media_face_h is created internally and available through
@@ -58,9 +59,10 @@ extern "C" {
* @see media_face_destroy()
* @see media_face_foreach_face_from_db()
*/
-int media_face_clone(media_face_h *dst, media_face_h src);
+int media_face_clone(media_face_h *dst, media_face_h src) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Destroys the media face handle.
* @details Function frees all resources related to media face handle. This
* handle no longer can be used to perform any operations. New handle has to
@@ -79,9 +81,10 @@ int media_face_clone(media_face_h *dst, media_face_h src);
*
* @see media_face_clone()
*/
-int media_face_destroy(media_face_h face);
+int media_face_destroy(media_face_h face) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Gets the face id from the media face handle.
*
* @since_tizen 3.0
@@ -96,9 +99,10 @@ int media_face_destroy(media_face_h face);
* @retval #MEDIA_CONTENT_ERROR_NONE Successful
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
*/
-int media_face_get_face_id(media_face_h face, char **face_id);
+int media_face_get_face_id(media_face_h face, char **face_id) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Gets the media id from the media face handle.
*
* @since_tizen 3.0
@@ -113,9 +117,10 @@ int media_face_get_face_id(media_face_h face, char **face_id);
* @retval #MEDIA_CONTENT_ERROR_NONE Successful
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
*/
-int media_face_get_media_id(media_face_h face, char **media_id);
+int media_face_get_media_id(media_face_h face, char **media_id) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Gets the face's rectangle from the media face handle.
* @details This function can get the face's rectangle information. returned rectangle information includes the orientation value.
*
@@ -131,9 +136,10 @@ int media_face_get_media_id(media_face_h face, char **media_id);
* @retval #MEDIA_CONTENT_ERROR_NONE Successful
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
*/
-int media_face_get_face_rect(media_face_h face, unsigned int *rect_x, unsigned int *rect_y, unsigned int *rect_w, unsigned int *rect_h);
+int media_face_get_face_rect(media_face_h face, unsigned int *rect_x, unsigned int *rect_y, unsigned int *rect_w, unsigned int *rect_h) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Gets the orientation from the media face handle.
* @details This function can get the orientation value from the original image.
*
@@ -146,9 +152,10 @@ int media_face_get_face_rect(media_face_h face, unsigned int *rect_x, unsigned i
* @retval #MEDIA_CONTENT_ERROR_NONE Successful
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
*/
-int media_face_get_orientation(media_face_h face, media_content_orientation_e *orientation);
+int media_face_get_orientation(media_face_h face, media_content_orientation_e *orientation) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Gets the tag from the media face handle.
*
* @since_tizen 3.0
@@ -162,9 +169,10 @@ int media_face_get_orientation(media_face_h face, media_content_orientation_e *o
* @retval #MEDIA_CONTENT_ERROR_NONE Successful
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
*/
-int media_face_get_tag(media_face_h face, char **tag);
+int media_face_get_tag(media_face_h face, char **tag) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Creates the media face handle.
*
* @since_tizen 3.0
@@ -181,9 +189,10 @@ int media_face_get_tag(media_face_h face, char **tag);
*
* @see media_face_destroy()
*/
-int media_face_create(const char *media_id, media_face_h *face);
+int media_face_create(const char *media_id, media_face_h *face) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Sets the face rectangle of the media face handle.
*
* @since_tizen 3.0
@@ -202,9 +211,10 @@ int media_face_create(const char *media_id, media_face_h *face);
* @post media_face_update_to_db()
*
*/
-int media_face_set_face_rect(media_face_h face, unsigned int rect_x, unsigned int rect_y, unsigned int rect_w, unsigned int rect_h);
+int media_face_set_face_rect(media_face_h face, unsigned int rect_x, unsigned int rect_y, unsigned int rect_w, unsigned int rect_h) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Sets the orientation of the media face handle.
* @details This function may set the value of the original image orientation.
*
@@ -221,9 +231,10 @@ int media_face_set_face_rect(media_face_h face, unsigned int rect_x, unsigned in
* @post media_face_update_to_db()
*
*/
-int media_face_set_orientation(media_face_h face, media_content_orientation_e orientation);
+int media_face_set_orientation(media_face_h face, media_content_orientation_e orientation) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Sets the tag of the media face handle.
*
* @since_tizen 3.0
@@ -239,9 +250,10 @@ int media_face_set_orientation(media_face_h face, media_content_orientation_e or
* @post media_face_insert_to_db()
* @post media_face_update_to_db()
*/
-int media_face_set_tag(media_face_h face, const char *tag);
+int media_face_set_tag(media_face_h face, const char *tag) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Inserts a new face in the media database.
* @since_tizen 3.0
*
@@ -269,9 +281,10 @@ int media_face_set_tag(media_face_h face, const char *tag);
* @see media_face_set_orientation()
* @see media_face_set_tag()
*/
-int media_face_insert_to_db(media_face_h face);
+int media_face_insert_to_db(media_face_h face) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Updates the face details to the media database.
*
* @details The function updates the given media face in the media database. The function should be called after any change in face, to be updated to the media
@@ -303,9 +316,10 @@ int media_face_insert_to_db(media_face_h face);
* @see media_face_set_tag()
*
*/
-int media_face_update_to_db(media_face_h face);
+int media_face_update_to_db(media_face_h face) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Deletes the face with given face id from the media database.
*
* @since_tizen 3.0
@@ -328,9 +342,10 @@ int media_face_update_to_db(media_face_h face);
* @see media_content_connect()
*
*/
-int media_face_delete_from_db(const char *face_id);
+int media_face_delete_from_db(const char *face_id) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Gets the number of media faces with an optional filter from the media database.
* @since_tizen 4.0
*
@@ -350,9 +365,10 @@ int media_face_delete_from_db(const char *face_id);
* @see media_content_connect()
* @see media_filter_create()
*/
-int media_face_get_face_count_from_db(filter_h filter, int *face_count);
+int media_face_get_face_count_from_db(filter_h filter, int *face_count) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Iterates through the faces with an optional filter from the media database.
* @details This function gets all faces associated with the given filter and calls @a callback for every retrieved media face.
* If @c NULL is passed to the @a filter, then no filtering is applied.
@@ -378,7 +394,7 @@ int media_face_get_face_count_from_db(filter_h filter, int *face_count);
* @see media_face_cb()
* @see media_filter_create()
*/
-int media_face_foreach_face_from_db(filter_h filter, media_face_cb callback, void *user_data);
+int media_face_foreach_face_from_db(filter_h filter, media_face_cb callback, void *user_data) TIZEN_DEPRECATED_API;
/**
* @}
diff --git a/include_product/media_image.h b/include_product/media_image.h
index 3dd6221..49c262f 100755
--- a/include_product/media_image.h
+++ b/include_product/media_image.h
@@ -163,6 +163,7 @@ int image_meta_get_orientation(image_meta_h image, media_content_orientation_e *
int image_meta_get_date_taken(image_meta_h image, char **date_taken);
/**
+ * @deprecated Deprecated since 8.0.
* @brief Gets the exposure time from EXIF.
* @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
*
@@ -179,9 +180,10 @@ int image_meta_get_date_taken(image_meta_h image, char **date_taken);
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
*
*/
-int image_meta_get_exposure_time(image_meta_h image, char **exposure_time);
+int image_meta_get_exposure_time(image_meta_h image, char **exposure_time) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Gets the fnumber from EXIF.
* @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
*
@@ -195,9 +197,10 @@ int image_meta_get_exposure_time(image_meta_h image, char **exposure_time);
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
*
*/
-int image_meta_get_fnumber(image_meta_h image, double *fnumber);
+int image_meta_get_fnumber(image_meta_h image, double *fnumber) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Gets the iso from EXIF.
* @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
*
@@ -211,9 +214,10 @@ int image_meta_get_fnumber(image_meta_h image, double *fnumber);
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
*
*/
-int image_meta_get_iso(image_meta_h image, int *iso);
+int image_meta_get_iso(image_meta_h image, int *iso) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Gets the model from EXIF.
* @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
*
@@ -230,7 +234,7 @@ int image_meta_get_iso(image_meta_h image, int *iso);
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
*
*/
-int image_meta_get_model(image_meta_h image, char **model);
+int image_meta_get_model(image_meta_h image, char **model) TIZEN_DEPRECATED_API;
/**
* @}
diff --git a/include_product/media_info.h b/include_product/media_info.h
index 29d60c1..d91c101 100755
--- a/include_product/media_info.h
+++ b/include_product/media_info.h
@@ -358,6 +358,7 @@ int media_info_get_bookmark_count_from_db(const char *media_id, filter_h filter,
int media_info_foreach_bookmark_from_db(const char *media_id, filter_h filter, media_bookmark_cb callback, void *user_data);
/**
+ * @deprecated Deprecated since 8.0.
* @brief Gets the number of face for the passed @a media_id from the media database.
* @details If @c NULL is passed to the @a filter, then no filtering is applied.
*
@@ -378,9 +379,10 @@ int media_info_foreach_bookmark_from_db(const char *media_id, filter_h filter, m
* @see media_filter_create()
*
*/
-int media_info_get_face_count_from_db(const char *media_id, filter_h filter, int *face_count);
+int media_info_get_face_count_from_db(const char *media_id, filter_h filter, int *face_count) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @brief Iterates through the media files with optional @a filter in the given @a media_id from the media database.
* @details This function gets all media face info associated with the given media id and
* meeting desired filter option and calls @a callback for
@@ -404,7 +406,7 @@ int media_info_get_face_count_from_db(const char *media_id, filter_h filter, int
* @see media_filter_create()
*
*/
-int media_info_foreach_face_from_db(const char *media_id, filter_h filter, media_face_cb callback, void *user_data);
+int media_info_foreach_face_from_db(const char *media_id, filter_h filter, media_face_cb callback, void *user_data) TIZEN_DEPRECATED_API;
/**
* @brief Gets the image metadata handle for a given media info.
@@ -1015,6 +1017,7 @@ int media_info_move_to_db(media_info_h media, const char* dst_path);
int media_info_generate_thumbnail(media_info_h media);
/**
+ * @deprecated Deprecated since 8.0.
* @ingroup CAPI_CONTENT_MEDIA_FACE_DETECTION_MODULE
* @brief Starts face detection for the given image, asynchronously.
* @details This function detects faces for given image item and calls the given callback function when the detection is completed. \n
@@ -1056,9 +1059,10 @@ int media_info_generate_thumbnail(media_info_h media);
* @see media_content_connect()
* @see media_info_cancel_face_detection()
*/
-int media_info_start_face_detection(media_info_h media, media_face_detection_completed_cb callback, void *user_data);
+int media_info_start_face_detection(media_info_h media, media_face_detection_completed_cb callback, void *user_data) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 8.0.
* @ingroup CAPI_CONTENT_MEDIA_FACE_DETECTION_MODULE
* @brief Cancels face detection of image for the given media.
* @details This function cancels face detection for given media item. \n
@@ -1086,7 +1090,7 @@ int media_info_start_face_detection(media_info_h media, media_face_detection_com
* @see media_content_connect()
* @see media_info_start_face_detection()
*/
-int media_info_cancel_face_detection(media_info_h media);
+int media_info_cancel_face_detection(media_info_h media) TIZEN_DEPRECATED_API;
/**
* @}
diff --git a/src/media_face.c b/src/media_face.c
index b191ca3..46e5b51 100755
--- a/src/media_face.c
+++ b/src/media_face.c
@@ -46,6 +46,7 @@ static int __media_face_check_media_id(const char *media_id)
int media_face_destroy(media_face_h face)
{
+ content_warn("DEPRECATION WARNING: media_face_destroy() is deprecated and will be removed from next release.");
media_face_s *_face = (media_face_s*)face;
content_retip_if_fail(face);
@@ -59,6 +60,7 @@ int media_face_destroy(media_face_h face)
int media_face_clone(media_face_h *dst, media_face_h src)
{
+ content_warn("DEPRECATION WARNING: media_face_clone() is deprecated and will be removed from next release.");
media_face_s *_src = (media_face_s*)src;
content_retip_if_fail(dst);
@@ -90,6 +92,7 @@ static void __media_face_convert_itoa(int face_id, char **face_strid)
int media_face_get_face_id(media_face_h face, char **face_id)
{
+ content_warn("DEPRECATION WARNING: media_face_get_face_id() is deprecated and will be removed from next release.");
media_face_s* _face = (media_face_s*)face;
content_retip_if_fail(face);
@@ -103,6 +106,7 @@ int media_face_get_face_id(media_face_h face, char **face_id)
int media_face_get_media_id(media_face_h face, char **media_id)
{
+ content_warn("DEPRECATION WARNING: media_face_get_media_id() is deprecated and will be removed from next release.");
media_face_s* _face = (media_face_s*)face;
content_retip_if_fail(face);
@@ -115,6 +119,7 @@ int media_face_get_media_id(media_face_h face, char **media_id)
int media_face_get_face_rect(media_face_h face, unsigned int *rect_x, unsigned int *rect_y, unsigned int *rect_w, unsigned int *rect_h)
{
+ content_warn("DEPRECATION WARNING: media_face_get_face_rect() is deprecated and will be removed from next release.");
media_face_s* _face = (media_face_s*)face;
content_retip_if_fail(face);
@@ -133,6 +138,7 @@ int media_face_get_face_rect(media_face_h face, unsigned int *rect_x, unsigned i
int media_face_get_orientation(media_face_h face, media_content_orientation_e *orientation)
{
+ content_warn("DEPRECATION WARNING: media_face_get_orientation() is deprecated and will be removed from next release.");
media_face_s* _face = (media_face_s*)face;
content_retip_if_fail(face);
@@ -145,6 +151,7 @@ int media_face_get_orientation(media_face_h face, media_content_orientation_e *o
int media_face_get_tag(media_face_h face, char **tag)
{
+ content_warn("DEPRECATION WARNING: media_face_get_tag() is deprecated and will be removed from next release.");
media_face_s* _face = (media_face_s*)face;
content_retip_if_fail(face);
@@ -157,6 +164,7 @@ int media_face_get_tag(media_face_h face, char **tag)
int media_face_create(const char *media_id, media_face_h *face)
{
+ content_warn("DEPRECATION WARNING: media_face_create() is deprecated and will be removed from next release.");
int ret = MEDIA_CONTENT_ERROR_NONE;
content_retip_if_fail(face);
@@ -175,6 +183,7 @@ int media_face_create(const char *media_id, media_face_h *face)
int media_face_set_face_rect(media_face_h face, unsigned int rect_x, unsigned int rect_y, unsigned int rect_w, unsigned int rect_h)
{
+ content_warn("DEPRECATION WARNING: media_face_set_face_rect() is deprecated and will be removed from next release.");
media_face_s* _face = (media_face_s*)face;
content_retip_if_fail(face);
@@ -191,6 +200,7 @@ int media_face_set_face_rect(media_face_h face, unsigned int rect_x, unsigned in
int media_face_set_orientation(media_face_h face, media_content_orientation_e orientation)
{
+ content_warn("DEPRECATION WARNING: media_face_set_orientation() is deprecated and will be removed from next release.");
media_face_s* _face = (media_face_s*)face;
content_retip_if_fail(face);
@@ -202,6 +212,7 @@ int media_face_set_orientation(media_face_h face, media_content_orientation_e or
int media_face_set_tag(media_face_h face, const char *tag)
{
+ content_warn("DEPRECATION WARNING: media_face_set_tag() is deprecated and will be removed from next release.");
media_face_s* _face = (media_face_s*)face;
content_retip_if_fail(face);
@@ -214,6 +225,7 @@ int media_face_set_tag(media_face_h face, const char *tag)
int media_face_insert_to_db(media_face_h face)
{
+ content_warn("DEPRECATION WARNING: media_face_insert_to_db() is deprecated and will be removed from next release.");
int ret = MEDIA_CONTENT_ERROR_NONE;
char *query_str = NULL;
sqlite3_stmt *stmt = NULL;
@@ -246,6 +258,7 @@ int media_face_insert_to_db(media_face_h face)
int media_face_update_to_db(media_face_h face)
{
+ content_warn("DEPRECATION WARNING: media_face_update_to_db() is deprecated and will be removed from next release.");
int ret = MEDIA_CONTENT_ERROR_NONE;
char *query_str = NULL;
@@ -288,6 +301,7 @@ static int __media_face_safe_atoi(const char *buffer, int *si)
int media_face_delete_from_db(const char *face_id)
{
+ content_warn("DEPRECATION WARNING: media_face_delete_from_db() is deprecated and will be removed from next release.");
int ret = MEDIA_CONTENT_ERROR_NONE;
char *query_str = NULL;
int query_face_id = 0;
@@ -310,6 +324,7 @@ int media_face_delete_from_db(const char *face_id)
int media_face_get_face_count_from_db(filter_h filter, int *face_count)
{
+ content_warn("DEPRECATION WARNING: media_face_get_face_count_from_db() is deprecated and will be removed from next release.");
content_retip_if_fail(face_count);
return _media_db_get_group_count(filter, MEDIA_GROUP_FACE, face_count);
@@ -317,6 +332,7 @@ int media_face_get_face_count_from_db(filter_h filter, int *face_count)
int media_face_foreach_face_from_db(filter_h filter, media_face_cb callback, void *user_data)
{
+ content_warn("DEPRECATION WARNING: media_face_foreach_face_from_db() is deprecated and will be removed from next release.");
content_retip_if_fail(callback);
return _media_db_get_face(NULL, filter, callback, user_data);
diff --git a/src/media_image.c b/src/media_image.c
index 44cc210..e3f8788 100755
--- a/src/media_image.c
+++ b/src/media_image.c
@@ -117,6 +117,7 @@ int image_meta_get_date_taken(image_meta_h image, char **date_taken)
int image_meta_get_exposure_time(image_meta_h image, char **exposure_time)
{
+ content_warn("DEPRECATION WARNING: image_meta_get_exposure_time() is deprecated and will be removed from next release.");
image_meta_s *_image = (image_meta_s*)image;
content_retip_if_fail(image);
@@ -129,6 +130,7 @@ int image_meta_get_exposure_time(image_meta_h image, char **exposure_time)
int image_meta_get_fnumber(image_meta_h image, double *fnumber)
{
+ content_warn("DEPRECATION WARNING: image_meta_get_fnumber() is deprecated and will be removed from next release.");
image_meta_s *_image = (image_meta_s*)image;
content_retip_if_fail(image);
@@ -141,6 +143,7 @@ int image_meta_get_fnumber(image_meta_h image, double *fnumber)
int image_meta_get_iso(image_meta_h image, int *iso)
{
+ content_warn("DEPRECATION WARNING: image_meta_get_iso() is deprecated and will be removed from next release.");
image_meta_s *_image = (image_meta_s*)image;
content_retip_if_fail(image);
@@ -153,6 +156,7 @@ int image_meta_get_iso(image_meta_h image, int *iso)
int image_meta_get_model(image_meta_h image, char **model)
{
+ content_warn("DEPRECATION WARNING: image_meta_get_model() is deprecated and will be removed from next release.");
image_meta_s *_image = (image_meta_s*)image;
content_retip_if_fail(image);
diff --git a/src/media_info.c b/src/media_info.c
index f9084ab..9dbd993 100644
--- a/src/media_info.c
+++ b/src/media_info.c
@@ -740,6 +740,7 @@ int media_info_foreach_bookmark_from_db(const char *media_id, filter_h filter, m
int media_info_get_face_count_from_db(const char *media_id, filter_h filter, int *face_count)
{
+ content_warn("DEPRECATION WARNING: media_info_get_face_count_from_db() is deprecated and will be removed from next release.");
content_retip_if_fail(STRING_VALID(media_id));
content_retip_if_fail(face_count);
@@ -748,6 +749,7 @@ int media_info_get_face_count_from_db(const char *media_id, filter_h filter, int
int media_info_foreach_face_from_db(const char *media_id, filter_h filter, media_face_cb callback, void *user_data)
{
+ content_warn("DEPRECATION WARNING: media_info_foreach_face_from_db() is deprecated and will be removed from next release.");
content_retip_if_fail(STRING_VALID(media_id));
content_retip_if_fail(callback);
@@ -1436,6 +1438,7 @@ int media_info_generate_thumbnail(media_info_h media)
int media_info_start_face_detection(media_info_h media, media_face_detection_completed_cb callback, void *user_data)
{
+ content_warn("DEPRECATION WARNING: media_info_start_face_detection() is deprecated and will be removed from next release.");
int ret = MEDIA_CONTENT_ERROR_NONE;
static unsigned int req_id = 0;
media_info_s *_media = (media_info_s*)media;
@@ -1471,6 +1474,7 @@ int media_info_start_face_detection(media_info_h media, media_face_detection_com
int media_info_cancel_face_detection(media_info_h media)
{
+ content_warn("DEPRECATION WARNING: media_info_cancel_face_detection() is deprecated and will be removed from next release.");
int ret = MEDIA_CONTENT_ERROR_NONE;
media_info_s *_media = (media_info_s*)media;