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" |
#define CONFIG_HINTFILE "\\hintfile.mvh" |
69 |
|
|
70 |
typedef struct |
typedef struct |
71 |
{ |
{ |
72 |
int mode; |
/********** ATTENTION **********/ |
73 |
|
int mode; // Vidomi directly accesses these vars |
74 |
|
int rc_bitrate; // |
75 |
|
int desired_size; // please try to avoid modifications here |
76 |
|
char stats1[MAX_PATH]; // |
77 |
|
/*******************************/ |
78 |
|
|
79 |
int quality; |
int quality; |
80 |
int quant; |
int quant; |
|
int rc_bitrate; |
|
81 |
int rc_reaction_delay_factor; |
int rc_reaction_delay_factor; |
82 |
int rc_averaging_period; |
int rc_averaging_period; |
83 |
int rc_buffer; |
int rc_buffer; |
89 |
int min_key_interval; |
int min_key_interval; |
90 |
int lum_masking; |
int lum_masking; |
91 |
int interlacing; |
int interlacing; |
92 |
|
//added by koepi for gruel's greyscale_mode |
93 |
|
int greyscale; |
94 |
|
// end of koepi's additions |
95 |
|
#ifdef BFRAMES |
96 |
|
int max_bframes; |
97 |
|
int bquant_ratio; |
98 |
|
int packed; |
99 |
|
int dx50bvop; |
100 |
|
int debug; |
101 |
|
#endif |
102 |
|
|
103 |
int min_iquant; |
int min_iquant; |
104 |
int max_iquant; |
int max_iquant; |
107 |
BYTE qmatrix_intra[64]; |
BYTE qmatrix_intra[64]; |
108 |
BYTE qmatrix_inter[64]; |
BYTE qmatrix_inter[64]; |
109 |
|
|
|
int desired_size; |
|
110 |
int keyframe_boost; |
int keyframe_boost; |
111 |
|
//added by koepi for new 2pass curve treatment |
112 |
|
int kftreshold; |
113 |
|
int kfreduction; |
114 |
|
// end of koepi's additions |
115 |
int discard1pass; |
int discard1pass; |
116 |
int dummy2pass; |
int dummy2pass; |
117 |
int curve_compression_high; |
int curve_compression_high; |
132 |
int bitrate_payback_method; |
int bitrate_payback_method; |
133 |
int hinted_me; |
int hinted_me; |
134 |
char hintfile[MAX_PATH]; |
char hintfile[MAX_PATH]; |
|
char stats1[MAX_PATH]; |
|
135 |
char stats2[MAX_PATH]; |
char stats2[MAX_PATH]; |
136 |
|
|
137 |
int credits_start; |
int credits_start; |
141 |
int credits_end_begin; |
int credits_end_begin; |
142 |
int credits_end_end; |
int credits_end_end; |
143 |
|
|
144 |
|
//added by koepi for gruel's greyscale_mode |
145 |
|
int credits_greyscale; |
146 |
|
// end of koepi's additions |
147 |
int credits_mode; |
int credits_mode; |
148 |
int credits_rate; |
int credits_rate; |
149 |
int credits_quant_i; |
int credits_quant_i; |
151 |
int credits_start_size; |
int credits_start_size; |
152 |
int credits_end_size; |
int credits_end_size; |
153 |
|
|
154 |
|
#ifdef _SMP |
155 |
|
int num_threads; |
156 |
|
#endif |
157 |
|
#ifdef BFRAMES |
158 |
|
int frame_drop_ratio; |
159 |
|
#endif |
160 |
|
|
161 |
// char build[50]; |
// char build[50]; |
162 |
DWORD cpu; |
DWORD cpu; |
163 |
float fquant; |
float fquant; |
187 |
void config_reg_get(CONFIG *); |
void config_reg_get(CONFIG *); |
188 |
void config_reg_set(CONFIG *); |
void config_reg_set(CONFIG *); |
189 |
void config_reg_default(CONFIG *); |
void config_reg_default(CONFIG *); |
190 |
int config_get_int(HWND, UINT, int); |
int config_get_int(HWND, INT, int); |
191 |
|
int config_get_uint(HWND, UINT, int); |
192 |
void main_download(HWND, CONFIG *); |
void main_download(HWND, CONFIG *); |
193 |
void main_slider(HWND, CONFIG *); |
void main_slider(HWND, CONFIG *); |
194 |
void main_value(HWND, CONFIG *); |
void main_value(HWND, CONFIG *); |