68 |
|
|
69 |
#include "xvid.h" |
#include "xvid.h" |
70 |
#include "portab.h" |
#include "portab.h" |
71 |
|
#include "global.h" |
72 |
|
|
73 |
#include "decoder.h" |
#include "decoder.h" |
74 |
#include "bitstream/bitstream.h" |
#include "bitstream/bitstream.h" |
385 |
|
|
386 |
|
|
387 |
|
|
|
|
|
|
#define SIGN(X) (((X)>0)?1:-1) |
|
|
#define ABS(X) (((X)>0)?(X):-(X)) |
|
|
|
|
388 |
// decode an inter macroblock |
// decode an inter macroblock |
389 |
|
|
390 |
void |
void |
1702 |
if (vop_type == - 1) |
if (vop_type == - 1) |
1703 |
{ |
{ |
1704 |
if (success) goto done; |
if (success) goto done; |
1705 |
|
emms(); |
1706 |
return XVID_ERR_FAIL; |
return XVID_ERR_FAIL; |
1707 |
} |
} |
1708 |
|
|
1723 |
stats->data.vol.par_width = dec->par_width; |
stats->data.vol.par_width = dec->par_width; |
1724 |
stats->data.vol.par_height = dec->par_height; |
stats->data.vol.par_height = dec->par_height; |
1725 |
frame->length = BitstreamPos(&bs) / 8; |
frame->length = BitstreamPos(&bs) / 8; |
1726 |
|
emms(); |
1727 |
return XVID_ERR_OK; |
return XVID_ERR_OK; |
1728 |
} |
} |
1729 |
goto repeat; |
goto repeat; |