23 |
#define XVID_REG_CLASS "config" |
#define XVID_REG_CLASS "config" |
24 |
|
|
25 |
#define XVID_BUILD __TIME__ ", " __DATE__ |
#define XVID_BUILD __TIME__ ", " __DATE__ |
26 |
#define XVID_WEBSITE "http://www.xvid.org" |
#define XVID_WEBSITE "http://www.xvid.org/" |
27 |
|
#define XVID_SPECIAL_BUILD "(Vanilla CVS Build)" |
28 |
|
|
29 |
/* constants */ |
/* constants */ |
30 |
|
#define CONFIG_HINTFILE "\\hintfile.mvh" |
31 |
#define CONFIG_2PASS_1_FILE "\\video.stats" |
#define CONFIG_2PASS_1_FILE "\\video.stats" |
32 |
#define CONFIG_2PASS_2_FILE "\\videogk.stats" |
#define CONFIG_2PASS_2_FILE "\\videogk.stats" |
33 |
|
|
55 |
#define QUANT_MODE_MPEG 1 |
#define QUANT_MODE_MPEG 1 |
56 |
#define QUANT_MODE_CUSTOM 2 |
#define QUANT_MODE_CUSTOM 2 |
57 |
#define QUANT_MODE_MOD 3 |
#define QUANT_MODE_MOD 3 |
58 |
|
#define QUANT_MODE_MOD_NEW 4 |
59 |
|
|
60 |
/* credits modes */ |
/* credits modes */ |
61 |
#define CREDITS_MODE_RATE 0 |
#define CREDITS_MODE_RATE 0 |
70 |
|
|
71 |
typedef struct |
typedef struct |
72 |
{ |
{ |
73 |
int mode; |
/********** ATTENTION **********/ |
74 |
int bitrate; |
int mode; // Vidomi directly accesses these vars |
75 |
|
int rc_bitrate; // |
76 |
|
int desired_size; // please try to avoid modifications here |
77 |
|
char stats1[MAX_PATH]; // |
78 |
|
/*******************************/ |
79 |
|
|
80 |
int quality; |
int quality; |
81 |
int quant; |
int quant; |
82 |
int rc_buffersize; |
int rc_reaction_delay_factor; |
83 |
|
int rc_averaging_period; |
84 |
|
int rc_buffer; |
85 |
|
|
86 |
int motion_search; |
int motion_search; |
87 |
int quant_type; |
int quant_type; |
88 |
int fourcc_used; |
int fourcc_used; |
89 |
int max_key_interval; |
int max_key_interval; |
90 |
|
int min_key_interval; |
91 |
int lum_masking; |
int lum_masking; |
92 |
|
int interlacing; |
93 |
|
int qpel; |
94 |
|
int gmc; |
95 |
|
int chromame; |
96 |
|
//added by koepi for gruel's greyscale_mode |
97 |
|
int greyscale; |
98 |
|
// end of koepi's additions |
99 |
|
#ifdef BFRAMES |
100 |
|
int max_bframes; |
101 |
|
int bquant_ratio; |
102 |
|
int bquant_offset; |
103 |
|
int packed; |
104 |
|
int dx50bvop; |
105 |
|
int debug; |
106 |
|
#endif |
107 |
|
|
108 |
int min_iquant; |
int min_iquant; |
109 |
int max_iquant; |
int max_iquant; |
112 |
BYTE qmatrix_intra[64]; |
BYTE qmatrix_intra[64]; |
113 |
BYTE qmatrix_inter[64]; |
BYTE qmatrix_inter[64]; |
114 |
|
|
|
int desired_size; |
|
115 |
int keyframe_boost; |
int keyframe_boost; |
116 |
int min_key_interval; |
//added by koepi for new 2pass curve treatment |
117 |
|
int kftreshold; |
118 |
|
int kfreduction; |
119 |
|
// end of koepi's additions |
120 |
int discard1pass; |
int discard1pass; |
121 |
int dummy2pass; |
int dummy2pass; |
122 |
int curve_compression_high; |
int curve_compression_high; |
130 |
int alt_curve_high_dist; |
int alt_curve_high_dist; |
131 |
int alt_curve_low_dist; |
int alt_curve_low_dist; |
132 |
int alt_curve_min_rel_qual; |
int alt_curve_min_rel_qual; |
133 |
|
int twopass_max_bitrate; |
134 |
|
int twopass_max_overflow_improvement; |
135 |
|
int twopass_max_overflow_degradation; |
136 |
int bitrate_payback_delay; |
int bitrate_payback_delay; |
137 |
int bitrate_payback_method; |
int bitrate_payback_method; |
138 |
char stats1[MAX_PATH]; |
int hinted_me; |
139 |
|
char hintfile[MAX_PATH]; |
140 |
char stats2[MAX_PATH]; |
char stats2[MAX_PATH]; |
141 |
|
|
142 |
int credits_start; |
int credits_start; |
146 |
int credits_end_begin; |
int credits_end_begin; |
147 |
int credits_end_end; |
int credits_end_end; |
148 |
|
|
149 |
|
//added by koepi for gruel's greyscale_mode |
150 |
|
int credits_greyscale; |
151 |
|
// end of koepi's additions |
152 |
int credits_mode; |
int credits_mode; |
153 |
int credits_rate; |
int credits_rate; |
154 |
int credits_quant_i; |
int credits_quant_i; |
156 |
int credits_start_size; |
int credits_start_size; |
157 |
int credits_end_size; |
int credits_end_size; |
158 |
|
|
159 |
|
#ifdef _SMP |
160 |
|
int num_threads; |
161 |
|
#endif |
162 |
|
#ifdef BFRAMES |
163 |
|
int frame_drop_ratio; |
164 |
|
#endif |
165 |
|
|
166 |
// char build[50]; |
// char build[50]; |
167 |
DWORD cpu; |
DWORD cpu; |
168 |
float fquant; |
float fquant; |
192 |
void config_reg_get(CONFIG *); |
void config_reg_get(CONFIG *); |
193 |
void config_reg_set(CONFIG *); |
void config_reg_set(CONFIG *); |
194 |
void config_reg_default(CONFIG *); |
void config_reg_default(CONFIG *); |
195 |
int config_get_int(HWND, UINT, int); |
int config_get_int(HWND, INT, int); |
196 |
|
int config_get_uint(HWND, UINT, int); |
197 |
void main_download(HWND, CONFIG *); |
void main_download(HWND, CONFIG *); |
198 |
void main_slider(HWND, CONFIG *); |
void main_slider(HWND, CONFIG *); |
199 |
void main_value(HWND, CONFIG *); |
void main_value(HWND, CONFIG *); |