[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.36, Sat Aug 3 05:36:18 2002 UTC
# Line 683  Line 683 
683                                                  mb->mvs[1].y = mb->mvs[2].y = mb->mvs[3].y =                                                  mb->mvs[1].y = mb->mvs[2].y = mb->mvs[3].y =
684                                                          mb->mvs[0].y;                                                          mb->mvs[0].y;
685                                          }                                          }
686                                  } else if (mb->mode ==                                  } else if (mb->mode == MODE_INTER4V ) {
687                                                     MODE_INTER4V /* || mb->mode == MODE_INTER4V_Q */ ) {  
688                                          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);
689                                          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);
690                                          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 704 
704                                                                  rounding);                                                                  rounding);
705                          } else                          // not coded                          } else                          // not coded
706                          {                          {
707                                  //DEBUG2("P-frame MB at (X,Y)=",x,y);                                  DEBUG2("P-frame MB at (X,Y)=",x,y);
708                                  mb->mode = MODE_NOT_CODED;                                  mb->mode = MODE_NOT_CODED;
709                                  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;
710                                  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 1277 
1277    
1278                          default:                          default:
1279                                  DEBUG1("Not support B-frame mb_type =", mb->mb_type);                                  DEBUG1("Not support B-frame mb_type =", mb->mb_type);
                                 ;  
                         }  
   
                         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 );  
1280                          }                          }
1281    
   
   
1282                  }                                               // end of FOR                  }                                               // end of FOR
1283          }          }
1284  #ifdef BFRAMES_DEC_DEBUG  #ifdef BFRAMES_DEC_DEBUG
# Line 1386  Line 1377 
1377    
1378  #ifdef BFRAMES_DEC  #ifdef BFRAMES_DEC
1379          // test if no B_VOP          // test if no B_VOP
1380          if (dec->low_delay) {          if (dec->low_delay || dec->frames == 0) {
1381  #endif  #endif
1382          image_output(&dec->cur, dec->width, dec->height, dec->edged_width,          image_output(&dec->cur, dec->width, dec->height, dec->edged_width,
1383                                           frame->image, frame->stride, frame->colorspace);                                           frame->image, frame->stride, frame->colorspace);
1384    
1385  #ifdef BFRAMES_DEC  #ifdef BFRAMES_DEC
1386          } else {          } else {
1387                  if (dec->frames >= 0) {                  if (dec->frames >= 1) {
1388                          start_timer();                          start_timer();
1389                          if ((vop_type == I_VOP || vop_type == P_VOP)) {                          if ((vop_type == I_VOP || vop_type == P_VOP)) {
1390                                  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.36

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