[svn] / branches / dev-api-4 / xvidcore / examples / xvid_encraw.c Repository:
ViewVC logotype

Diff of /branches/dev-api-4/xvidcore/examples/xvid_encraw.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 977, Tue Apr 8 14:01:35 2003 UTC revision 988, Mon Apr 14 20:19:00 2003 UTC
# Line 19  Line 19 
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    
# Line 768  Line 768 
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;
# Line 778  Line 778 
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;
# Line 789  Line 790 
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    
# Line 800  Line 801 
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;

Legend:
Removed from v.977  
changed lines
  Added in v.988

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4