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: xvid_encraw.c,v 1.11.2.34 2003-08-09 17:19:20 edgomez Exp $ |
* $Id: xvid_encraw.c,v 1.11.2.35 2003-08-10 13:10:09 Isibaar Exp $ |
25 |
* |
* |
26 |
****************************************************************************/ |
****************************************************************************/ |
27 |
|
|
1083 |
|
|
1084 |
/* Set up core's general features */ |
/* Set up core's general features */ |
1085 |
xvid_enc_frame.vop_flags = vop_presets[ARG_QUALITY]; |
xvid_enc_frame.vop_flags = vop_presets[ARG_QUALITY]; |
|
if (ARG_QPEL && (xvid_enc_frame.vop_flags & XVID_ME_HALFPELREFINE16)) |
|
|
xvid_enc_frame.vop_flags |= XVID_ME_QUARTERPELREFINE16; |
|
|
if (ARG_QPEL && (xvid_enc_frame.vop_flags & XVID_ME_HALFPELREFINE8)) |
|
|
xvid_enc_frame.vop_flags |= XVID_ME_QUARTERPELREFINE8; |
|
1086 |
if (ARG_GMC) |
if (ARG_GMC) |
1087 |
xvid_enc_frame.vop_flags |= XVID_ME_GME_REFINE; |
xvid_enc_frame.vop_flags |= XVID_ME_GME_REFINE; |
1088 |
|
|
1099 |
/* Set up motion estimation flags */ |
/* Set up motion estimation flags */ |
1100 |
xvid_enc_frame.motion = motion_presets[ARG_QUALITY]; |
xvid_enc_frame.motion = motion_presets[ARG_QUALITY]; |
1101 |
|
|
1102 |
|
if (ARG_QPEL) |
1103 |
|
xvid_enc_frame.motion |= XVID_ME_QUARTERPELREFINE16; |
1104 |
|
if (ARG_QPEL && (xvid_enc_frame.vop_flags & XVID_VOP_INTER4V)) |
1105 |
|
xvid_enc_frame.motion |= XVID_ME_QUARTERPELREFINE8; |
1106 |
|
|
1107 |
/* We don't use special matrices */ |
/* We don't use special matrices */ |
1108 |
xvid_enc_frame.quant_intra_matrix = NULL; |
xvid_enc_frame.quant_intra_matrix = NULL; |
1109 |
xvid_enc_frame.quant_inter_matrix = NULL; |
xvid_enc_frame.quant_inter_matrix = NULL; |