19 |
* along with this program; if not, write to the Free Software |
* along with this program; if not, write to the Free Software |
20 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
* |
* |
22 |
* $Id: decoder.c,v 1.49 2003-02-19 21:59:30 edgomez Exp $ |
* $Id: decoder.c,v 1.50 2003-06-09 17:02:38 Isibaar Exp $ |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
25 |
|
|
1752 |
int success = 0; |
int success = 0; |
1753 |
int output = 0; |
int output = 0; |
1754 |
int seen_something = 0; |
int seen_something = 0; |
1755 |
|
idctFuncPtr idct_save = idct; |
1756 |
|
|
1757 |
start_global_timer(); |
start_global_timer(); |
1758 |
|
|
1840 |
|
|
1841 |
dec->p_bmv.x = dec->p_bmv.y = dec->p_fmv.y = dec->p_fmv.y = 0; /* init pred vector to 0 */ |
dec->p_bmv.x = dec->p_bmv.y = dec->p_fmv.y = dec->p_fmv.y = 0; /* init pred vector to 0 */ |
1842 |
|
|
1843 |
|
if((idct == simple_idct_mmx) && (dec->bs_version < 10)) /* rather ugly but should work */ |
1844 |
|
idct = idct_mmx; |
1845 |
|
|
1846 |
/* packed_mode: special-N_VOP treament */ |
/* packed_mode: special-N_VOP treament */ |
1847 |
if (dec->packed_mode && vop_type == N_VOP) |
if (dec->packed_mode && vop_type == N_VOP) |
1964 |
} |
} |
1965 |
} |
} |
1966 |
|
|
1967 |
|
idct = idct_save; |
1968 |
|
|
1969 |
frame->length = BitstreamPos(&bs) / 8; |
frame->length = BitstreamPos(&bs) / 8; |
1970 |
|
|
1971 |
if (stats) |
if (stats) |