[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.34, Wed Jul 24 00:49:04 2002 UTC revision 1.38, Sat Sep 21 03:07:56 2002 UTC
# Line 53  Line 53 
53   *  26.03.2002  interlacing support - moved transfers outside decode loop   *  26.03.2002  interlacing support - moved transfers outside decode loop
54   *  26.12.2001  decoder_mbinter: dequant/idct moved within if(coded) block   *  26.12.2001  decoder_mbinter: dequant/idct moved within if(coded) block
55   *  22.12.2001  lock based interpolation   *  22.12.2001  lock based interpolation
56   *  01.12.2001  inital version; (c)2001 peter ross <pross@cs.rmit.edu.au>   *  01.12.2001  inital version; (c)2001 peter ross <pross@xvid.org>
57   *   *
58   *  $Id$   *  $Id$
59   *   *
# Line 653  Line 653 
653                                  mb->quant = quant;                                  mb->quant = quant;
654    
655                                  if (dec->interlacing) {                                  if (dec->interlacing) {
656                                            if (cbp || intra) {
657                                          mb->field_dct = BitstreamGetBit(bs);                                          mb->field_dct = BitstreamGetBit(bs);
658                                          DEBUG1("decp: field_dct: ", mb->field_dct);                                          DEBUG1("decp: field_dct: ", mb->field_dct);
659                                            }
660    
661                                          if (mb->mode == MODE_INTER || mb->mode == MODE_INTER_Q) {                                          if (mb->mode == MODE_INTER || mb->mode == MODE_INTER_Q) {
662                                                  mb->field_pred = BitstreamGetBit(bs);                                                  mb->field_pred = BitstreamGetBit(bs);
# Line 683  Line 685 
685                                                  mb->mvs[1].y = mb->mvs[2].y = mb->mvs[3].y =                                                  mb->mvs[1].y = mb->mvs[2].y = mb->mvs[3].y =
686                                                          mb->mvs[0].y;                                                          mb->mvs[0].y;
687                                          }                                          }
688                                  } else if (mb->mode ==                                  } else if (mb->mode == MODE_INTER4V ) {
689                                                     MODE_INTER4V /* || mb->mode == MODE_INTER4V_Q */ ) {  
690                                          get_motion_vector(dec, bs, x, y, 0, &mb->mvs[0], fcode, bound);                                          get_motion_vector(dec, bs, x, y, 0, &mb->mvs[0], fcode, bound);
691                                          get_motion_vector(dec, bs, x, y, 1, &mb->mvs[1], fcode, bound);                                          get_motion_vector(dec, bs, x, y, 1, &mb->mvs[1], fcode, bound);
692                                          get_motion_vector(dec, bs, x, y, 2, &mb->mvs[2], fcode, bound);                                          get_motion_vector(dec, bs, x, y, 2, &mb->mvs[2], fcode, bound);
# Line 704  Line 706 
706                                                                  rounding);                                                                  rounding);
707                          } else                          // not coded                          } else                          // not coded
708                          {                          {
709                                  //DEBUG2("P-frame MB at (X,Y)=",x,y);                                  DEBUG2("P-frame MB at (X,Y)=",x,y);
710                                  mb->mode = MODE_NOT_CODED;                                  mb->mode = MODE_NOT_CODED;
711                                  mb->mvs[0].x = mb->mvs[1].x = mb->mvs[2].x = mb->mvs[3].x = 0;                                  mb->mvs[0].x = mb->mvs[1].x = mb->mvs[2].x = mb->mvs[3].x = 0;
712                                  mb->mvs[0].y = mb->mvs[1].y = mb->mvs[2].y = mb->mvs[3].y = 0;                                  mb->mvs[0].y = mb->mvs[1].y = mb->mvs[2].y = mb->mvs[3].y = 0;
# Line 1277  Line 1279 
1279    
1280                          default:                          default:
1281                                  DEBUG1("Not support B-frame mb_type =", mb->mb_type);                                  DEBUG1("Not support B-frame mb_type =", mb->mb_type);
                                 ;  
1282                          }                          }
1283    
                         if ( (x==19) && (y==8) )  
                         {  
                                 fprintf(stderr,"D %d   %d    %d %d   %d %d  \n",0, mb->mb_type,  
                                                 mb->mvs[0].x, mb->mvs[0].y,mb->b_mvs[0].x, mb->b_mvs[0].y );  
                         }  
   
   
   
1284                  }                                               // end of FOR                  }                                               // end of FOR
1285          }          }
1286  #ifdef BFRAMES_DEC_DEBUG  #ifdef BFRAMES_DEC_DEBUG
# Line 1386  Line 1379 
1379    
1380  #ifdef BFRAMES_DEC  #ifdef BFRAMES_DEC
1381          // test if no B_VOP          // test if no B_VOP
1382          if (dec->low_delay) {          if (dec->low_delay || dec->frames == 0) {
1383  #endif  #endif
1384          image_output(&dec->cur, dec->width, dec->height, dec->edged_width,          image_output(&dec->cur, dec->width, dec->height, dec->edged_width,
1385                                           frame->image, frame->stride, frame->colorspace);                                           frame->image, frame->stride, frame->colorspace);
1386    
1387  #ifdef BFRAMES_DEC  #ifdef BFRAMES_DEC
1388          } else {          } else {
1389                  if (dec->frames >= 0) {                  if (dec->frames >= 1) {
1390                          start_timer();                          start_timer();
1391                          if ((vop_type == I_VOP || vop_type == P_VOP)) {                          if ((vop_type == I_VOP || vop_type == P_VOP)) {
1392                                  image_output(&dec->refn[0], dec->width, dec->height,                                  image_output(&dec->refn[0], dec->width, dec->height,

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.38

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