|
|
@ -4,7 +4,7 @@
|
|
|
|
#define MACROBLOCK_PATTERN 2
|
|
|
|
#define MACROBLOCK_PATTERN 2
|
|
|
|
#define MACROBLOCK_MOTION_BACKWARD 4
|
|
|
|
#define MACROBLOCK_MOTION_BACKWARD 4
|
|
|
|
#define MACROBLOCK_MOTION_FORWARD 8
|
|
|
|
#define MACROBLOCK_MOTION_FORWARD 8
|
|
|
|
#define MACROBLOCK_TQUANT 16
|
|
|
|
#define MACROBLOCK_QUANT 16
|
|
|
|
#define DCT_TYPE_INTERLACED 32
|
|
|
|
#define DCT_TYPE_INTERLACED 32
|
|
|
|
|
|
|
|
|
|
|
|
/* motion_type */
|
|
|
|
/* motion_type */
|
|
|
@ -68,17 +68,17 @@ typedef struct {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define INTRA MACROBLOCK_INTRA
|
|
|
|
#define INTRA MACROBLOCK_INTRA
|
|
|
|
#define TQUANT MACROBLOCK_TQUANT
|
|
|
|
#define QUANT MACROBLOCK_QUANT
|
|
|
|
|
|
|
|
|
|
|
|
static const MBtab MB_I [] = {
|
|
|
|
static const MBtab MB_I [] = {
|
|
|
|
{INTRA|TQUANT, 2}, {INTRA, 1}
|
|
|
|
{INTRA|QUANT, 2}, {INTRA, 1}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#define MC MACROBLOCK_MOTION_FORWARD
|
|
|
|
#define MC MACROBLOCK_MOTION_FORWARD
|
|
|
|
#define CODED MACROBLOCK_PATTERN
|
|
|
|
#define CODED MACROBLOCK_PATTERN
|
|
|
|
|
|
|
|
|
|
|
|
static const MBtab MB_P [] = {
|
|
|
|
static const MBtab MB_P [] = {
|
|
|
|
{INTRA|TQUANT, 6}, {CODED|TQUANT, 5}, {MC|CODED|TQUANT, 5}, {INTRA, 5},
|
|
|
|
{INTRA|QUANT, 6}, {CODED|QUANT, 5}, {MC|CODED|QUANT, 5}, {INTRA, 5},
|
|
|
|
{MC, 3}, {MC, 3}, {MC, 3}, {MC, 3},
|
|
|
|
{MC, 3}, {MC, 3}, {MC, 3}, {MC, 3},
|
|
|
|
{CODED, 2}, {CODED, 2}, {CODED, 2}, {CODED, 2},
|
|
|
|
{CODED, 2}, {CODED, 2}, {CODED, 2}, {CODED, 2},
|
|
|
|
{CODED, 2}, {CODED, 2}, {CODED, 2}, {CODED, 2},
|
|
|
|
{CODED, 2}, {CODED, 2}, {CODED, 2}, {CODED, 2},
|
|
|
@ -93,9 +93,9 @@ static const MBtab MB_P [] = {
|
|
|
|
#define INTER MACROBLOCK_MOTION_FORWARD|MACROBLOCK_MOTION_BACKWARD
|
|
|
|
#define INTER MACROBLOCK_MOTION_FORWARD|MACROBLOCK_MOTION_BACKWARD
|
|
|
|
|
|
|
|
|
|
|
|
static const MBtab MB_B [] = {
|
|
|
|
static const MBtab MB_B [] = {
|
|
|
|
{0, 0}, {INTRA|TQUANT, 6},
|
|
|
|
{0, 0}, {INTRA|QUANT, 6},
|
|
|
|
{BWD|CODED|TQUANT, 6}, {FWD|CODED|TQUANT, 6},
|
|
|
|
{BWD|CODED|QUANT, 6}, {FWD|CODED|QUANT, 6},
|
|
|
|
{INTER|CODED|TQUANT, 5}, {INTER|CODED|TQUANT, 5},
|
|
|
|
{INTER|CODED|QUANT, 5}, {INTER|CODED|QUANT, 5},
|
|
|
|
{INTRA, 5}, {INTRA, 5},
|
|
|
|
{INTRA, 5}, {INTRA, 5},
|
|
|
|
{FWD, 4}, {FWD, 4}, {FWD, 4}, {FWD, 4},
|
|
|
|
{FWD, 4}, {FWD, 4}, {FWD, 4}, {FWD, 4},
|
|
|
|
{FWD|CODED, 4}, {FWD|CODED, 4}, {FWD|CODED, 4}, {FWD|CODED, 4},
|
|
|
|
{FWD|CODED, 4}, {FWD|CODED, 4}, {FWD|CODED, 4}, {FWD|CODED, 4},
|
|
|
@ -114,7 +114,7 @@ static const MBtab MB_B [] = {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#undef INTRA
|
|
|
|
#undef INTRA
|
|
|
|
#undef TQUANT
|
|
|
|
#undef QUANT
|
|
|
|
#undef MC
|
|
|
|
#undef MC
|
|
|
|
#undef CODED
|
|
|
|
#undef CODED
|
|
|
|
#undef FWD
|
|
|
|
#undef FWD
|
|
|
|