729 |
return (1); |
return (1); |
730 |
|
|
731 |
fscanf(handle, "%d %d %d", &xsize, &ysize, &depth); |
fscanf(handle, "%d %d %d", &xsize, &ysize, &depth); |
732 |
if ((xsize > 1440) || (ysize > 2880) || (depth != 255)) { |
if ((xsize > 4096) || (ysize > 4096*3/2) || (depth != 255)) { |
733 |
fprintf(stderr, "%d %d %d\n", xsize, ysize, depth); |
fprintf(stderr, "%d %d %d\n", xsize, ysize, depth); |
734 |
return (2); |
return (2); |
735 |
} |
} |
950 |
rc2pass2.filename = ARG_PASS2; |
rc2pass2.filename = ARG_PASS2; |
951 |
rc2pass2.bitrate = ARG_BITRATE; |
rc2pass2.bitrate = ARG_BITRATE; |
952 |
|
|
953 |
|
/* An example of activating VBV could look like this |
954 |
|
rc2pass2.vbv_size = 3145728; |
955 |
|
rc2pass2.vbv_initial = 2359296; |
956 |
|
rc2pass2.vbv_maxrate = 4000000; |
957 |
|
rc2pass2.vbv_peakrate = 10000000; |
958 |
|
*/ |
959 |
|
|
960 |
plugins[xvid_enc_create.num_plugins].func = xvid_plugin_2pass2; |
plugins[xvid_enc_create.num_plugins].func = xvid_plugin_2pass2; |
961 |
plugins[xvid_enc_create.num_plugins].param = &rc2pass2; |
plugins[xvid_enc_create.num_plugins].param = &rc2pass2; |
962 |
xvid_enc_create.num_plugins++; |
xvid_enc_create.num_plugins++; |
1101 |
|
|
1102 |
/* Set up core's general features */ |
/* Set up core's general features */ |
1103 |
xvid_enc_frame.vop_flags = vop_presets[ARG_QUALITY]; |
xvid_enc_frame.vop_flags = vop_presets[ARG_QUALITY]; |
|
if (ARG_GMC) |
|
|
xvid_enc_frame.vol_flags |= XVID_ME_GME_REFINE; |
|
1104 |
|
|
1105 |
if (ARG_VOPDEBUG) { |
if (ARG_VOPDEBUG) { |
1106 |
xvid_enc_frame.vop_flags |= XVID_VOP_DEBUG; |
xvid_enc_frame.vop_flags |= XVID_VOP_DEBUG; |
1115 |
/* Set up motion estimation flags */ |
/* Set up motion estimation flags */ |
1116 |
xvid_enc_frame.motion = motion_presets[ARG_QUALITY]; |
xvid_enc_frame.motion = motion_presets[ARG_QUALITY]; |
1117 |
|
|
1118 |
|
if (ARG_GMC) |
1119 |
|
xvid_enc_frame.motion |= XVID_ME_GME_REFINE; |
1120 |
|
|
1121 |
if (ARG_QPEL) |
if (ARG_QPEL) |
1122 |
xvid_enc_frame.motion |= XVID_ME_QUARTERPELREFINE16; |
xvid_enc_frame.motion |= XVID_ME_QUARTERPELREFINE16; |
1123 |
if (ARG_QPEL && (xvid_enc_frame.vop_flags & XVID_VOP_INTER4V)) |
if (ARG_QPEL && (xvid_enc_frame.vop_flags & XVID_VOP_INTER4V)) |