[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.51.2.2, Mon Apr 19 12:33:34 2004 UTC revision 1.54, Sun Apr 11 09:41:27 2004 UTC
# Line 4  Line 4 
4   *  - Decoder Module -   *  - Decoder Module -
5   *   *
6   *  Copyright(C) 2002      MinChen <chenm001@163.com>   *  Copyright(C) 2002      MinChen <chenm001@163.com>
7   *               2002-2003 Peter Ross <pross@xvid.org>   *               2002-2004 Peter Ross <pross@xvid.org>
8   *   *
9   *  This program is free software ; you can redistribute it and/or modify   *  This program is free software ; you can redistribute it and/or modify
10   *  it under the terms of the GNU General Public License as published by   *  it under the terms of the GNU General Public License as published by
# Line 222  Line 222 
222          dec->time = dec->time_base = dec->last_time_base = 0;          dec->time = dec->time_base = dec->last_time_base = 0;
223          dec->low_delay = 0;          dec->low_delay = 0;
224          dec->packed_mode = 0;          dec->packed_mode = 0;
         dec->time_inc_resolution = 1; /* until VOL header says otherwise */  
225    
226          dec->fixed_dimensions = (dec->width > 0 && dec->height > 0);          dec->fixed_dimensions = (dec->width > 0 && dec->height > 0);
227    
# Line 1364  Line 1363 
1363          if (dec->cartoon_mode)          if (dec->cartoon_mode)
1364                  frame->general &= ~XVID_FILMEFFECT;                  frame->general &= ~XVID_FILMEFFECT;
1365    
1366          if (frame->general & (XVID_DEBLOCKY|XVID_DEBLOCKUV|XVID_FILMEFFECT) && mbs != NULL)     /* post process */          if ((frame->general & (XVID_DEBLOCKY|XVID_DEBLOCKUV|XVID_FILMEFFECT) || frame->brightness!=0)
1367                    && mbs != NULL) /* post process */
1368          {          {
1369                  /* note: image is stored to tmp */                  /* note: image is stored to tmp */
1370                  image_copy(&dec->tmp, img, dec->edged_width, dec->height);                  image_copy(&dec->tmp, img, dec->edged_width, dec->height);
1371                  image_postproc(&dec->postproc, &dec->tmp, dec->edged_width,                  image_postproc(&dec->postproc, &dec->tmp, dec->edged_width,
1372                                             mbs, dec->mb_width, dec->mb_height, dec->mb_width,                                             mbs, dec->mb_width, dec->mb_height, dec->mb_width,
1373                                             frame->general, dec->frames, (coding_type == B_VOP));                                             frame->general, frame->brightness, dec->frames, (coding_type == B_VOP));
1374                  img = &dec->tmp;                  img = &dec->tmp;
1375          }          }
1376    
# Line 1490  Line 1490 
1490                  goto repeat;                  goto repeat;
1491          }          }
1492    
         if(dec->frames == 0 && coding_type != I_VOP) {  
                 /* 1st frame is not an i-vop */  
                 goto repeat;  
         }  
   
1493          dec->p_bmv.x = dec->p_bmv.y = dec->p_fmv.y = dec->p_fmv.y = 0;  /* init pred vector to 0 */          dec->p_bmv.x = dec->p_bmv.y = dec->p_fmv.y = dec->p_fmv.y = 0;  /* init pred vector to 0 */
1494    
1495          /* packed_mode: special-N_VOP treament */          /* packed_mode: special-N_VOP treament */

Legend:
Removed from v.1.51.2.2  
changed lines
  Added in v.1.54

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