[cvs] / xvidcore / src / decoder.c Repository:
ViewVC logotype

Diff of /xvidcore/src/decoder.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.49.2.13, Wed Oct 1 23:23:00 2003 UTC revision 1.49.2.15, Tue Oct 7 13:02:35 2003 UTC
# Line 40  Line 40 
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"
# Line 327  Line 326 
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    
# Line 533  Line 532 
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    
# Line 658  Line 657 
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    
# Line 940  Line 939 
939                                  mb->quant = quant;                                  mb->quant = quant;
940    
941                                  if (dec->interlacing) {                                  if (dec->interlacing) {
942                                          if (cbp || intra) {                                          if ((cbp || intra) && !mcsel) {
943                                                  mb->field_dct = BitstreamGetBit(bs);                                                  mb->field_dct = BitstreamGetBit(bs);
944                                                  DPRINTF(XVID_DEBUG_MB,"decp: field_dct: %i\n", mb->field_dct);                                                  DPRINTF(XVID_DEBUG_MB,"decp: field_dct: %i\n", mb->field_dct);
945                                          }                                          }
# Line 1205  Line 1204 
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    
# Line 1445  Line 1444 
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    
# Line 1600  Line 1599 
1599                                                  quant = 1;                                                  quant = 1;
1600                                          }                                          }
1601                                  }                                  }
1602    
1603                                    if (dec->interlacing) {
1604                                            if (mb->cbp) {
1605                                                    mb->field_dct = BitstreamGetBit(bs);
1606                                                    DPRINTF(XVID_DEBUG_MB,"decp: field_dct: %i\n", mb->field_dct);
1607                                            }
1608    
1609                                            if (mb->mb_type) {
1610                                                    mb->field_pred = BitstreamGetBit(bs);
1611                                                    DPRINTF(XVID_DEBUG_MB, "decp: field_pred: %i\n", mb->field_pred);
1612    
1613                                                    if (mb->field_pred) {
1614                                                            mb->field_for_top = BitstreamGetBit(bs);
1615                                                            DPRINTF(XVID_DEBUG_MB,"decp: field_for_top: %i\n", mb->field_for_top);
1616                                                            mb->field_for_bot = BitstreamGetBit(bs);
1617                                                            DPRINTF(XVID_DEBUG_MB,"decp: field_for_bot: %i\n", mb->field_for_bot);
1618                                                    }
1619                                            }
1620                                    }
1621    
1622                          } else {                          } else {
1623                                  mb->mb_type = MODE_DIRECT_NONE_MV;                                  mb->mb_type = MODE_DIRECT_NONE_MV;
1624                                  mb->cbp = 0;                                  mb->cbp = 0;

Legend:
Removed from v.1.49.2.13  
changed lines
  Added in v.1.49.2.15

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4