SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror -Wno-error=deprecated-declarations")
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
IF("${ARCH}" MATCHES "^arm.*")
*/
/**
- * @defgroup CAPI_MEDIA_VIDEO_UTIL_MODULE Video Util
+ * @defgroup CAPI_MEDIA_VIDEO_UTIL_MODULE Video Util (Deprecated)
* @brief The @ref CAPI_MEDIA_VIDEO_UTIL_MODULE APIs provides functions that transcode a media file.
* @ingroup CAPI_MEDIA_FRAMEWORK
*
*/
/**
+ * @deprecated Deprecated since 5.0
* @brief Creates a handle to video util.
* @since_tizen 2.3
*
* @see video_util_destroy()
*
*/
-int video_util_create(video_util_h *handle);
+int video_util_create(video_util_h *handle) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 5.0
* @brief Destroys a handle to video util.
* @since_tizen 2.3
*
* @see video_util_create()
*
*/
-int video_util_destroy(video_util_h handle);
+int video_util_destroy(video_util_h handle) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 5.0
* @brief Sets the video util's file path.
* @since_tizen 2.3
*
* @see video_util_create()
* @see video_util_destroy()
*/
-int video_util_set_file_path(video_util_h handle, const char *path);
+int video_util_set_file_path(video_util_h handle, const char *path) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 5.0
* @brief Sets the video util's accurate mode.
* @since_tizen 2.3
*
* @see video_util_create()
* @see video_util_destroy()
*/
-int video_util_set_accurate_mode(video_util_h handle, bool mode);
+int video_util_set_accurate_mode(video_util_h handle, bool mode) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 5.0
* @brief Sets the video codec for encoding video stream.
* @since_tizen 2.3
*
* @see video_util_destroy()
* @see video_util_foreach_supported_video_codec()
*/
-int video_util_set_video_codec(video_util_h handle, video_util_video_codec_e codec);
+int video_util_set_video_codec(video_util_h handle, video_util_video_codec_e codec) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 5.0
* @brief Sets the audio codec for encoding audio stream.
* @since_tizen 2.3
*
* @see video_util_destroy()
* @see video_util_foreach_supported_audio_codec()
*/
-int video_util_set_audio_codec(video_util_h handle, video_util_audio_codec_e codec);
+int video_util_set_audio_codec(video_util_h handle, video_util_audio_codec_e codec) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 5.0
* @brief Sets the file format for transcoding media stream.
* @since_tizen 2.3
*
* @see video_util_destroy()
* @see video_util_foreach_supported_file_format()
*/
-int video_util_set_file_format(video_util_h handle, video_util_file_format_e format);
+int video_util_set_file_format(video_util_h handle, video_util_file_format_e format) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 5.0
* @brief Sets the resolution(width and height).
* @since_tizen 2.3
*
* @see video_util_create()
* @see video_util_destroy()
*/
-int video_util_set_resolution(video_util_h handle, int width, int height);
+int video_util_set_resolution(video_util_h handle, int width, int height) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 5.0
* @brief Sets the frame rate.
* @since_tizen 2.3
*
* @see video_util_create()
* @see video_util_destroy()
*/
-int video_util_set_fps(video_util_h handle, int fps);
+int video_util_set_fps(video_util_h handle, int fps) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 5.0
* @brief Transcodes the video for given video util handle.
* @since_tizen 2.3
*
* @see video_util_get_progress_transcoding()
* @see video_util_cancel_transcoding()
*/
-int video_util_start_transcoding(video_util_h handle, unsigned long start, unsigned long duration, const char *out_path, video_util_transcoding_progress_cb progress_cb, video_util_transcoding_completed_cb completed_cb, void *user_data);
+int video_util_start_transcoding(video_util_h handle, unsigned long start,
+ unsigned long duration, const char *out_path,
+ video_util_transcoding_progress_cb progress_cb,
+ video_util_transcoding_completed_cb completed_cb,
+ void *user_data) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 5.0
* @brief Cancels transcoding the video for given video util handle.
* @since_tizen 2.3
-
*
* @details This function cancels the transcoding for given video util handle.\n.
*
* @see video_util_destroy()
* @see video_util_start_transcoding()
*/
-int video_util_cancel_transcoding(video_util_h handle);
+int video_util_cancel_transcoding(video_util_h handle) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 5.0
* @brief Retrieves the current position and duration of the video transcoding.
* @since_tizen 2.3
* @see video_util_create()
* @see video_util_destroy()
*/
-int video_util_get_progress_transcoding(video_util_h handle, unsigned long *current_position, unsigned long *duration);
+int video_util_get_progress_transcoding(video_util_h handle,
+ unsigned long *current_position,
+ unsigned long *duration) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 5.0
* @brief Retrieves all supported media formats by invoking a specific callback for each supported media format.
* @since_tizen 2.3
*
* @see video_util_set_file_format()
* @see video_util_supported_file_format_cb()
*/
-int video_util_foreach_supported_file_format(video_util_h handle, video_util_supported_file_format_cb callback, void *user_data);
+int video_util_foreach_supported_file_format(video_util_h handle,
+ video_util_supported_file_format_cb callback,
+ void *user_data) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 5.0
* @brief Retrieves all supported video encoders by invoking a specific callback for each supported video encoder.
* @since_tizen 2.3
*
* @see video_util_set_video_codec()
* @see video_util_supported_video_encoder_cb()
*/
-int video_util_foreach_supported_video_codec(video_util_h handle, video_util_supported_video_encoder_cb callback, void *user_data);
+int video_util_foreach_supported_video_codec(video_util_h handle,
+ video_util_supported_video_encoder_cb callback,
+ void *user_data) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 5.0
* @brief Retrieves all supported audio encoders by invoking a specific callback for each supported audio encoder.
* @since_tizen 2.3
*
* @post video_util_supported_audio_encoder_cb() will be invoked.
* @see video_util_supported_audio_encoder_cb()
*/
-int video_util_foreach_supported_audio_codec(video_util_h handle, video_util_supported_audio_encoder_cb callback, void *user_data);
+int video_util_foreach_supported_audio_codec(video_util_h handle,
+ video_util_supported_audio_encoder_cb callback,
+ void *user_data) TIZEN_DEPRECATED_API;
/**
* @}
SECURE_LOGI(""fmt"", ##arg); \
} while (0)
+#define video_util_deprecated_log(fuction) do { \
+ LOGW("DEPRECATION WARNING: %s() is deprecated and will be removed "\
+ "from next release.", fuction); \
+ } while (0)
+
typedef bool(*video_util_supported_type_cb)(int type, void *user_data);
typedef struct {
*/
/**
+ * @deprecated Deprecated since 5.0
* @ingroup CAPI_MEDIA_VIDEO_UTIL_MODULE
* @brief Enumeration for errors of a video util.
* @since_tizen 2.3
} video_util_error_e;
/**
+ * @deprecated Deprecated since 5.0
* @ingroup CAPI_MEDIA_VIDEO_UTIL_MODULE
* @brief Enumeration for video codec.
* @since_tizen 2.3
} video_util_video_codec_e;
/**
+ * @deprecated Deprecated since 5.0
* @ingroup CAPI_MEDIA_VIDEO_UTIL_MODULE
* @brief Enumeration for audio codec.
* @since_tizen 2.3
} video_util_audio_codec_e;
/**
+ * @deprecated Deprecated since 5.0
* @ingroup CAPI_MEDIA_VIDEO_UTIL_MODULE
* @brief Enumeration for formats of a media.
* @since_tizen 2.3
} video_util_file_format_e;
/**
+ * @deprecated Deprecated since 5.0
* @ingroup CAPI_MEDIA_VIDEO_UTIL_MODULE
* @brief Video util handle.
* @since_tizen 2.3
typedef struct video_util_s *video_util_h;
/**
+ * @deprecated Deprecated since 5.0
* @ingroup CAPI_MEDIA_VIDEO_UTIL_MODULE
* @brief Called regularly during the video transcoding.
* @since_tizen 2.3
typedef void (*video_util_transcoding_progress_cb)(unsigned long current_position, unsigned long duration, void *user_data);
/**
+ * @deprecated Deprecated since 5.0
* @ingroup CAPI_MEDIA_VIDEO_UTIL_MODULE
* @brief Called when transcoding is finished just before storing in the file.
* @since_tizen 2.3
typedef void (*video_util_transcoding_completed_cb)(video_util_error_e error_code, void *user_data);
/**
+ * @deprecated Deprecated since 5.0
* @brief Called iteratively to notify you about the supported file formats.
* @since_tizen 2.3
*
typedef bool (*video_util_supported_file_format_cb)(video_util_file_format_e format, void *user_data);
/**
+ * @deprecated Deprecated since 5.0
* @brief Called iteratively to notify you of supported video codec.
* @since_tizen 2.3
*
typedef bool (*video_util_supported_video_encoder_cb)(video_util_video_codec_e codec, void *user_data);
/**
+ * @deprecated Deprecated since 5.0
* @brief Called iteratively to notify you about the supported audio codec.
* @since_tizen 2.3
*
int video_util_create(video_util_h *handle)
{
int ret = VIDEO_UTIL_ERROR_NONE;
-
bool transcoder_supported = false;
+
+ video_util_deprecated_log(__FUNCTION__);
+
if (0 == system_info_get_platform_bool(TRANSCODER_FEATURE_PATH, &transcoder_supported)) {
if (false == transcoder_supported) {
video_util_error("VIDEO_UTIL_ERROR_NOT_SUPPORTED(0x%08x)", VIDEO_UTIL_ERROR_NOT_SUPPORTED);
int ret = VIDEO_UTIL_ERROR_NONE;
video_util_s *_handle = NULL;
bool transcoder_supported = false;
+
+ video_util_deprecated_log(__FUNCTION__);
+
if (0 == system_info_get_platform_bool(TRANSCODER_FEATURE_PATH, &transcoder_supported)) {
if (false == transcoder_supported) {
video_util_error("VIDEO_UTIL_ERROR_NOT_SUPPORTED(0x%08x)", VIDEO_UTIL_ERROR_NOT_SUPPORTED);
video_util_s *_handle = NULL;
bool is_busy = false;
bool transcoder_supported = false;
+
+ video_util_deprecated_log(__FUNCTION__);
+
if (0 == system_info_get_platform_bool(TRANSCODER_FEATURE_PATH, &transcoder_supported)) {
if (false == transcoder_supported) {
video_util_error("VIDEO_UTIL_ERROR_NOT_SUPPORTED(0x%08x)", VIDEO_UTIL_ERROR_NOT_SUPPORTED);
int ret = VIDEO_UTIL_ERROR_NONE;
video_util_s *_handle = NULL;
bool transcoder_supported = false;
+
+ video_util_deprecated_log(__FUNCTION__);
+
if (0 == system_info_get_platform_bool(TRANSCODER_FEATURE_PATH, &transcoder_supported)) {
if (false == transcoder_supported) {
video_util_error("VIDEO_UTIL_ERROR_NOT_SUPPORTED(0x%08x)", VIDEO_UTIL_ERROR_NOT_SUPPORTED);
video_util_s *_handle = NULL;
bool is_busy = false;
bool transcoder_supported = false;
+
+ video_util_deprecated_log(__FUNCTION__);
+
if (0 == system_info_get_platform_bool(TRANSCODER_FEATURE_PATH, &transcoder_supported)) {
if (false == transcoder_supported) {
video_util_error("VIDEO_UTIL_ERROR_NOT_SUPPORTED(0x%08x)", VIDEO_UTIL_ERROR_NOT_SUPPORTED);
video_util_s *_handle = NULL;
bool is_busy = false;
bool transcoder_supported = false;
+
+ video_util_deprecated_log(__FUNCTION__);
+
if (0 == system_info_get_platform_bool(TRANSCODER_FEATURE_PATH, &transcoder_supported)) {
if (false == transcoder_supported) {
video_util_error("VIDEO_UTIL_ERROR_NOT_SUPPORTED(0x%08x)", VIDEO_UTIL_ERROR_NOT_SUPPORTED);
video_util_s *_handle = NULL;
bool is_busy = false;
bool transcoder_supported = false;
+
+ video_util_deprecated_log(__FUNCTION__);
+
if (0 == system_info_get_platform_bool(TRANSCODER_FEATURE_PATH, &transcoder_supported)) {
if (false == transcoder_supported) {
video_util_error("VIDEO_UTIL_ERROR_NOT_SUPPORTED(0x%08x)", VIDEO_UTIL_ERROR_NOT_SUPPORTED);
int ret = VIDEO_UTIL_ERROR_NONE;
video_util_s *_handle = NULL;
bool transcoder_supported = false;
+
+ video_util_deprecated_log(__FUNCTION__);
+
if (0 == system_info_get_platform_bool(TRANSCODER_FEATURE_PATH, &transcoder_supported)) {
if (false == transcoder_supported) {
video_util_error("VIDEO_UTIL_ERROR_NOT_SUPPORTED(0x%08x)", VIDEO_UTIL_ERROR_NOT_SUPPORTED);
int ret = VIDEO_UTIL_ERROR_NONE;
video_util_s *_handle = NULL;
bool transcoder_supported = false;
+
+ video_util_deprecated_log(__FUNCTION__);
+
if (0 == system_info_get_platform_bool(TRANSCODER_FEATURE_PATH, &transcoder_supported)) {
if (false == transcoder_supported) {
video_util_error("VIDEO_UTIL_ERROR_NOT_SUPPORTED(0x%08x)", VIDEO_UTIL_ERROR_NOT_SUPPORTED);
mm_seek_mode_e accurate_mode = MM_SEEK_NUM;
bool is_busy = false;
bool transcoder_supported = false;
+
+ video_util_deprecated_log(__FUNCTION__);
+
if (0 == system_info_get_platform_bool(TRANSCODER_FEATURE_PATH, &transcoder_supported)) {
if (false == transcoder_supported) {
video_util_error("VIDEO_UTIL_ERROR_NOT_SUPPORTED(0x%08x)", VIDEO_UTIL_ERROR_NOT_SUPPORTED);
int ret = VIDEO_UTIL_ERROR_NONE;
video_util_s *_handle = NULL;
bool transcoder_supported = false;
+
+ video_util_deprecated_log(__FUNCTION__);
+
if (0 == system_info_get_platform_bool(TRANSCODER_FEATURE_PATH, &transcoder_supported)) {
if (false == transcoder_supported) {
video_util_error("VIDEO_UTIL_ERROR_NOT_SUPPORTED(0x%08x)", VIDEO_UTIL_ERROR_NOT_SUPPORTED);
video_util_s *_handle = NULL;
int value = 0;
bool transcoder_supported = false;
+
+ video_util_deprecated_log(__FUNCTION__);
+
if (0 == system_info_get_platform_bool(TRANSCODER_FEATURE_PATH, &transcoder_supported)) {
if (false == transcoder_supported) {
video_util_error("VIDEO_UTIL_ERROR_NOT_SUPPORTED(0x%08x)", VIDEO_UTIL_ERROR_NOT_SUPPORTED);
int ret = VIDEO_UTIL_ERROR_NONE;
video_util_s *_handle = NULL;
bool transcoder_supported = false;
+
+ video_util_deprecated_log(__FUNCTION__);
+
if (0 == system_info_get_platform_bool(TRANSCODER_FEATURE_PATH, &transcoder_supported)) {
if (false == transcoder_supported) {
video_util_error("VIDEO_UTIL_ERROR_NOT_SUPPORTED(0x%08x)", VIDEO_UTIL_ERROR_NOT_SUPPORTED);
int ret = VIDEO_UTIL_ERROR_NONE;
video_util_s *_handle = NULL;
bool transcoder_supported = false;
+
+ video_util_deprecated_log(__FUNCTION__);
+
if (0 == system_info_get_platform_bool(TRANSCODER_FEATURE_PATH, &transcoder_supported)) {
if (false == transcoder_supported) {
video_util_error("VIDEO_UTIL_ERROR_NOT_SUPPORTED(0x%08x)", VIDEO_UTIL_ERROR_NOT_SUPPORTED);
int ret = VIDEO_UTIL_ERROR_NONE;
video_util_s *_handle = NULL;
bool transcoder_supported = false;
+
+ video_util_deprecated_log(__FUNCTION__);
+
if (0 == system_info_get_platform_bool(TRANSCODER_FEATURE_PATH, &transcoder_supported)) {
if (false == transcoder_supported) {
video_util_error("VIDEO_UTIL_ERROR_NOT_SUPPORTED(0x%08x)", VIDEO_UTIL_ERROR_NOT_SUPPORTED);