2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef __TIZEN_VIDEO_UTIL_PRIVATE_H__
18 #define __TIZEN_VIDEO_UTIL_PRIVATE_H__
23 #include <video_util_type.h>
29 #define LOG_TAG "CAPI_MEDIA_VIDEO_UTIL"
31 #define video_util_debug(fmt, arg...) do { \
32 LOGD(""fmt"", ##arg); \
35 #define video_util_info(fmt, arg...) do { \
36 LOGI(""fmt"", ##arg); \
39 #define video_util_error(fmt, arg...) do { \
40 LOGE(""fmt"", ##arg); \
43 #define video_util_debug_fenter() do { \
47 #define video_util_debug_fleave() do { \
51 #define video_util_secure_info(fmt, arg...) do { \
52 SECURE_LOGI(""fmt"", ##arg); \
55 typedef bool(*video_util_supported_type_cb)(int type, void *user_data);
59 video_util_transcoding_progress_cb transcode_progress_cb;
60 video_util_transcoding_completed_cb transcode_completed_cb;
65 video_util_supported_type_cb supported_type_cb;
66 } video_util_type_cb_s;
71 video_util_video_codec_e video_codec;
72 video_util_audio_codec_e audio_codec;
73 video_util_file_format_e file_format;
78 MMHandleType transcode_h;
79 video_util_cb_s *_util_cb;
83 VIDEO_UTIL_TYPE_FORMAT = 0,
84 VIDEO_UTIL_TYPE_VIDEO_ENC,
85 VIDEO_UTIL_TYPE_AUDIO_ENC
88 #endif /*__TIZEN_VIDEO_UTIL_PRIVATE_H__*/