vld.h
来自「代码有点长,需细心阅读,仅供影音视听类产品的开发人员参考」· C头文件 代码 · 共 38 行
H
38 行
#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 + =
减小字号Ctrl + -
显示快捷键?