* @{
*/
-#ifndef TIZEN_ERROR_STREAMRECORDER
-#define TIZEN_ERROR_STREAMRECORDER -0x01A10000
-#endif /* TIZEN_ERROR_STREAMRECORDER */
-
/**
* @brief The Streamrecorder handle.
* @since_tizen 3.0
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;
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
*/
/**
- * @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
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
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
* @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
* @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
/**
* @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