📄 vld.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 + -