[svn] / trunk / xvidcore / examples / xvid_encraw.c Repository:
ViewVC logotype

Diff of /trunk/xvidcore/examples/xvid_encraw.c

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

revision 1676, Tue Jan 17 19:06:25 2006 UTC revision 1683, Fri Feb 24 10:39:23 2006 UTC
# Line 21  Line 21 
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.23 2006-01-17 19:06:25 Isibaar Exp $   * $Id: xvid_encraw.c,v 1.24 2006-02-24 10:39:23 syskin Exp $
25   *   *
26   ****************************************************************************/   ****************************************************************************/
27    
# Line 164  Line 164 
164  static int ARG_VHQMODE = 0;  static int ARG_VHQMODE = 0;
165  static int ARG_BVHQ = 0;  static int ARG_BVHQ = 0;
166  static int ARG_CLOSED_GOP = 0;  static int ARG_CLOSED_GOP = 0;
167    static int ARG_THREADS = 0;
168    
169  #ifndef READ_PNM  #ifndef READ_PNM
170  #define IMAGE_SIZE(x,y) ((x)*(y)*3/2)  #define IMAGE_SIZE(x,y) ((x)*(y)*3/2)
# Line 397  Line 398 
398                          ARG_GMC = 1;                          ARG_GMC = 1;
399                  } else if (strcmp("-interlaced", argv[i]) == 0) {                  } else if (strcmp("-interlaced", argv[i]) == 0) {
400                          ARG_INTERLACING = 1;                          ARG_INTERLACING = 1;
401                    } else if (strcmp("-threads", argv[i]) == 0) {
402                            i++;
403                            ARG_THREADS = atoi(argv[i]);
404                  } else if (strcmp("-closed_gop", argv[i]) == 0) {                  } else if (strcmp("-closed_gop", argv[i]) == 0) {
405                          ARG_CLOSED_GOP = 1;                          ARG_CLOSED_GOP = 1;
406                  } else if (strcmp("-help", argv[i])) {                  } else if (strcmp("-help", argv[i])) {
# Line 1117  Line 1121 
1121          }          }
1122  #endif  #endif
1123    
1124          /* No fancy thread tests */          xvid_enc_create.num_threads = ARG_THREADS;
         xvid_enc_create.num_threads = 0;  
1125    
1126          /* Frame rate - Do some quick float fps = fincr/fbase hack */          /* Frame rate - Do some quick float fps = fincr/fbase hack */
1127          if ((ARG_FRAMERATE - (int) ARG_FRAMERATE) < SMALL_EPS) {          if ((ARG_FRAMERATE - (int) ARG_FRAMERATE) < SMALL_EPS) {

Legend:
Removed from v.1676  
changed lines
  Added in v.1683

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