1 /* 2 * Copyright 2015 Rockchip Electronics Co. LTD 3 * 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 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 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. 15 */ 16 17 #ifndef __JPEGE_DEBUG_H__ 18 #define __JPEGE_DEBUG_H__ 19 20 #include "mpp_debug.h" 21 22 #define JPEGE_DBG_FUNCTION (0x00000001) 23 #define JPEGE_DBG_INPUT (0x00000010) 24 #define JPEGE_DBG_OUTPUT (0x00000020) 25 #define JPEGE_DBG_CTRL (0x00000040) 26 27 #define jpege_dbg(flag, fmt, ...) _mpp_dbg(jpege_debug, flag, fmt, ## __VA_ARGS__) 28 #define jpege_dbg_f(flag, fmt, ...) _mpp_dbg_f(jpege_debug, flag, fmt, ## __VA_ARGS__) 29 30 #define jpege_dbg_func(fmt, ...) jpege_dbg_f(JPEGE_DBG_FUNCTION, fmt, ## __VA_ARGS__) 31 #define jpege_dbg_input(fmt, ...) jpege_dbg(JPEGE_DBG_INPUT, fmt, ## __VA_ARGS__) 32 #define jpege_dbg_output(fmt, ...) jpege_dbg(JPEGE_DBG_OUTPUT, fmt, ## __VA_ARGS__) 33 #define jpege_dbg_ctrl(fmt, ...) jpege_dbg(JPEGE_DBG_CTRL, fmt, ## __VA_ARGS__) 34 35 extern RK_U32 jpege_debug; 36 37 #endif /* __JPEGE_DEBUG_H__ */ 38