* limitations under the License.
*/
-
#ifndef __TIZEN_VIDEO_UTIL_PRIVATE_H__
#define __TIZEN_VIDEO_UTIL_PRIVATE_H__
#include <stdbool.h>
-#include <video_util_type.h>
#include <mm_types.h>
+#include <dlog.h>
+#include <video_util_type.h>
+
+#ifdef LOG_TAG
+#undef LOG_TAG
+#endif
+
+#define LOG_TAG "CAPI_MEDIA_VIDEO_UTIL"
+
+#ifdef TIZEN_EXCLUDE_COVERAGE
+#define video_util_debug(fmt, arg...)
+#define video_util_info(fmt, arg...)
+#define video_util_error(fmt, arg...)
+#define video_util_debug_fenter()
+#define video_util_debug_fleave()
+#define video_util_secure_info(fmt, arg...)
+#define video_util_deprecated_log(function)
+#else
+#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("<Enter>"); \
+ } while (0)
+
+#define video_util_debug_fleave() do { \
+ LOGD("<Leave>"); \
+ } while (0)
+
+#define video_util_secure_info(fmt, arg...) do { \
+ SECURE_LOGI(""fmt"", ##arg); \
+ } while (0)
+
+#define video_util_deprecated_log(function) do { \
+ LOGW("DEPRECATION WARNING: %s() is deprecated and will be removed "\
+ "from next release.", function); \
+ } while (0)
+#endif
+
+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 {
+ 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
-{
+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;
int width;
int height;
int fps;
+ unsigned long bps;
MMHandleType transcode_h;
-}video_util_s;
-
-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;
+ 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__*/