X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fvideo_util_private.h;h=31b1c67f66fb3ff4ee9397ad28f931457e191b32;hb=8665b40840dff2dbd3c0f4d4ca82277a37ef7cfb;hp=9bed25bc33f570a6ec1b6150b94ddbc9035c07db;hpb=4a0bc18841fdc2d7bb985db22b79b9cfae2199fe;p=platform%2Fcore%2Fapi%2Fvideo-util.git diff --git a/include/video_util_private.h b/include/video_util_private.h old mode 100755 new mode 100644 index 9bed25b..31b1c67 --- a/include/video_util_private.h +++ b/include/video_util_private.h @@ -14,18 +14,63 @@ * limitations under the License. */ - #ifndef __TIZEN_VIDEO_UTIL_PRIVATE_H__ #define __TIZEN_VIDEO_UTIL_PRIVATE_H__ #include -#include #include +#include +#include + +#ifdef LOG_TAG +#undef LOG_TAG +#endif + +#define LOG_TAG "CAPI_MEDIA_VIDEO_UTIL" + +#define video_util_debug(fmt, arg...) do { \ + LOGD(""fmt"", ##arg); \ + } while (0) + +#define video_util_info(fmt, arg...) do { \ + LOGI(""fmt"", ##arg); \ + } while (0) + +#define video_util_error(fmt, arg...) do { \ + LOGE(""fmt"", ##arg); \ + } while (0) + +#define video_util_debug_fenter() do { \ + LOGD(""); \ + } while (0) + +#define video_util_debug_fleave() do { \ + LOGD(""); \ + } while (0) + +#define video_util_secure_info(fmt, arg...) do { \ + 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 bool(*video_util_supported_type_cb)(int type, void *user_data); -typedef struct -{ +typedef struct { + void *user_data; + video_util_transcoding_progress_cb transcode_progress_cb; + video_util_transcoding_completed_cb transcode_completed_cb; +} video_util_cb_s; + +typedef struct { + void *user_data; + video_util_supported_type_cb supported_type_cb; +} video_util_type_cb_s; + +typedef struct { char *input_path; bool accurate_mode; video_util_video_codec_e video_codec; @@ -34,26 +79,15 @@ typedef struct int width; int height; int fps; + unsigned long bps; MMHandleType transcode_h; -}video_util_s; - -typedef struct -{ - void *user_data; - video_util_transcoding_completed_cb transcode_completed_cb; -}video_util_cb_s; - -typedef struct -{ - void *user_data; - video_util_supported_type_cb supported_type_cb; -}video_util_type_cb_s; + video_util_cb_s *_util_cb; +} video_util_s; -typedef enum -{ - VIDEO_UTIL_TYPE_FORMAT = 0, +typedef enum { + VIDEO_UTIL_TYPE_FORMAT = 0, VIDEO_UTIL_TYPE_VIDEO_ENC, VIDEO_UTIL_TYPE_AUDIO_ENC -}video_util_type_e; +} video_util_type_e; #endif /*__TIZEN_VIDEO_UTIL_PRIVATE_H__*/