[svn] / branches / release-1_3-branch / xvidcore / examples / xvid_encraw.c Repository:
ViewVC logotype

Diff of /branches/release-1_3-branch/xvidcore/examples/xvid_encraw.c

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

revision 1909, Sun Nov 28 15:19:07 2010 UTC revision 1913, Sat Dec 18 16:02:08 2010 UTC
# Line 22  Line 22 
22   *  along with this program; if not, write to the Free Software   *  along with this program; if not, write to the Free Software
23   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
24   *   *
25   * $Id: xvid_encraw.c,v 1.45 2010-11-28 15:19:07 Isibaar Exp $   * $Id: xvid_encraw.c,v 1.46 2010-12-18 16:02:08 Isibaar Exp $
26   *   *
27   ****************************************************************************/   ****************************************************************************/
28    
# Line 257  Line 257 
257  static  int ARG_VBVMAXRATE = 0;  static  int ARG_VBVMAXRATE = 0;
258  static  int ARG_VBVPEAKRATE = 0;  static  int ARG_VBVPEAKRATE = 0;
259  static  int ARG_THREADS = 0;  static  int ARG_THREADS = 0;
260    static  int ARG_SLICES = 1;
261  static  int ARG_VFR = 0;  static  int ARG_VFR = 0;
262  static  int ARG_PROGRESS = 0;  static  int ARG_PROGRESS = 0;
263  static  int ARG_COLORSPACE = XVID_CSP_YV12;  static  int ARG_COLORSPACE = XVID_CSP_YV12;
# Line 447  Line 448 
448                  } else if (strcmp("-threads", argv[i]) == 0 && i < argc -1) {                  } else if (strcmp("-threads", argv[i]) == 0 && i < argc -1) {
449                          i++;                          i++;
450                          ARG_THREADS = atoi(argv[i]);                          ARG_THREADS = atoi(argv[i]);
451                    } else if (strcmp("-slices", argv[i]) == 0 && i < argc -1) {
452                            i++;
453                            ARG_SLICES = atoi(argv[i]);
454                  } else if (strcmp("-bquant_ratio", argv[i]) == 0 && i < argc - 1) {                  } else if (strcmp("-bquant_ratio", argv[i]) == 0 && i < argc - 1) {
455                          i++;                          i++;
456                          ARG_BQRATIO = atoi(argv[i]);                          ARG_BQRATIO = atoi(argv[i]);
# Line 1898  Line 1902 
1902          fprintf(stderr, " -drop    integer               : Frame Drop Ratio (0..100) (0)\n");          fprintf(stderr, " -drop    integer               : Frame Drop Ratio (0..100) (0)\n");
1903          fprintf(stderr, " -start   integer               : Starting frame number\n");          fprintf(stderr, " -start   integer               : Starting frame number\n");
1904          fprintf(stderr, " -threads integer               : Number of threads\n");          fprintf(stderr, " -threads integer               : Number of threads\n");
1905            fprintf(stderr, " -slices  integer               : Number of slices\n");
1906          fprintf(stderr, " -progress [integer]            : Show progress updates every n frames (10)\n");          fprintf(stderr, " -progress [integer]            : Show progress updates every n frames (10)\n");
1907          fprintf(stderr, " -par     integer[:integer]     : Set Pixel Aspect Ratio.\n");          fprintf(stderr, " -par     integer[:integer]     : Set Pixel Aspect Ratio.\n");
1908          fprintf(stderr, "                                  1 = 1:1\n");          fprintf(stderr, "                                  1 = 1:1\n");
# Line 2265  Line 2270 
2270  #endif  #endif
2271    
2272          xvid_enc_create.num_threads = ARG_THREADS;          xvid_enc_create.num_threads = ARG_THREADS;
2273            xvid_enc_create.num_slices  = ARG_SLICES;
2274    
2275          /* Frame rate  */          /* Frame rate  */
2276          xvid_enc_create.fincr = ARG_DWSCALE;          xvid_enc_create.fincr = ARG_DWSCALE;

Legend:
Removed from v.1909  
changed lines
  Added in v.1913

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