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, |
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.ar_mode == 0) { /* PAR */ |
561 |
|
if (codec->config.display_aspect_ratio != 5) { |
562 |
|
frame.par = codec->config.display_aspect_ratio + 1; |
563 |
|
} else { |
564 |
|
frame.par = XVID_PAR_EXT; |
565 |
|
frame.par_width = codec->config.par_x; |
566 |
|
frame.par_height= codec->config.par_y; |
567 |
|
} |
568 |
|
} else { /* AR */ |
569 |
|
/* custom pixel aspect ratio -> calculated from DAR */ |
570 |
|
frame.par = XVID_PAR_EXT; |
571 |
|
frame.par_width = (100 * inhdr->biHeight) / codec->config.ar_y; |
572 |
|
frame.par_height= (100 * inhdr->biWidth) / codec->config.ar_x;; |
573 |
|
} |
574 |
|
|
575 |
/* vop stuff */ |
/* vop stuff */ |
576 |
|
|
577 |
frame.vop_flags |= XVID_VOP_HALFPEL; |
frame.vop_flags |= XVID_VOP_HALFPEL; |