Reinforce test code
[platform/core/api/media-content.git] / include_product / media_face.h
index 231b978..ff93d86 100755 (executable)
@@ -14,8 +14,8 @@
 * limitations under the License.
 */
 
-#ifndef __TIZEN_MEDIA_IMAGE_FACE_H__
-#define __TIZEN_MEDIA_IMAGE_FACE_H__
+#ifndef __TIZEN_CONTENT_MEDIA_FACE_H__
+#define __TIZEN_CONTENT_MEDIA_FACE_H__
 
 #include <media_content_type.h>
 
@@ -25,10 +25,10 @@ extern "C" {
 
 /**
  * @file media_face.h
- * @brief This file contains the media face API and related to all operations with the face information of the image in Media DB. \n
- *             Functions include cloning and destroying the face handler, getting face information such as face id, face coordinates in file, \n
+ * @brief This file contains the media face function and related to all operations with the face information of the image in Media DB. \n
+ *             Functions include cloning and destroying the media face handler, getting face information such as face id, face coordinates in file, \n
  *             face tag. Face information will be managed by DB. To insert face information, you should use media_face_insert_to_db() \n
- *             or media_info_start_face_detection() API. And you can insert,update,delete face information manually.
+ *             or media_info_start_face_detection() function. And you can insert,update,delete face information manually.
  */
 
 /**
@@ -37,17 +37,17 @@ extern "C" {
  */
 
 /**
- * @brief Clones the face handle.
- * @details This function copies the face handle from a source to
+ * @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
  * media face foreach function such as media_face_foreach_face_from_db(). To use this handle outside of these foreach functions,
  * use this function.
  *
  * @since_tizen 3.0
- * @remark The destination handle must be released with media_event_destroy() by you.
+ * @remarks The @a dst should be released using media_face_destroy().
  *
- * @param [in] src The source face handle
- * @param [out] dst A destination face handle
+ * @param[out] dst The destination handle to the media face
+ * @param[in] src The source handle to the media face
  *
  * @return 0 on success, otherwise a negative error value.
  *
@@ -61,36 +61,35 @@ extern "C" {
 int media_face_clone(media_face_h *dst, media_face_h src);
 
 /**
- * @brief Destroys the face handle.
- * @details Function frees all resources related to face handle. This
- * handle no longer can be used to perform any operation. New handle has to
+ * @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
  * be created before next usage.
  *
  * @since_tizen 3.0
  *
- * @param [in] face The face handle
+ * @param[in] face The media face handle
  *
  * @return 0 on success, otherwise a negative error value.
  *
  * @retval #MEDIA_CONTENT_ERROR_NONE Successful
  * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
  *
- * @see media_face_clone()
- *
- * @pre Get copy of face handle by calling media_face_clone() or Get face handle by calling media_info_foreach_face_from_db()
+ * @pre Get copy of media face handle by calling media_face_clone() or Get media face handle by calling media_info_foreach_face_from_db()
  *
+ * @see media_face_clone()
  */
 int media_face_destroy(media_face_h face);
 
 /**
- * @brief Gets the face id from the face handle.
+ * @brief Gets the face id from the media face handle.
  *
  * @since_tizen 3.0
  *
- * @remarks You must release @a face_id using free().
+ * @remarks The @a face_id should be released using free().
  *
- * @param [in] face The face handle
- * @param [out] face_id The uuid of the face handle
+ * @param[in] face The media face handle
+ * @param[out] face_id The ID of the media face
  *
  * @return 0 on success, otherwise a negative error value.
  *
@@ -100,14 +99,14 @@ int media_face_destroy(media_face_h face);
 int media_face_get_face_id(media_face_h face, char **face_id);
 
 /**
- * @brief Gets the media uuid from the face handle.
+ * @brief Gets the media id from the media face handle.
  *
  * @since_tizen 3.0
  *
- * @remarks You must release @a media_id using free().
+ * @remarks The @a media_id should be released using free().
  *
- * @param [in] face The face handle
- * @param [out] media_id The media uuid of the face handle
+ * @param[in] face The media face handle
+ * @param[out] media_id The media ID
  *
  * @return 0 on success, otherwise a negative error value.
  *
@@ -117,16 +116,16 @@ 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);
 
  /**
- * @brief Gets the face's rectangle from the face handle.
- * @details This API can get the face's rectangle information. returned rectangle information includes the orientation value.
+ * @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.
  *
  * @since_tizen 3.0
  *
- * @param [in] face The face handle
- * @param [out] rect_x The x position of face of the face handle
- * @param [out] rect_y The y position of face of the face handle
- * @param [out] rect_w The width of face of the face handle
- * @param [out] rect_h The height of face of the face handle
+ * @param[in] face The media face handle
+ * @param[out] rect_x The x position of the media face
+ * @param[out] rect_y The y position of the media face
+ * @param[out] rect_w The width of the media face
+ * @param[out] rect_h The height of the media face
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #MEDIA_CONTENT_ERROR_NONE Successful
@@ -135,13 +134,13 @@ 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);
 
 /**
- * @brief Gets the orientation from the face handle.
- * @details This API can get the orientation value from the original image.
+ * @brief Gets the orientation from the media face handle.
+ * @details This function can get the orientation value from the original image.
  *
  * @since_tizen 3.0
  *
- * @param [in] face The face handle
- * @param [out] orientation The orientation of the face handle
+ * @param[in] face The media face handle
+ * @param[out] orientation The orientation of the media face
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #MEDIA_CONTENT_ERROR_NONE Successful
@@ -150,14 +149,14 @@ 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);
 
 /**
- * @brief Gets the tag from the face handle.
+ * @brief Gets the tag from the media face handle.
  *
  * @since_tizen 3.0
  *
- * @remarks You must release @a tag using free().
+ * @remarks The @a tag should be released using free().
  *
- * @param [in] face The face handle
- * @param [out] tag The tag of the face handle
+ * @param[in] face The media face handle
+ * @param[out] tag The tag of the media face
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #MEDIA_CONTENT_ERROR_NONE Successful
@@ -166,12 +165,15 @@ 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);
 
 /**
- * @brief Creates the face handle.
+ * @brief Creates the media face handle.
  *
  * @since_tizen 3.0
  *
- * @param [in] media_id The media uuid to create the face handle
- * @param [out] face The face handle
+ * @remarks The @a face should be released using media_face_destroy(). \n
+ *          Since 5.5, this function supports only image type.
+ *
+ * @param[in] media_id The media ID
+ * @param[out] face The media face handle
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #MEDIA_CONTENT_ERROR_NONE Successful
@@ -182,14 +184,14 @@ int media_face_get_tag(media_face_h face, char **tag);
 int media_face_create(const char *media_id, media_face_h *face);
 
 /**
- * @brief Sets the face rectangle of the face handle
+ * @brief Sets the face rectangle of the media face handle.
  *
  * @since_tizen 3.0
  *
- * @param[in] face The face handle
+ * @param[in] face The media face handle
  * @param[in] rect_x The integer to set as a position x of face rectangle
  * @param[in] rect_y The integer to set as a position y of face rectangle
- * @param[in] rect_w The integer to set as a width  of face rectangle
+ * @param[in] rect_w The integer to set as a width of face rectangle
  * @param[in] rect_h The integer to set as a height of face rectangle
  *
  * @return 0 on success, otherwise a negative error value.
@@ -203,12 +205,12 @@ 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);
 
 /**
- * @brief Sets the orientation of the face handle
- * @details This API may set the value of the original image orientation.
+ * @brief Sets the orientation of the media face handle.
+ * @details This function may set the value of the original image orientation.
  *
  * @since_tizen 3.0
  *
- * @param[in] face The face handle
+ * @param[in] face The media face handle
  * @param[in] orientation The integer to set as an orientation
  *
  * @return 0 on success, otherwise a negative error value.
@@ -222,12 +224,12 @@ 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);
 
 /**
- * @brief Sets the tag of the face handle.
+ * @brief Sets the tag of the media face handle.
  *
  * @since_tizen 3.0
  *
- * @param [in] face The face handle
- * @param [in] tag The tag of the face handle
+ * @param[in] face The media face handle
+ * @param[in] tag The tag of the media face
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #MEDIA_CONTENT_ERROR_NONE Successful
@@ -246,9 +248,9 @@ int media_face_set_tag(media_face_h face, const char *tag);
  * @privlevel public
  * @privilege %http://tizen.org/privilege/content.write
  *
- * @remarks The created tag handle must be released using media_tag_destroy().
+ * @remarks The @a face should be released using media_face_destroy().
  *
- * @param [in] face The face handle
+ * @param[in] face The media face handle
  *
  * @return 0 on success, otherwise a negative error value.
  *
@@ -263,7 +265,9 @@ int media_face_set_tag(media_face_h face, const char *tag);
  *
  * @see media_content_connect()
  * @see media_face_destroy()
- * @see media_face_set_xxx()
+ * @see media_face_set_face_rect()
+ * @see media_face_set_orientation()
+ * @see media_face_set_tag()
  */
 int media_face_insert_to_db(media_face_h face);
 
@@ -278,7 +282,7 @@ int media_face_insert_to_db(media_face_h face);
  * @privlevel public
  * @privilege %http://tizen.org/privilege/content.write
  *
- * @param[in] face The face handle to update
+ * @param[in] face The media face handle to update
  *
  * @return 0 on success, otherwise a negative error value.
  *
@@ -294,20 +298,22 @@ int media_face_insert_to_db(media_face_h face);
  *
  * @see media_content_connect()
  * @see media_face_destroy()
- * @see media_face_set_xxx()
+ * @see media_face_set_face_rect()
+ * @see media_face_set_orientation()
+ * @see media_face_set_tag()
  *
  */
 int media_face_update_to_db(media_face_h face);
 
 /**
- * @brief Deletes the face with given face uuid from the media database.
+ * @brief Deletes the face with given face id from the media database.
  *
  * @since_tizen 3.0
  *
  * @privlevel public
  * @privilege %http://tizen.org/privilege/content.write
  *
- * @param [in] face_id The id of media face
+ * @param[in] face_id The ID of the media face
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #MEDIA_CONTENT_ERROR_NONE Successful
@@ -328,8 +334,8 @@ int media_face_delete_from_db(const char *face_id);
  * @brief Gets the number of media faces with an optional filter from the media database.
  * @since_tizen 4.0
  *
- * @param[in]  filter      The handle to the face filter
- * @param[out] face_count  The count of the media faces
+ * @param[in] filter The handle to the media filter
+ * @param[out] face_count The count of the media faces
  *
  * @return @c 0 on success,
  *         otherwise a negative error value
@@ -352,9 +358,9 @@ int media_face_get_face_count_from_db(filter_h filter, int *face_count);
  *          If @c NULL is passed to the @a filter, then no filtering is applied.
  * @since_tizen 4.0
  *
- * @param[in] filter     The handle to the face filter
- * @param[in] callback   The callback function to be invoked
- * @param[in] user_data  The user data to be passed to the callback function
+ * @param[in] filter The handle to the media filter
+ * @param[in] callback The callback function to be invoked
+ * @param[in] user_data The user data to be passed to the callback function
  *
  * @return @c 0 on success,
  *         otherwise a negative error value
@@ -382,4 +388,4 @@ int media_face_foreach_face_from_db(filter_h filter, media_face_cb callback, voi
 }
 #endif /* __cplusplus */
 
-#endif /* __TIZEN_MEDIA_IMAGE_FACE_H__ */
+#endif /* __TIZEN_CONTENT_MEDIA_FACE_H__ */