[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.16, Mon May 6 03:58:09 2002 UTC revision 1.17, Thu May 9 00:15:51 2002 UTC
# Line 32  Line 32 
32   *   *
33   *  History:   *  History:
34   *   *
35     *  08.05.2002  add low_delay support for B_VOP decode
36     *              MinChen <chenm001@163.com>
37     *  05.05.2002  fix some B-frame decode problem
38   *  02.05.2002  add B-frame decode support(have some problem);   *  02.05.2002  add B-frame decode support(have some problem);
39   *              MinChen <chenm001@163.com>   *              MinChen <chenm001@163.com>
40   *  22.04.2002  add some B-frame decode support;  chenm001 <chenm001@163.com>   *  22.04.2002  add some B-frame decode support;  chenm001 <chenm001@163.com>
# Line 1172  Line 1175 
1175    
1176          frame->length = BitstreamPos(&bs) / 8;          frame->length = BitstreamPos(&bs) / 8;
1177    
1178            // test if no B_VOP
1179            if (dec->low_delay){
1180                image_output(&dec->cur, dec->width, dec->height, dec->edged_width,
1181                                         frame->image, frame->stride, frame->colorspace);
1182            } else {
1183          if (dec->frames >= 1){          if (dec->frames >= 1){
1184                  start_timer();                  start_timer();
1185                  if ((vop_type == I_VOP || vop_type == P_VOP))                  if ((vop_type == I_VOP || vop_type == P_VOP))
# Line 1184  Line 1192 
1192                  }                  }
1193                  stop_conv_timer();                  stop_conv_timer();
1194          }          }
1195            }
1196          if (vop_type==I_VOP || vop_type==P_VOP){          if (vop_type==I_VOP || vop_type==P_VOP){
1197                  image_swap(&dec->refn[0], &dec->refn[1]);                  image_swap(&dec->refn[0], &dec->refn[1]);
1198                  image_swap(&dec->cur, &dec->refn[0]);                  image_swap(&dec->cur, &dec->refn[0]);
1199                  // swap MACROBLOCK                  // swap MACROBLOCK
1200                  if (vop_type==P_VOP)                  if (dec->low_delay && vop_type==P_VOP)
1201                          mb_swap(&dec->mbs, &dec->last_mbs);                          mb_swap(&dec->mbs, &dec->last_mbs);
1202          }          }
1203    

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

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