21 |
* along with this program ; if not, write to the Free Software |
* along with this program ; if not, write to the Free Software |
22 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
23 |
* |
* |
24 |
* $Id: encoder.c,v 1.106 2004-07-17 11:42:46 edgomez Exp $ |
* $Id: encoder.c,v 1.109 2004-12-05 13:01:27 syskin Exp $ |
25 |
* |
* |
26 |
****************************************************************************/ |
****************************************************************************/ |
27 |
|
|
103 |
if (*base > 65535 || *inc > 65535) { |
if (*base > 65535 || *inc > 65535) { |
104 |
int *biggest; |
int *biggest; |
105 |
int *other; |
int *other; |
106 |
|
float div; |
107 |
|
|
108 |
if (*base > *inc) { |
if (*base > *inc) { |
109 |
biggest = base; |
biggest = base; |
113 |
other = base; |
other = base; |
114 |
} |
} |
115 |
|
|
116 |
float div = ((float)*biggest)/((float)65535); |
div = ((float)*biggest)/((float)65535); |
117 |
*biggest = (int)(((float)*biggest)/div); |
*biggest = (int)(((float)*biggest)/div); |
118 |
*other = (int)(((float)*other)/div); |
*other = (int)(((float)*other)/div); |
119 |
} |
} |
1697 |
pParam->height, |
pParam->height, |
1698 |
pParam->edged_width, |
pParam->edged_width, |
1699 |
(current->vol_flags & XVID_VOL_QUARTERPEL), |
(current->vol_flags & XVID_VOL_QUARTERPEL), |
|
(current->vop_flags & XVID_VOP_REDUCED), |
|
1700 |
current->rounding_type); |
current->rounding_type); |
1701 |
|
|
1702 |
stop_comp_timer(); |
stop_comp_timer(); |
2016 |
if (mb->mode == MODE_NOT_CODED) { |
if (mb->mode == MODE_NOT_CODED) { |
2017 |
if (pEnc->mbParam.plugin_flags & XVID_REQORIGINAL) { |
if (pEnc->mbParam.plugin_flags & XVID_REQORIGINAL) { |
2018 |
MBMotionCompensation(mb, x, y, f_ref, NULL, f_ref, NULL, NULL, &frame->image, |
MBMotionCompensation(mb, x, y, f_ref, NULL, f_ref, NULL, NULL, &frame->image, |
2019 |
NULL, 0, 0, pEnc->mbParam.edged_width, 0, 0, 0); |
NULL, 0, 0, pEnc->mbParam.edged_width, 0, 0); |
2020 |
} |
} |
2021 |
|
|
2022 |
continue; |
continue; |