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 __HAL_JPEGE_DEBUG_H__ 18 #define __HAL_JPEGE_DEBUG_H__ 19 20 #include "mpp_debug.h" 21 22 #define HAL_JPEGE_DBG_FUNCTION (0x00000001) 23 #define HAL_JPEGE_DBG_SIMPLE (0x00000002) 24 #define HAL_JPEGE_DBG_DETAIL (0x00000004) 25 #define HAL_JPEGE_DBG_INPUT (0x00000010) 26 #define HAL_JPEGE_DBG_OUTPUT (0x00000020) 27 28 #define hal_jpege_dbg(flag, fmt, ...) _mpp_dbg(hal_jpege_debug, flag, fmt, ## __VA_ARGS__) 29 #define hal_jpege_dbg_f(flag, fmt, ...) _mpp_dbg_f(hal_jpege_debug, flag, fmt, ## __VA_ARGS__) 30 31 #define hal_jpege_dbg_func(fmt, ...) hal_jpege_dbg_f(HAL_JPEGE_DBG_FUNCTION, fmt, ## __VA_ARGS__) 32 #define hal_jpege_dbg_simple(fmt, ...) hal_jpege_dbg(HAL_JPEGE_DBG_SIMPLE, fmt, ## __VA_ARGS__) 33 #define hal_jpege_dbg_detail(fmt, ...) hal_jpege_dbg(HAL_JPEGE_DBG_DETAIL, fmt, ## __VA_ARGS__) 34 #define hal_jpege_dbg_input(fmt, ...) hal_jpege_dbg(HAL_JPEGE_DBG_INPUT, fmt, ## __VA_ARGS__) 35 #define hal_jpege_dbg_output(fmt, ...) hal_jpege_dbg(HAL_JPEGE_DBG_OUTPUT, fmt, ## __VA_ARGS__) 36 37 #define hal_jpege_enter() hal_jpege_dbg_func("(%d) enter\n", __LINE__); 38 #define hal_jpege_leave() hal_jpege_dbg_func("(%d) leave\n", __LINE__); 39 40 41 extern RK_U32 hal_jpege_debug; 42 43 #endif /* __HAL_JPEGE_DEBUG_H__ */ 44