all.h 923 Bytes
/*
	Integrated MacroBlock Decoding
*/


#define	MB_BASE		0x200

#define	MBH_MBTYPE	eval(MB_BASE+0x0)
#define	MBH_CBP		eval(MB_BASE+0x2)
#define	MBH_QUANT	eval(MB_BASE+0x4)
#define	MBH_MVFX	eval(MB_BASE+0x6)
#define	MBH_MVFY	eval(MB_BASE+0x8)
#define	MBH_MVBX	eval(MB_BASE+0xa)
#define	MBH_MVBY	eval(MB_BASE+0xc)
#define	MBH_BNUM	eval(MB_BASE+0xe)

#define	MB_DATA		eval(MB_BASE+0x10)
#define MB_DATA_SIZE	6*64*2
#define MB_YREF_SIZE	16*17*2
#define MB_UVREF_SIZE	16*9*2

#define	MB_DATA_FREF	eval(MB_DATA+MB_DATA_SIZE)
#define	MB_DATA_BREF	eval(MB_DATA_FREF+MB_YREF_SIZE+MB_UVREF_SIZE)

#define	PREV_MBTYPE	0x10
#define	PREV_QUANT	0x12
#define	MAX_BLKNUM	0x14

#define MBT_INTRA	0x8000
#define MBT_FOR		0x2000
#define MBT_BAK		0x1000
#define MBT_REQUANT	0x0100

.name	rzero,		$0

.name	flag,		$1
.name	quant,		$2
.name	adum,		$3

.name	mbtype,		$21
.name	maxblk,		$22
.name	cbp,		$23
.name	blknum,		$24
.name	blkbit,		$25