mae_debug.h

来自「AU1200嵌入式处理器媒体加速引擎(mae)的驱动」· C头文件 代码 · 共 71 行

H
71
字号
#ifndef __AU1XXX_DEBUG_H
#define __AU1XXX_DEBUG_H

#include "mae_types.h"

//
// DEBUG PRINTING

/* DPRINTF is a true debug message, should not be compiled into release to save driver size and performance */
#define DPRINTF(_test, _args) //RETAILMSG(_test, _args)
/* RPRINTF is a message that will be compiled into releases (i.e. critical error messages) */
#define RPRINTF(_test, _args) RETAILMSG(_test, _args)

/* Debug message category enables (you must also enable DPRINTF macro above!) */
#define MSG_ERROR       1
#define MSG_INIT        0
#define MSG_INTERRUPT   0
#define MSG_INFO        0
#define MSG_MEMORY      0
#define MSG_FUNCTION    0
#define MSG_FE          0
#define MSG_BE          0
#define MSG_OS          0
#define MSG_AV          0
#define MSG_BUFFER      0
#define MSG_IOCTL       0
#define MSG_TIME        0 /* frame time delivery info */
#define MSG_PAINT       0 /* frame painting statements */
#define MSG_STATE       0 /* state changes and info (very useful) */
#define MSG_BUFIF       0
#define MSG_POWER       0
#define MSG_LATE        0 /* info of late or out-of-sync frames */

typedef struct _DBGOUT {

	UINT32 avsync_pts;
	UINT32 dummy;

	UINT32 curr_isr_pts; // written last
	UINT32 prev_isr_pts;
	UINT32 fe_pts;
	UINT32 fe_frametype;
	UINT32 fe_bref_pts;
	UINT32 fe_bref_frametype;
	UINT32 fe_fref_pts;
	UINT32 fe_fref_frametype;
	UINT32 last_maeq_discarded_pts;
	UINT32 num_free_maeq_bufs;
	UINT32 be_pts;
	UINT32 last_yuvq_discarded_pts;
	UINT32 lcd_pts;
	UINT32 last_rgb_discarded_pts;
	UINT32 sw_proc_pts;
	UINT32 state_change;
	UINT32 mae_state;
	UINT32 intr_state;
	UINT32 errors;
	
	char *text;
} DBGOUT, *PDBGOUT;

// KK - this is used in special cases where debug prints can cause the timing to change (and not show up a certain problem)
#define NUM_DUMP_ENTRIES 150

typedef struct tag_dumpq_t {
    uint32 numEntries;
    char szDumpStr[NUM_DUMP_ENTRIES][80];
}DUMPQ_T, *PDUMPQ_T;

#endif /* __AU1XXX_DEBUG_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?