⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vld.h

📁 代码有点长,需细心阅读,仅供影音视听类产品的开发人员参考
💻 H
字号:
#ifndef	__VLD_H
#define	__VLD_H

/*
** Video Decoder VLD Status
**
** *NOTE* SVCD specific
*/

#include "regmap.h"

#define	VIDEO_STATUS	(regs0->vld_status)	// wait definition
#define	VIDEO_ERROR	(regs0->vld_status)	// wait definition
#define	VIDEO_ERROR_CON	(regs0->vld_status)	// wait definition

#define	VLD_STATE_VD		((VIDEO_STATUS >> 11))
#define	VLD_STATE_MV		((VIDEO_STATUS >>  7) & 0x000f)
#define	VLD_STATE_BK		((VIDEO_STATUS >>  4) & 0x0007)
#define VLD_STATE_SK		((VIDEO_STATUS >>  1) & 0x0007)
#define	VLD_STATE_EC		(VIDEO_ERROR >> 12)

/*
** MBV: MB vertical location (1 to max, 0 is an initial point)
** MBH: MB horizontal location (1 to max, 0 is an initial point)
** Out:	OutOfRange flag
** MB: Concealed MB count.
*/
#define	VLD_DecodeErrorMBVH()	(VIDEO_ERROR & 0x0fff)
#define	VLD_DecodeErrorMBV()	((VIDEO_ERROR & 0x0fc0) >> 6)
#define	VLD_DecodeErrorMBH()	((VIDEO_ERROR & 0x003f) >> 0)

#define	VLD_DecodeErrorOut()	(VIDEO_ERROR_CON & 0x8000)
//#define VLD_DecodeErrorMBC()  (VIDEO_ERROR_CON & 0x7ff0)
#define	VLD_DecodeErrorMBC()	((VIDEO_ERROR_CON & 0x7ff0) >> 4 )
#define	VLD_DecodeEnded()	(VIDEO_STATUS & 0x0001)

#endif/*__VLD_H*/

⌨️ 快捷键说明

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