Improve API description 45/318145/1 accepted/tizen_unified_toolchain accepted/tizen/9.0/unified/20241030.234105 accepted/tizen/unified/20240928.111241 accepted/tizen/unified/20240928.221341 accepted/tizen/unified/toolchain/20241004.102152 accepted/tizen/unified/x/20240929.082801 accepted/tizen/unified/x/asan/20241014.000600 tizen_9.0_m2_release
authorhjkim <backto.kim@samsung.com>
Wed, 25 Sep 2024 05:41:39 +0000 (14:41 +0900)
committerhjkim <backto.kim@samsung.com>
Wed, 25 Sep 2024 05:41:55 +0000 (14:41 +0900)
Change-Id: If80364724afb17c53ce44378c75570f1fd06c550

doc/metadata_extractor_doc.h
include/metadata_extractor.h
packaging/capi-media-metadata-extractor.spec

index ad7bf293693c31bf65ce39b99b38a60905271b70..aecf0898a723bd3f16d190d0e82da674f6f71396 100644 (file)
 
 /**
  * @addtogroup CAPI_METADATA_EXTRACTOR_MODULE
- * @brief The @ref CAPI_METADATA_EXTRACTOR_MODULE API provides functions for extracting the metadata from an input media file.
+ * @brief The @ref CAPI_METADATA_EXTRACTOR_MODULE API provides functions for extracting the metadata from an input media.
  * @ingroup CAPI_MEDIA_FRAMEWORK
   * @section CAPI_METADATA_EXTRACTOR_MODULE_HEADER Required Header
  *    \#include <metadata_extractor.h>
  *
  * @section CAPI_METADATA_EXTRACTOR_OVERVIEW Overview
- * The @ref CAPI_METADATA_EXTRACTOR_MODULE API allows you to extract the metadata from a media file. To extract a particular type of metadata(#metadata_extractor_attr_e), create/destroy the handle(#metadata_extractor_create()/#metadata_extractor_destroy). To set the path for extracting, and call metadata_extractor_get_metadata().
+ * The @ref CAPI_METADATA_EXTRACTOR_MODULE API allows you to extract the metadata from a media. To extract a particular type of metadata(#metadata_extractor_attr_e), create/destroy the handle(#metadata_extractor_create()/#metadata_extractor_destroy). To set the path for extracting, and call metadata_extractor_get_metadata().
  */
 
 #endif /* __TIZEN_MEDIA_METADATA_EXTRACTOR_DOC_H__ */
index 548b1406a06e8db3aa53a164ca5228c983f0a4c4..2862fd974d3c814e243dbdcb729a00182c69f51e 100644 (file)
@@ -69,6 +69,7 @@ int metadata_extractor_create(metadata_extractor_h *metadata);
  * @pre Create a metadata handle by calling metadata_extractor_create().
  * @see metadata_extractor_create()
  * @see metadata_extractor_destroy()
+ * @see metadata_extractor_set_buffer()
  */
 int metadata_extractor_set_path(metadata_extractor_h metadata, const char *path);
 
@@ -88,6 +89,7 @@ int metadata_extractor_set_path(metadata_extractor_h metadata, const char *path)
  * @pre Create a metadata handle by calling metadata_extractor_create().
  * @see metadata_extractor_create()
  * @see metadata_extractor_destroy()
+ * @see metadata_extractor_set_path()
  */
 int metadata_extractor_set_buffer(metadata_extractor_h metadata, const void *buffer, int size);
 
@@ -108,7 +110,7 @@ int metadata_extractor_set_buffer(metadata_extractor_h metadata, const void *buf
 int metadata_extractor_destroy(metadata_extractor_h metadata);
 
 /**
- * @brief Gets metadata.
+ * @brief Gets metadata of a media.
  * @since_tizen 2.3
  *
  * @remarks The @a value should be released using free(). \n
@@ -126,14 +128,14 @@ int metadata_extractor_destroy(metadata_extractor_h metadata);
  * @retval #METADATA_EXTRACTOR_ERROR_OPERATION_FAILED Internal operation failed
  * @retval #METADATA_EXTRACTOR_ERROR_PERMISSION_DENIED Permission denied
  *
- * @pre Set the path to extract by calling metadata_extractor_set_path().
+ * @pre Set the path or buffer to extract by calling metadata_extractor_set_path() or metadata_extractor_set_buffer().
  * @see metadata_extractor_create()
  * @see metadata_extractor_destroy()
  */
 int metadata_extractor_get_metadata(metadata_extractor_h metadata, metadata_extractor_attr_e attribute, char **value);
 
 /**
- * @brief Gets the artwork image in a media file.
+ * @brief Gets the artwork image of a media.
  * @since_tizen 2.3
  *
  * @remarks The @a artwork and @a mime_type should be released using free(). \n
@@ -152,14 +154,14 @@ int metadata_extractor_get_metadata(metadata_extractor_h metadata, metadata_extr
  * @retval #METADATA_EXTRACTOR_ERROR_OPERATION_FAILED Internal operation failed
  * @retval #METADATA_EXTRACTOR_ERROR_PERMISSION_DENIED Permission denied
  *
- * @pre Set the path to extract by calling metadata_extractor_set_path().
+ * @pre Set the path or buffer to extract by calling metadata_extractor_set_path() or metadata_extractor_set_buffer().
  * @see metadata_extractor_create()
  * @see metadata_extractor_destroy()
  */
 int metadata_extractor_get_artwork(metadata_extractor_h metadata, void **artwork, int *size, char **mime_type);
 
 /**
- * @brief Gets the frame of a video media file.
+ * @brief Gets the frame of a video media.
  * @since_tizen 2.3
  *
  * @remarks The @a frame should be released using free().
@@ -177,14 +179,14 @@ int metadata_extractor_get_artwork(metadata_extractor_h metadata, void **artwork
  * @retval #METADATA_EXTRACTOR_ERROR_OPERATION_FAILED Internal operation failed
  * @retval #METADATA_EXTRACTOR_ERROR_PERMISSION_DENIED Permission denied
  *
- * @pre Set the path to extract by calling metadata_extractor_set_path().
+ * @pre Set the path or buffer to extract by calling metadata_extractor_set_path() or metadata_extractor_set_buffer().
  * @see metadata_extractor_create()
  * @see metadata_extractor_destroy()
  */
 int metadata_extractor_get_frame(metadata_extractor_h metadata, void **frame, int *size);
 
 /**
- * @brief Gets the synclyrics of a media file.
+ * @brief Gets the synclyrics of a media.
  * @since_tizen 2.3
  *
  * @remarks The @a lyrics should be released using free().
@@ -202,7 +204,7 @@ int metadata_extractor_get_frame(metadata_extractor_h metadata, void **frame, in
  * @retval #METADATA_EXTRACTOR_ERROR_OPERATION_FAILED Internal operation failed
  * @retval #METADATA_EXTRACTOR_ERROR_PERMISSION_DENIED Permission denied
  *
- * @pre Set the path to extract by calling metadata_extractor_set_path().
+ * @pre Set the path or buffer to extract by calling metadata_extractor_set_path() or metadata_extractor_set_buffer().
  * @pre Get the time/lyrics set number by calling metadata_extractor_get_metadata(METADATA_SYNCLYRICS_NUM).
  * @see metadata_extractor_create()
  * @see metadata_extractor_destroy()
@@ -231,7 +233,7 @@ int metadata_extractor_get_synclyrics(metadata_extractor_h metadata, int index,
  * @retval #METADATA_EXTRACTOR_ERROR_OPERATION_FAILED Internal operation failed
  * @retval #METADATA_EXTRACTOR_ERROR_PERMISSION_DENIED Permission denied
  *
- * @pre Set the path to extract by calling metadata_extractor_set_path().
+ * @pre Set the path or buffer to extract by calling metadata_extractor_set_path() or metadata_extractor_set_buffer().
  * @see metadata_extractor_create()
  * @see metadata_extractor_destroy()
  */
index e7f2df78373ede3d49151e4568438d600efd624a..009ec2f6b985e5145b394396119f0abb8a6bdec8 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-metadata-extractor
 Summary:    A media metadata extractor library in Tizen Native API
-Version:    0.2.0
+Version:    0.2.1
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0