Remove TIZEN_ERROR_STREAMRECORDER 12/207812/1 submit/tizen/20190614.020308
authorSeokHoon LEE <andy.shlee@samsung.com>
Thu, 13 Jun 2019 02:43:40 +0000 (11:43 +0900)
committerSeokHoon LEE <andy.shlee@samsung.com>
Thu, 13 Jun 2019 02:43:43 +0000 (11:43 +0900)
- Delete TIZEN_ERROR_STREAMRECORDER, already in tizen_error.h
- fix typo

Change-Id: Ic04b7550bd2382e0376946098d439d699be91717
Signed-off-by: SeokHoon LEE <andy.shlee@samsung.com>
include/streamrecorder.h
packaging/capi-media-streamrecorder.spec

index 686069e..f4890da 100644 (file)
@@ -35,10 +35,6 @@ extern "C" {
  * @{
  */
 
-#ifndef TIZEN_ERROR_STREAMRECORDER
-#define TIZEN_ERROR_STREAMRECORDER       -0x01A10000
-#endif /* TIZEN_ERROR_STREAMRECORDER */
-
 /**
  * @brief The Streamrecorder handle.
  * @since_tizen 3.0
@@ -62,7 +58,7 @@ typedef enum {
 typedef enum {
        STREAMRECORDER_VIDEO_SOURCE_FORMAT_INVALID = -1,   /**< Invalid pixel format */
        STREAMRECORDER_VIDEO_SOURCE_FORMAT_NV12,           /**< NV12 pixel format */
-       STREAMRECORDER_VIDEO_SOURCE_FORMAT_NV21,           /**< NV12 pixel format */
+       STREAMRECORDER_VIDEO_SOURCE_FORMAT_NV21,           /**< NV21 pixel format */
        STREAMRECORDER_VIDEO_SOURCE_FORMAT_I420,           /**< I420 pixel format */
        STREAMRECORDER_VIDEO_SOURCE_FORMAT_NUM             /**< Number of the video source format */
 } streamrecorder_video_source_format_e;
@@ -216,7 +212,7 @@ typedef void (*streamrecorder_notify_cb)(streamrecorder_state_e previous, stream
 typedef void (*streamrecorder_error_cb)(streamrecorder_error_e error, streamrecorder_state_e current_state, void *user_data);
 
 /**
- * @brief Called iteratively to notify about the buffer has been consumed
+ * @brief Called iteratively to notify about the buffer has been consumed.
  * @since_tizen 3.0
  * @remarks The user needs to release consumed buffer if buffer is allocated by user including media packet
  * @param[in] buffer  The consumed buffer that user pushed
@@ -290,7 +286,7 @@ typedef bool (*streamrecorder_supported_video_encoder_cb)(streamrecorder_video_c
  */
 
 /**
- * @brief Creates a streamrecorder handle to record a video or audio
+ * @brief Creates a streamrecorder handle to record a video or audio.
  * @since_tizen 3.0
  * @remarks You must release @a recorder using streamrecorder_destroy().
  * @param[out]  recorder       A handle to the streamrecorder
@@ -303,7 +299,7 @@ typedef bool (*streamrecorder_supported_video_encoder_cb)(streamrecorder_video_c
 int streamrecorder_create(streamrecorder_h *recorder);
 
 /**
- * @brief Destroys the streamrecorder handle
+ * @brief Destroys the streamrecorder handle.
  * @since_tizen 3.0
  * @param[in]  recorder    The handle to the streamrecorder
  * @return @c 0 on success, otherwise a negative error value
@@ -448,7 +444,7 @@ int streamrecorder_commit(streamrecorder_h recorder);
 int streamrecorder_cancel(streamrecorder_h recorder);
 
 /**
- * @brief Pushes buffer to StreamRecorder to record audio/video
+ * @brief Pushes buffer to StreamRecorder to record audio/video.
  * @since_tizen 3.0
  * @remarks When you want to record audio or video file, you need to add privilege according to rules below additionally. \n
  *          http://tizen.org/privilege/mediastorage is needed if input or output path are relevant to media storage.\n
@@ -723,7 +719,7 @@ int streamrecorder_get_video_source_format(streamrecorder_h recorder, streamreco
  * @remarks After reaching the limitation, the recording data is discarded and not written in the recording file.
  * @param[in] recorder The handle to the streamrecorder
  * @param[in] type The recording limit type
- * @param[in] limit If limit type is STREAMRECORDER_RECORDING_LIMIT_TYPE_SIZE, the limit value is the maximum size of the recording file(KB), \n
+ * @param[in] limit If limit type is #STREAMRECORDER_RECORDING_LIMIT_TYPE_SIZE, the limit value is the maximum size of the recording file(KB), \n
  *                            otherwise limit value is the maximum time of the recording file (in seconds) \n
  *                     @c 0 means unlimited recording size or time.
  * @return @c 0 on success, otherwise a negative error value
@@ -741,7 +737,7 @@ int streamrecorder_set_recording_limit(streamrecorder_h recorder, streamrecorder
  * @since_tizen 3.0
  * @param[in] recorder The handle to the streamrecorder
  * @param[in] type The recording limit type
- * @param[out] limit If limit type is STREAMRECORDER_RECORDING_LIMIT_TYPE_SIZE, the limit value is the maximum size of the recording file(KB), \n
+ * @param[out] limit If limit type is #STREAMRECORDER_RECORDING_LIMIT_TYPE_SIZE, the limit value is the maximum size of the recording file(KB), \n
  *                            otherwise limit value is the maximum time of the recording file (in seconds) \n
  *                     @c 0 means unlimited recording size or time.
  * @return @c 0 on success, otherwise a negative error value
@@ -839,7 +835,7 @@ int streamrecorder_get_video_encoder_bitrate(streamrecorder_h recorder, int *bit
 /**
  * @brief Sets the number of the audio channel.
  * @since_tizen 3.0
- * @remarks This attribute is applied only in STREAMRECORDER_STATE_CREATED state. \n
+ * @remarks This attribute is applied only in #STREAMRECORDER_STATE_CREATED state. \n
  *          For mono recording, setting channel to @c 1. \n
  *          For stereo recording, setting channel to @c 2.
  * @param[in] recorder       The handle to the streamrecorder
index a3425b5..0883e90 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-streamrecorder
 Summary:    A Streamrecorder library in Tizen Native API
-Version:    0.0.22
+Version:    0.0.23
 Release:    0
 Group:      Multimedia/Other
 License:    Apache-2.0