[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 1019, Wed May 14 11:53:16 2003 UTC revision 1027, Thu May 15 17:53:11 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.22 2003-05-14 11:53:16 suxen_drol Exp $   * $Id: xvid_encraw.c,v 1.11.2.24 2003-05-15 17:53:11 edgomez Exp $
23   *   *
24   ****************************************************************************/   ****************************************************************************/
25    
# Line 87  Line 87 
87          0,          0,
88    
89          /* quality 1 */          /* quality 1 */
90          XVID_VOP_DYNAMIC_BFRAMES,          0,
91    
92          /* quality 2 */          /* quality 2 */
93          XVID_VOP_DYNAMIC_BFRAMES | XVID_VOP_HALFPEL,          XVID_VOP_HALFPEL,
94    
95          /* quality 3 */          /* quality 3 */
96          XVID_VOP_DYNAMIC_BFRAMES | XVID_VOP_HALFPEL |          XVID_VOP_HALFPEL | XVID_VOP_INTER4V,
         XVID_VOP_INTER4V,  
97    
98          /* quality 4 */          /* quality 4 */
99          XVID_VOP_DYNAMIC_BFRAMES | XVID_VOP_HALFPEL |          XVID_VOP_HALFPEL | XVID_VOP_INTER4V,
         XVID_VOP_INTER4V,  
100    
101          /* quality 5 */          /* quality 5 */
102          XVID_VOP_DYNAMIC_BFRAMES | XVID_VOP_HALFPEL |          XVID_VOP_HALFPEL | XVID_VOP_INTER4V |
103          XVID_VOP_INTER4V | XVID_VOP_TRELLISQUANT,          XVID_VOP_TRELLISQUANT,
104    
105          /* quality 6 */          /* quality 6 */
106          XVID_VOP_DYNAMIC_BFRAMES | XVID_VOP_HALFPEL |          XVID_VOP_HALFPEL | XVID_VOP_INTER4V |
107          XVID_VOP_INTER4V | XVID_VOP_TRELLISQUANT |          XVID_VOP_TRELLISQUANT | XVID_VOP_HQACPRED,
         XVID_VOP_HQACPRED,  
108    
109  };  };
110  #define VOP_ELEMENTS (sizeof(vop_presets)/sizeof(vop_presets[0]))  #define VOP_ELEMENTS (sizeof(vop_presets)/sizeof(vop_presets[0]))
# Line 131  Line 128 
128  static int ARG_SINGLE = 0;  static int ARG_SINGLE = 0;
129  static char *ARG_PASS1 = 0;  static char *ARG_PASS1 = 0;
130  static char *ARG_PASS2 = 0;  static char *ARG_PASS2 = 0;
131  static int ARG_QUALITY = 3;  static int ARG_QUALITY = ME_ELEMENTS - 1;
132  static float ARG_FRAMERATE = 25.00f;  static float ARG_FRAMERATE = 25.00f;
133  static int ARG_MAXFRAMENR = ABS_MAXFRAMENR;  static int ARG_MAXFRAMENR = ABS_MAXFRAMENR;
134  static char *ARG_INPUTFILE = NULL;  static char *ARG_INPUTFILE = NULL;
# Line 643  Line 640 
640      fprintf(stderr,     " -single                        : single pass mode\n");      fprintf(stderr,     " -single                        : single pass mode\n");
641          fprintf(stderr, " -pass1     filename            : twopass mode (first pass)\n");          fprintf(stderr, " -pass1     filename            : twopass mode (first pass)\n");
642          fprintf(stderr, " -pass2     filename            : twopass mode (2nd pass)\n");          fprintf(stderr, " -pass2     filename            : twopass mode (2nd pass)\n");
643      fprintf(stderr,     " -zq frame float               : bitrate zone; quant\n");          fprintf(stderr, " -zq starting_frame float       : bitrate zone; quant\n");
644      fprintf(stderr,     " -zw frame float               : bitrate zone; weight\n");          fprintf(stderr, " -zw starting_frame float       : bitrate zone; weight\n");
645          fprintf(stderr, "\n");          fprintf(stderr, "\n");
646          fprintf(stderr, "Other options\n");          fprintf(stderr, "Other options\n");
647          fprintf(stderr, " -asm            : use assembly optmized code\n");          fprintf(stderr, " -asm            : use assembly optmized code\n");
# Line 654  Line 651 
651          fprintf(stderr, " -stats          : print stats about encoded frames\n");          fprintf(stderr, " -stats          : print stats about encoded frames\n");
652          fprintf(stderr, " -debug          : print all MB dquants\n");          fprintf(stderr, " -debug          : print all MB dquants\n");
653          fprintf(stderr, " -help           : prints this help message\n");          fprintf(stderr, " -help           : prints this help message\n");
654            fprintf(stderr, "\n");
655            fprintf(stderr, "NB: You can define %d zones repeating the -z[qw] option as many times as needed.\n", MAX_ZONES);
656            fprintf(stderr, "\n");
657  }  }
658    
659  /*****************************************************************************  /*****************************************************************************

Legend:
Removed from v.1019  
changed lines
  Added in v.1027

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