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 |
|
|
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])) |
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; |
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"); |
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 |
/***************************************************************************** |
/***************************************************************************** |