20 |
* along with this program ; if not, write to the Free Software |
* along with this program ; if not, write to the Free Software |
21 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
22 |
* |
* |
23 |
* $Id: decoder.c,v 1.49.2.14 2003-10-03 15:49:21 syskin Exp $ |
* $Id: decoder.c,v 1.49.2.15 2003-10-07 13:02:35 edgomez Exp $ |
24 |
* |
* |
25 |
****************************************************************************/ |
****************************************************************************/ |
26 |
|
|
40 |
#include "bitstream/bitstream.h" |
#include "bitstream/bitstream.h" |
41 |
#include "bitstream/mbcoding.h" |
#include "bitstream/mbcoding.h" |
42 |
|
|
43 |
#include "quant/quant_h263.h" |
#include "quant/quant.h" |
|
#include "quant/quant_mpeg4.h" |
|
44 |
#include "dct/idct.h" |
#include "dct/idct.h" |
45 |
#include "dct/fdct.h" |
#include "dct/fdct.h" |
46 |
#include "utils/mem_transfer.h" |
#include "utils/mem_transfer.h" |
326 |
|
|
327 |
start_timer(); |
start_timer(); |
328 |
if (dec->quant_type == 0) { |
if (dec->quant_type == 0) { |
329 |
dequant_intra(&data[i * 64], &block[i * 64], iQuant, iDcScaler); |
dequant_h263_intra(&data[i * 64], &block[i * 64], iQuant, iDcScaler); |
330 |
} else { |
} else { |
331 |
dequant4_intra(&data[i * 64], &block[i * 64], iQuant, iDcScaler); |
dequant_mpeg_intra(&data[i * 64], &block[i * 64], iQuant, iDcScaler); |
332 |
} |
} |
333 |
stop_iquant_timer(); |
stop_iquant_timer(); |
334 |
|
|
532 |
|
|
533 |
start_timer(); |
start_timer(); |
534 |
if (dec->quant_type == 0) { |
if (dec->quant_type == 0) { |
535 |
dequant_inter(&data[i * 64], &block[i * 64], iQuant); |
dequant_h263_inter(&data[i * 64], &block[i * 64], iQuant); |
536 |
} else { |
} else { |
537 |
dequant4_inter(&data[i * 64], &block[i * 64], iQuant); |
dequant_mpeg_inter(&data[i * 64], &block[i * 64], iQuant); |
538 |
} |
} |
539 |
stop_iquant_timer(); |
stop_iquant_timer(); |
540 |
|
|
657 |
|
|
658 |
start_timer(); |
start_timer(); |
659 |
if (dec->quant_type == 0) { |
if (dec->quant_type == 0) { |
660 |
dequant_inter(&data[i * 64], &block[i * 64], iQuant); |
dequant_h263_inter(&data[i * 64], &block[i * 64], iQuant); |
661 |
} else { |
} else { |
662 |
dequant4_inter(&data[i * 64], &block[i * 64], iQuant); |
dequant_mpeg_inter(&data[i * 64], &block[i * 64], iQuant); |
663 |
} |
} |
664 |
stop_iquant_timer(); |
stop_iquant_timer(); |
665 |
|
|
1204 |
|
|
1205 |
start_timer(); |
start_timer(); |
1206 |
if (dec->quant_type == 0) { |
if (dec->quant_type == 0) { |
1207 |
dequant_inter(&data[i * 64], &block[i * 64], iQuant); |
dequant_h263_inter(&data[i * 64], &block[i * 64], iQuant); |
1208 |
} else { |
} else { |
1209 |
dequant4_inter(&data[i * 64], &block[i * 64], iQuant); |
dequant_mpeg_inter(&data[i * 64], &block[i * 64], iQuant); |
1210 |
} |
} |
1211 |
stop_iquant_timer(); |
stop_iquant_timer(); |
1212 |
|
|
1444 |
|
|
1445 |
start_timer(); |
start_timer(); |
1446 |
if (dec->quant_type == 0) { |
if (dec->quant_type == 0) { |
1447 |
dequant_inter(&data[i * 64], &block[i * 64], iQuant); |
dequant_h263_inter(&data[i * 64], &block[i * 64], iQuant); |
1448 |
} else { |
} else { |
1449 |
dequant4_inter(&data[i * 64], &block[i * 64], iQuant); |
dequant_mpeg_inter(&data[i * 64], &block[i * 64], iQuant); |
1450 |
} |
} |
1451 |
stop_iquant_timer(); |
stop_iquant_timer(); |
1452 |
|
|