From 5a86d3fea822de61c184079252df4f51f1a47723 Mon Sep 17 00:00:00 2001 From: Jeongmo Yang Date: Wed, 6 Dec 2023 14:42:00 +0900 Subject: [PATCH] recorder.h: Remove profile check for supported platform version [Version] 0.3.42 [Issue Type] Doxygen Change-Id: I51d9f08c3e7ff264cb0b5d7e5332cc640a3d636f Signed-off-by: Jeongmo Yang --- include/recorder.h | 156 ++++++++++++++++++------------------- packaging/capi-media-recorder.spec | 2 +- 2 files changed, 79 insertions(+), 79 deletions(-) diff --git a/include/recorder.h b/include/recorder.h index 520c381..0235111 100644 --- a/include/recorder.h +++ b/include/recorder.h @@ -30,7 +30,7 @@ extern "C" { /** * @file recorder.h * @brief This file contains the Recorder API. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ /** @@ -40,13 +40,13 @@ extern "C" { /** * @brief The Media recorder handle. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ typedef struct recorder_s *recorder_h; /** * @brief Enumeration for error code of the media recorder. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ typedef enum { RECORDER_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */ @@ -66,7 +66,7 @@ typedef enum { /** * @brief Enumeration for recorder states. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ typedef enum { RECORDER_STATE_NONE, /**< Recorder is not created */ @@ -78,7 +78,7 @@ typedef enum { /** * @brief Enumeration for the recording limit. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ typedef enum { RECORDER_RECORDING_LIMIT_TIME, /**< Time limit (second) of recording file */ @@ -88,7 +88,7 @@ typedef enum { /** * @brief Enumeration for the file container format. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ typedef enum { RECORDER_FILE_FORMAT_3GP, /**< 3GP file format */ @@ -102,7 +102,7 @@ typedef enum { /** * @brief Enumeration for the audio codec. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ typedef enum { RECORDER_AUDIO_CODEC_DISABLE = -1, /**< Disable audio track */ @@ -115,7 +115,7 @@ typedef enum { /** * @brief Enumeration for the video codec. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ typedef enum { RECORDER_VIDEO_CODEC_H263, /**< H263 codec */ @@ -126,7 +126,7 @@ typedef enum { /** * @brief Enumeration for audio capture devices. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ typedef enum { RECORDER_AUDIO_DEVICE_MIC, /**< Mic device */ @@ -135,7 +135,7 @@ typedef enum { /** * @brief Enumeration for the recorder rotation type. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ typedef enum { RECORDER_ROTATION_NONE, /**< No rotation */ @@ -146,7 +146,7 @@ typedef enum { /** * @brief Enumeration for the recorder policy. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ typedef enum { RECORDER_POLICY_NONE = 0, /**< None */ @@ -191,7 +191,7 @@ typedef camera_preview_data_s recorder_video_data_s; /** * @brief Called when limitation error occurs while recording. * @details The callback function is possible to receive three types of limits: time, size and no-space. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @remarks After being called, recording data is discarded and not written in the recording file. Also the state of recorder is not changed. * @param[in] type The imitation type * @param[in] user_data The user data passed from the callback registration function @@ -204,7 +204,7 @@ typedef void (*recorder_recording_limit_reached_cb)(recorder_recording_limit_typ /** * @brief Called to indicate the recording status. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @remarks This callback function is repeatedly invoked during the #RECORDER_STATE_RECORDING state. * @param[in] elapsed_time The time of the recording (milliseconds) * @param[in] file_size The size of the recording file (KB) @@ -218,7 +218,7 @@ typedef void (*recorder_recording_status_cb)(unsigned long long elapsed_time, un /** * @brief Called when the record state is changed. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] previous The previous state of the recorder * @param[in] current The current state of the recorder * @param[in] by_policy @c true if the state is changed by policy, otherwise @c false if the state is not changed @@ -246,7 +246,7 @@ typedef void (*recorder_device_state_changed_cb)(recorder_type_e type, recorder_ /** * @brief Called when the recorder is interrupted by a policy. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @remarks This callback is called after interrupt handling is completed. * @param[in] policy The policy that interrupted the recorder * @param[in] previous The previous state of the recorder @@ -269,7 +269,7 @@ typedef void (*recorder_interrupt_started_cb)(recorder_policy_e policy, recorder /** * @brief Called when audio stream data was being delivered just before storing in the recorded file. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @remarks The callback function holds the same buffer that will be recorded. \n * So if the user changes the buffer, the result file will contain the buffer. * @remarks The callback is called via internal thread of Frameworks, therefore do not invoke UI API, recorder_unprepare(), recorder_commit() and recorder_cancel() in callback. @@ -313,7 +313,7 @@ typedef bool (*recorder_video_encode_decision_cb)(recorder_video_data_s *frame, /** * @brief Called once for each supported video resolution. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] width The video image width * @param[in] height The video image height * @param[in] user_data The user data passed from the foreach function @@ -325,7 +325,7 @@ typedef bool (*recorder_supported_video_resolution_cb)(int width, int height, vo /** * @brief Called when the error occurred. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @remarks This callback informs about the critical error situation. \n * When being invoked, user should release the resource and terminate the application. \n * This error code will be reported. @@ -352,7 +352,7 @@ typedef void (*recorder_error_cb)(recorder_error_e error, recorder_state_e curre /** * @brief Called iteratively to notify about the supported file formats. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] format The format of recording files * @param[in] user_data The user data passed from the foreach function * @return @c true to continue with the next iteration of the loop, \n otherwise @c false to break out of the loop @@ -363,7 +363,7 @@ typedef bool (*recorder_supported_file_format_cb)(recorder_file_format_e format, /** * @brief Called iteratively to notify about the supported audio encoders. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] codec The codec of audio encoder * @param[in] user_data The user data passed from the foreach function * @return @c true to continue with the next iteration of the loop, \n otherwise @c false to break out of the loop @@ -374,7 +374,7 @@ typedef bool (*recorder_supported_audio_encoder_cb)(recorder_audio_codec_e codec /** * @brief Called iteratively to notify about the supported video encoders. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] codec The codec of video encoder * @param[in] user_data The user data passed from the foreach function * @return @c true to continue with the next iteration of the loop, \n otherwise @c false to break out of the loop @@ -394,7 +394,7 @@ typedef bool (*recorder_supported_video_encoder_cb)(recorder_video_codec_e codec /** * @brief Creates a recorder handle to record a video. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @remarks You must release @a recorder using recorder_destroy(). \n * The @a camera handle also could be used for capturing images. \n * If the camera state was #CAMERA_STATE_CREATED, the preview format will be changed to the recommended preview format for recording. @@ -423,7 +423,7 @@ int recorder_create_videorecorder(camera_h camera, recorder_h *recorder); /** * @brief Creates a recorder handle to record an audio. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @remarks You must release @a recorder using recorder_destroy(). * @remarks The privilege %http://tizen.org/privilege/recorder is not required since 4.0,\n * but it is required in all earlier versions. @@ -445,7 +445,7 @@ int recorder_create_audiorecorder(recorder_h *recorder); /** * @brief Destroys the recorder handle. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @remarks The video recorder's camera handle is not released by this function. * @param[in] recorder The handle to the media recorder * @return @c 0 on success, otherwise a negative error value @@ -465,7 +465,7 @@ int recorder_destroy(recorder_h recorder); /** * @brief Prepares the media recorder for recording. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @remarks Before calling the function, it is required to properly set audio encoder (recorder_set_audio_encoder()), * video encoder(recorder_set_video_encoder()) and file format (recorder_set_file_format()). * @param[in] recorder The handle to the media recorder @@ -492,7 +492,7 @@ int recorder_prepare(recorder_h recorder); /** * @brief Resets the media recorder. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] recorder The handle to the media recorder * @return @c 0 on success, otherwise a negative error value * @retval #RECORDER_ERROR_NONE Successful @@ -513,7 +513,7 @@ int recorder_unprepare(recorder_h recorder); /** * @brief Starts the recording. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @privlevel public * @privilege %http://tizen.org/privilege/recorder * @remarks If file path has been set to an existing file, this file is removed automatically and updated by new one. \n @@ -548,7 +548,7 @@ int recorder_start(recorder_h recorder); /** * @brief Pauses the recording. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @privlevel public * @privilege %http://tizen.org/privilege/recorder * @remarks Recording can be resumed with recorder_start(). @@ -571,7 +571,7 @@ int recorder_pause(recorder_h recorder); /** * @brief Stops recording and saves the result. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @privlevel public * @privilege %http://tizen.org/privilege/recorder * @remarks When you want to record audio or video file, you need to add privilege according to rules below additionally. \n @@ -598,7 +598,7 @@ int recorder_commit(recorder_h recorder); /** * @brief Cancels the recording. * @details The recording data is discarded and not written in the recording file. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @privlevel public * @privilege %http://tizen.org/privilege/recorder * @remarks When you want to record audio or video file, you need to add privilege according to rules below additionally. \n @@ -624,7 +624,7 @@ int recorder_cancel(recorder_h recorder); /** * @brief Gets the recorder's current state. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] recorder The handle to the media recorder * @param[out] state The current state of the recorder * @return @c 0 on success, otherwise a negative error value @@ -638,7 +638,7 @@ int recorder_get_state(recorder_h recorder, recorder_state_e *state); /** * @brief Gets the peak audio input level that was sampled since the last call to this function. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @remarks @c 0 dB indicates maximum input level, @c -300 dB indicates minimum input level. * @param[in] recorder The handle to the media recorder * @param[out] dB The audio input level in dB @@ -656,7 +656,7 @@ int recorder_get_audio_level(recorder_h recorder, double *dB); /** * @brief Sets the file path to record. * @details This function sets file path which defines where newly recorded data should be stored. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @remarks If the same file already exists in the file system, then old file will be overwritten. * @param[in] recorder The handle to the media recorder * @param[in] path The recording file path @@ -674,7 +674,7 @@ int recorder_set_filename(recorder_h recorder, const char *path); /** * @brief Gets the file path to record. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @remarks You must release @a path using free(). * @param[in] recorder The handle to the media recorder * @param[out] path The recording file path @@ -690,7 +690,7 @@ int recorder_get_filename(recorder_h recorder, char **path); /** * @brief Sets the file format for recording media stream. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @remarks Since 2.3.1, it could be returned #RECORDER_ERROR_INVALID_OPERATION \n * when it's audio recorder and its state is #RECORDER_STATE_READY \n * because of checking codec compatibility with current encoder. @@ -714,7 +714,7 @@ int recorder_set_file_format(recorder_h recorder, recorder_file_format_e format) /** * @brief Gets the file format for recording media stream. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] recorder The handle to the media recorder * @param[out] format The media file format * @return @c 0 on success, otherwise a negative error value @@ -760,7 +760,7 @@ int recorder_set_sound_stream_info(recorder_h recorder, sound_stream_info_h stre /** * @brief Retrieves all supported file formats by invoking a specific callback for each supported file format. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] recorder The handle to the media recorder * @param[in] callback The iteration callback * @param[in] user_data The user data to be passed to the callback function @@ -788,7 +788,7 @@ int recorder_foreach_supported_file_format(recorder_h recorder, recorder_support /** * @brief Sets the audio codec for encoding an audio stream. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @remarks You can get available audio encoders by using recorder_foreach_supported_audio_encoder(). \n * If set to #RECORDER_AUDIO_CODEC_DISABLE, the audio track is not created in recording files.\n * Since 2.3.1, it could be returned #RECORDER_ERROR_INVALID_OPERATION \n @@ -812,7 +812,7 @@ int recorder_set_audio_encoder(recorder_h recorder, recorder_audio_codec_e codec /** * @brief Gets the audio codec for encoding an audio stream. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] recorder The handle to the media recorder * @param[out] codec The audio codec * @return @c 0 on success, otherwise a negative error value @@ -837,7 +837,7 @@ int recorder_get_audio_encoder(recorder_h recorder, recorder_audio_codec_e *code /** * @brief Retrieves all supported audio encoders by invoking a specific callback for each supported audio encoder. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] recorder The handle to the media recorder * @param[in] callback The iteration callback * @param[in] user_data The user data to be passed to the callback function @@ -865,7 +865,7 @@ int recorder_foreach_supported_audio_encoder(recorder_h recorder, recorder_suppo /** * @brief Sets the resolution of the video recording. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @remarks This function should be called before recording (recorder_start()). * @param[in] recorder The handle to the media recorder * @param[in] width The video width @@ -886,7 +886,7 @@ int recorder_set_video_resolution(recorder_h recorder, int width, int height); /** * @brief Gets the resolution of the video recording. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] recorder The handle to the media recorder * @param[out] width The video width * @param[out] height The video height @@ -912,7 +912,7 @@ int recorder_get_video_resolution(recorder_h recorder, int *width, int *height); /** * @brief Retrieves all supported video resolutions by invoking callback function once for each supported video resolution. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] recorder The handle to the media recorder * @param[in] foreach_cb The callback function to be invoked * @param[in] user_data The user data to be passed to the callback function @@ -940,7 +940,7 @@ int recorder_foreach_supported_video_resolution(recorder_h recorder, recorder_su /** * @brief Sets the video codec for encoding video stream. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @remarks You can get available video encoders by using recorder_foreach_supported_video_encoder(). * @param[in] recorder The handle to the media recorder * @param[in] codec The video codec @@ -959,7 +959,7 @@ int recorder_set_video_encoder(recorder_h recorder, recorder_video_codec_e codec /** * @brief Gets the video codec for encoding video stream. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] recorder The handle to the media recorder * @param[out] codec The video codec * @return @c 0 on success, otherwise a negative error value @@ -984,7 +984,7 @@ int recorder_get_video_encoder(recorder_h recorder, recorder_video_codec_e *code /** * @brief Retrieves all supported video encoders by invoking a specific callback for each supported video encoder. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] recorder The handle to the media recorder * @param[in] callback The iteration callback * @param[in] user_data The user data to be passed to the callback function @@ -1012,7 +1012,7 @@ int recorder_foreach_supported_video_encoder(recorder_h recorder, recorder_suppo /** * @brief Registers the callback function that will be invoked when the recorder state changes. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] recorder The handle to the media recorder * @param[in] callback The function pointer of user callback * @param[in] user_data The user data to be passed to the callback function @@ -1030,7 +1030,7 @@ int recorder_set_state_changed_cb(recorder_h recorder, recorder_state_changed_cb /** * @brief Unregisters the callback function. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] recorder The handle to the media recorder * @return @c 0 on success, otherwise a negative error value * @retval #RECORDER_ERROR_NONE Successful @@ -1044,7 +1044,7 @@ int recorder_unset_state_changed_cb(recorder_h recorder); /** * @brief Registers a callback function to be called when the media recorder is interrupted according to a policy. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] recorder The handle to the media recorder * @param[in] callback The callback function to register * @param[in] user_data The user data to be passed to the callback function @@ -1061,7 +1061,7 @@ int recorder_set_interrupted_cb(recorder_h recorder, recorder_interrupted_cb cal /** * @brief Unregisters the callback function. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] recorder The handle to the media recorder * @return @c 0 on success, otherwise a negative error value * @retval #RECORDER_ERROR_NONE Successful @@ -1100,7 +1100,7 @@ int recorder_unset_interrupt_started_cb(recorder_h recorder); /** * @brief Registers a callback function to be called when audio stream data is being delivered. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @remarks This callback function holds the same buffer that will be recorded. \n * Therefore if an user changes the buffer, the result file will have the buffer. \n * @remarks The callback is called via internal thread of Frameworks. Therefore do not invoke UI API, recorder_unprepare(), recorder_commit() and recorder_cancel() in callback.\n @@ -1123,7 +1123,7 @@ int recorder_set_audio_stream_cb(recorder_h recorder, recorder_audio_stream_cb c /** * @brief Unregisters the callback function. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] recorder The handle to the media recorder * @return @c 0 on success, otherwise a negative error value * @retval #RECORDER_ERROR_NONE Successful @@ -1206,7 +1206,7 @@ int recorder_unset_video_encode_decision_cb(recorder_h recorder); /** * @brief Registers a callback function to be invoked when the recording information changes. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] recorder The handle to the media recorder * @param[in] callback The function pointer of user callback * @param[in] user_data The user data to be passed to the callback function @@ -1224,7 +1224,7 @@ int recorder_set_recording_status_cb(recorder_h recorder, recorder_recording_sta /** * @brief Unregisters the callback function. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] recorder The handle to the media recorder * @return @c 0 on success, otherwise a negative error value * @retval #RECORDER_ERROR_NONE Successful @@ -1238,7 +1238,7 @@ int recorder_unset_recording_status_cb(recorder_h recorder); /** * @brief Registers the callback function to be run when reached the recording limit. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] recorder The handle to media recorder * @param[in] callback The function pointer of user callback * @param[in] user_data The user data to be passed to the callback function @@ -1258,7 +1258,7 @@ int recorder_set_recording_limit_reached_cb(recorder_h recorder, recorder_record /** * @brief Unregisters the callback function. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] recorder The handle to the media recorder * @return @c 0 on success, otherwise a negative error value * @retval #RECORDER_ERROR_NONE Successful @@ -1272,7 +1272,7 @@ int recorder_unset_recording_limit_reached_cb(recorder_h recorder); /** * @brief Registers a callback function to be called when an asynchronous operation error occurred. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @remarks This callback informs critical error situation.\n * When this callback is invoked, user should release the resource and terminate the application. \n * These error codes will occur. \n @@ -1297,7 +1297,7 @@ int recorder_set_error_cb(recorder_h recorder, recorder_error_cb callback, void /** * @brief Unregisters the callback function. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] recorder The handle to the recorder * @return @c on success, otherwise a negative error value * @retval #RECORDER_ERROR_NONE Successful @@ -1366,7 +1366,7 @@ int recorder_remove_device_state_changed_cb(int cb_id); /** * @brief Sets the maximum size of a recording file. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @remarks After reaching the limitation, the recording data is discarded and not written in the recording file. * @param[in] recorder The handle to the media recorder * @param[in] kbyte The maximum size of the recording file(KB) \n @@ -1386,7 +1386,7 @@ int recorder_attr_set_size_limit(recorder_h recorder, int kbyte); /** * @brief Gets the maximum size of a recording file. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] recorder The handle to the media recorder * @param[out] kbyte The maximum size of recording file (KB) \n * @c 0 means unlimited recording size. @@ -1403,7 +1403,7 @@ int recorder_attr_get_size_limit(recorder_h recorder, int *kbyte); /** * @brief Sets the time limit of a recording file. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @remarks After reaching the limitation, the recording data is discarded and not written in the recording file. * @param[in] recorder The handle to the media recorder * @param[in] second The time limit of the recording file (in seconds) \n @@ -1424,7 +1424,7 @@ int recorder_attr_set_time_limit(recorder_h recorder, int second); /** * @brief Gets the time limit of a recording file. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] recorder The handle to the media recorder * @param[out] second The time limit of the recording file (in seconds) \n * @c 0 means unlimited recording time. @@ -1441,7 +1441,7 @@ int recorder_attr_get_time_limit(recorder_h recorder, int *second); /** * @brief Sets the audio device for recording. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] recorder The handle to the media recorder * @param[in] device The type of an audio device * @return @c 0 on success, otherwise a negative error value @@ -1459,7 +1459,7 @@ int recorder_attr_set_audio_device(recorder_h recorder, recorder_audio_device_e /** * @brief Gets the audio device for recording. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] recorder The handle to the media recorder * @param[out] device The type of an audio device * @return @c 0 on success, otherwise a negative error value @@ -1474,7 +1474,7 @@ int recorder_attr_get_audio_device(recorder_h recorder, recorder_audio_device_e /** * @brief Sets the sampling rate of an audio stream. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] recorder The handle to the media recorder * @param[in] samplerate The sample rate in Hertz * @return @c 0 on success, otherwise a negative error value @@ -1492,7 +1492,7 @@ int recorder_attr_set_audio_samplerate(recorder_h recorder, int samplerate); /** * @brief Gets the sampling rate of an audio stream. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] recorder The handle to the media recorder * @param[out] samplerate The sample rate in Hertz * @return @c 0 on success, otherwise a negative error value @@ -1507,7 +1507,7 @@ int recorder_attr_get_audio_samplerate(recorder_h recorder, int *samplerate); /** * @brief Sets the bitrate of an audio encoder. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] recorder The handle to the media recorder * @param[in] bitrate The bitrate (for mms : 12200[bps], normal : 288000[bps]) * @return @c 0 on success, otherwise a negative error value @@ -1524,7 +1524,7 @@ int recorder_attr_set_audio_encoder_bitrate(recorder_h recorder, int bitrate); /** * @brief Sets the bitrate of a video encoder. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] recorder The handle to the media recorder * @param[in] bitrate The bitrate in bits per second * @return @c 0 on success, otherwise a negative error value @@ -1541,7 +1541,7 @@ int recorder_attr_set_video_encoder_bitrate(recorder_h recorder, int bitrate); /** * @brief Gets the bitrate of an audio encoder. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] recorder The handle to the media recorder * @param[out] bitrate The bitrate in bits per second * @return @c 0 on success, otherwise a negative error value @@ -1556,7 +1556,7 @@ int recorder_attr_get_audio_encoder_bitrate(recorder_h recorder, int *bitrate); /** * @brief Gets the bitrate of a video encoder. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] recorder The handle to the media recorder * @param[out] bitrate The bitrate in bits per second * @return @c 0 on success, otherwise a negative error value @@ -1571,7 +1571,7 @@ int recorder_attr_get_video_encoder_bitrate(recorder_h recorder, int *bitrate); /** * @brief Sets the mute state of a recorder. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] recorder The handle to the media recorder * @param[in] enable The mute state * @return @c 0 on success, otherwise a negative error value @@ -1586,7 +1586,7 @@ int recorder_attr_set_mute(recorder_h recorder, bool enable); /** * @brief Gets the mute state of a recorder. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] recorder The handle to the media recorder * @remarks The specific error code can be obtained using the get_last_result() method. Error codes are described in Exception section. * @return @c true if the recorder is not recording any sound, @@ -1601,7 +1601,7 @@ bool recorder_attr_is_muted(recorder_h recorder); /** * @brief Sets the recording motion rate. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @remarks This attribute is valid only in a video recorder. \n * If the rate bigger than @c 0 and smaller than @c 1, video is recorded in a slow motion mode. \n * If the rate bigger than @c 1, video is recorded in a fast motion mode (time lapse recording). @@ -1624,7 +1624,7 @@ int recorder_attr_set_recording_motion_rate(recorder_h recorder , double rate); /** * @brief Gets the recording motion rate. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @remarks This attribute is valid only in a video recorder. \n * If the rate bigger than @c 0 and smaller than @c 1, video is recorded in a slow motion mode. \n * If the rate bigger than @c 1, video is recorded in a fast motion mode (time lapse recording). @@ -1645,7 +1645,7 @@ int recorder_attr_get_recording_motion_rate(recorder_h recorder , double *rate); /** * @brief Sets the number of the audio channel. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @remarks This attribute is applied only in #RECORDER_STATE_CREATED state. \n * For mono recording, setting channel to @c 1. \n * For stereo recording, setting channel to @c 2. @@ -1666,7 +1666,7 @@ int recorder_attr_set_audio_channel(recorder_h recorder, int channel_count); /** * @brief Gets the number of the audio channel. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] recorder The handle to the media recorder * @param[out] channel_count The number of the audio channel * @return @c 0 on success, otherwise a negative error value @@ -1682,7 +1682,7 @@ int recorder_attr_get_audio_channel(recorder_h recorder, int *channel_count); /** * @brief Sets the video orientation in a video metadata tag. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] recorder The handle to a media recorder * @param[in] orientation The information of the video orientation * @return @c 0 on success, otherwise a negative error value @@ -1697,7 +1697,7 @@ int recorder_attr_set_orientation_tag(recorder_h recorder, recorder_rotation_e /** * @brief Gets the video orientation in a video metadata tag. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] recorder The handle to a media recorder * @param[out] orientation The information of the video orientation * @return @c 0 on success, otherwise a negative error value diff --git a/packaging/capi-media-recorder.spec b/packaging/capi-media-recorder.spec index 129ca7b..dd16fb0 100644 --- a/packaging/capi-media-recorder.spec +++ b/packaging/capi-media-recorder.spec @@ -1,6 +1,6 @@ Name: capi-media-recorder Summary: A Recorder API -Version: 0.3.41 +Version: 0.3.42 Release: 0 Group: Multimedia/API License: Apache-2.0 -- 2.7.4