[svn] / branches / dev-api-4 / xvidcore / vfw / src / codec.c Repository:
ViewVC logotype

Diff of /branches/dev-api-4/xvidcore/vfw/src/codec.c

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

revision 1245, Sat Dec 6 14:54:00 2003 UTC revision 1267, Wed Dec 17 15:16:16 2003 UTC
# Line 285  Line 285 
285                           * builds and that activates lot of other debug printfs. We only                           * builds and that activates lot of other debug printfs. We only
286                           * want these all the time */                           * want these all the time */
287                          char buf[1024];                          char buf[1024];
288                          sprintf(buf, "[%5i]   type=%c   Q:%2i   length:%6i",                          sprintf(buf, "[%6i]   type=%c   Q:%2i   length:%6i",
289                                          data->frame_num,                                          data->frame_num,
290                                          type2char(data->type),                                          type2char(data->type),
291                                          data->quant,                                          data->quant,
# Line 557  Line 557 
557          if ((profiles[codec->config.profile].flags & PROFILE_INTERLACE) && codec->config.interlacing)          if ((profiles[codec->config.profile].flags & PROFILE_INTERLACE) && codec->config.interlacing)
558                  frame.vol_flags |= XVID_VOL_INTERLACING;                  frame.vol_flags |= XVID_VOL_INTERLACING;
559    
560            if (codec->config.display_aspect_ratio !=0) {
561                    int ar_x;
562                    int ar_y;
563    
564                    if (codec->config.display_aspect_ratio == 1) {
565                            ar_x = 4;
566                            ar_y = 3;
567                    }
568                    if (codec->config.display_aspect_ratio == 2) {
569                            ar_x = 16;
570                            ar_y = 9;
571                    }
572    
573                    /* custom pixel aspect ratio -> calculated from DAR */
574                    frame.par = XVID_PAR_EXT;
575                    frame.par_width = (100 * inhdr->biHeight) / ar_y;
576                    frame.par_height= (100 * inhdr->biWidth) / ar_x;
577            } else {
578                    /* assuming defaults for now... */
579                    frame.par = XVID_PAR_11_VGA;
580            }
581    
582      /* vop stuff */      /* vop stuff */
583    
584          frame.vop_flags |= XVID_VOP_HALFPEL;          frame.vop_flags |= XVID_VOP_HALFPEL;

Legend:
Removed from v.1245  
changed lines
  Added in v.1267

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