Fix Native API Reference doc error
[platform/core/api/video-util.git] / include / video_util_private.h
old mode 100755 (executable)
new mode 100644 (file)
index 9bed25b..31b1c67
 * 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"
+
+#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(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__*/