19 |
* along with this program; if not, write to the Free Software |
* along with this program; if not, write to the Free Software |
20 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
* |
* |
22 |
* $Id: xvid_encraw.c,v 1.11.2.15 2003-04-08 14:01:35 suxen_drol Exp $ |
* $Id: xvid_encraw.c,v 1.11.2.16 2003-04-14 20:19:00 edgomez Exp $ |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
25 |
|
|
768 |
xvid_enc_create.num_plugins = 0; |
xvid_enc_create.num_plugins = 0; |
769 |
|
|
770 |
if (ARG_BITRATE) { |
if (ARG_BITRATE) { |
|
cbr.version = XVID_VERSION; |
|
771 |
memset(&cbr, 0, sizeof(xvid_plugin_cbr_t)); |
memset(&cbr, 0, sizeof(xvid_plugin_cbr_t)); |
772 |
|
cbr.version = XVID_VERSION; |
773 |
cbr.bitrate = ARG_BITRATE; |
cbr.bitrate = ARG_BITRATE; |
774 |
|
|
775 |
plugins[xvid_enc_create.num_plugins].func = xvid_plugin_cbr; |
plugins[xvid_enc_create.num_plugins].func = xvid_plugin_cbr; |
778 |
} |
} |
779 |
|
|
780 |
if (ARG_QUANTI) { |
if (ARG_QUANTI) { |
781 |
|
memset(&rcfixed, 0, sizeof(xvid_plugin_fixed_t)); |
782 |
rcfixed.version = XVID_VERSION; |
rcfixed.version = XVID_VERSION; |
783 |
/* We will use a 1/10 precision, just to make sure it works */ |
/* We will use a 1/10 precision, just to make sure it works */ |
784 |
rcfixed.quant_base = 10; |
rcfixed.quant_base = 10; |
790 |
} |
} |
791 |
|
|
792 |
if (ARG_PASS2) { |
if (ARG_PASS2) { |
|
rc2pass2.version = XVID_VERSION; |
|
793 |
memset(&rc2pass2, 0, sizeof(xvid_plugin_2pass2_t)); |
memset(&rc2pass2, 0, sizeof(xvid_plugin_2pass2_t)); |
794 |
|
rc2pass2.version = XVID_VERSION; |
795 |
rc2pass2.filename = ARG_PASS2; |
rc2pass2.filename = ARG_PASS2; |
796 |
rc2pass2.bitrate = ARG_PASS2_BITRATE; |
rc2pass2.bitrate = ARG_PASS2_BITRATE; |
797 |
|
|
801 |
} |
} |
802 |
|
|
803 |
if (ARG_PASS1) { |
if (ARG_PASS1) { |
|
rc2pass1.version = XVID_VERSION; |
|
804 |
memset(&rc2pass1, 0, sizeof(xvid_plugin_2pass1_t)); |
memset(&rc2pass1, 0, sizeof(xvid_plugin_2pass1_t)); |
805 |
|
rc2pass1.version = XVID_VERSION; |
806 |
rc2pass1.filename = ARG_PASS1; |
rc2pass1.filename = ARG_PASS1; |
807 |
|
|
808 |
plugins[xvid_enc_create.num_plugins].func = xvid_plugin_2pass1; |
plugins[xvid_enc_create.num_plugins].func = xvid_plugin_2pass1; |