1*437bfbebSnyanmisaka /* 2*437bfbebSnyanmisaka * Copyright 2015 Rockchip Electronics Co. LTD 3*437bfbebSnyanmisaka * 4*437bfbebSnyanmisaka * Licensed under the Apache License, Version 2.0 (the "License"); 5*437bfbebSnyanmisaka * you may not use this file except in compliance with the License. 6*437bfbebSnyanmisaka * You may obtain a copy of the License at 7*437bfbebSnyanmisaka * 8*437bfbebSnyanmisaka * http://www.apache.org/licenses/LICENSE-2.0 9*437bfbebSnyanmisaka * 10*437bfbebSnyanmisaka * Unless required by applicable law or agreed to in writing, software 11*437bfbebSnyanmisaka * distributed under the License is distributed on an "AS IS" BASIS, 12*437bfbebSnyanmisaka * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*437bfbebSnyanmisaka * See the License for the specific language governing permissions and 14*437bfbebSnyanmisaka * limitations under the License. 15*437bfbebSnyanmisaka */ 16*437bfbebSnyanmisaka 17*437bfbebSnyanmisaka #ifndef __VP8E_DEBUG_H__ 18*437bfbebSnyanmisaka #define __VP8E_DEBUG_H__ 19*437bfbebSnyanmisaka 20*437bfbebSnyanmisaka #include "mpp_debug.h" 21*437bfbebSnyanmisaka 22*437bfbebSnyanmisaka #define VP8E_DBG_RC_FUNCTION (0x00010000) 23*437bfbebSnyanmisaka #define VP8E_DBG_RC_BPS (0x00020000) 24*437bfbebSnyanmisaka #define VP8E_DBG_RC (0x00040000) 25*437bfbebSnyanmisaka #define VP8E_DBG_RC_CFG (0x00080000) 26*437bfbebSnyanmisaka 27*437bfbebSnyanmisaka #define VP8E_DBG(flag, fmt, ...) _mpp_dbg(vp8e_rc_debug, flag, fmt, ## __VA_ARGS__) 28*437bfbebSnyanmisaka #define VP8E_DBG_F(flag, fmt, ...) _mpp_dbg_f(vp8e_rc_debug, flag, fmt, ## __VA_ARGS__) 29*437bfbebSnyanmisaka 30*437bfbebSnyanmisaka 31*437bfbebSnyanmisaka #define vp8e_rc_dbg_func(fmt, ...) VP8E_DBG_F(VP8E_DBG_RC_FUNCTION, fmt, ## __VA_ARGS__) 32*437bfbebSnyanmisaka #define vp8e_rc_dbg_bps(fmt, ...) VP8E_DBG(VP8E_DBG_RC_BPS, fmt, ## __VA_ARGS__) 33*437bfbebSnyanmisaka #define vp8e_rc_dbg_rc(fmt, ...) VP8E_DBG(VP8E_DBG_RC, fmt, ## __VA_ARGS__) 34*437bfbebSnyanmisaka #define vp8e_rc_dbg_cfg(fmt, ...) VP8E_DBG(VP8E_DBG_RC_CFG, fmt, ## __VA_ARGS__) 35*437bfbebSnyanmisaka 36*437bfbebSnyanmisaka extern RK_U32 vp8e_rc_debug; 37*437bfbebSnyanmisaka 38*437bfbebSnyanmisaka #endif //__VP8E_DEBUG_H__ 39