1 /****************************************************************************** 2 * 3 * Copyright (C) 2018 The Android Open Source Project 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at: 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 * 17 ***************************************************************************** 18 * Originally developed and contributed by Ittiam Systems Pvt. Ltd, Bangalore 19 */ 20 /****************************************************************************/ 21 /* */ 22 /* File Name : trace_support.h */ 23 /* */ 24 /* Description : Defines the functions for trace_support.c */ 25 /* */ 26 /* List of Functions : */ 27 /* */ 28 /* Issues / Problems : */ 29 /* */ 30 /* Revision History : */ 31 /* */ 32 /* DD MM YYYY Author(s) Changes (Describe the changes) */ 33 /* 24 03 2008 DPKA Creation */ 34 /****************************************************************************/ 35 #ifndef TRACE_SUPPORT_H 36 #define TRACE_SUPPORT_H 37 38 #define TRACE_SUPPORT 0 39 40 #define RC_DEBUG_LEVEL_1 0 41 42 #define RC_2PASS_GOP_DEBUG 0 43 44 #define HEVC_RC 1 45 46 typedef struct 47 { 48 WORD8 *pu1_buf; 49 WORD32 i4_offset; 50 WORD32 i4_max_size; 51 } trace_support_t; 52 53 void init_trace_support(WORD8 *pu1_buf, WORD32 i4_size); 54 55 #if TRACE_SUPPORT 56 #define trace_printf(...) printf(__VA_ARGS__) 57 #else 58 #define trace_printf(...) 59 #endif 60 61 #define ASSERT(x) assert((x)) 62 //#define ASSERT(x) ihevcd_debug_assert((x)) 63 64 #endif 65