26 |
#define XVID_WEBSITE "http://www.xvid.org" |
#define XVID_WEBSITE "http://www.xvid.org" |
27 |
|
|
28 |
/* constants */ |
/* constants */ |
29 |
|
#define CONFIG_HINTFILE "\\hintfile.mvh" |
30 |
#define CONFIG_2PASS_1_FILE "\\video.stats" |
#define CONFIG_2PASS_1_FILE "\\video.stats" |
31 |
#define CONFIG_2PASS_2_FILE "\\videogk.stats" |
#define CONFIG_2PASS_2_FILE "\\videogk.stats" |
32 |
|
|
68 |
|
|
69 |
typedef struct |
typedef struct |
70 |
{ |
{ |
71 |
int mode; |
/********** ATTENTION **********/ |
72 |
int bitrate; |
int mode; // Vidomi directly accesses these vars |
73 |
|
int rc_bitrate; // |
74 |
|
int desired_size; // please try to avoid modifications here |
75 |
|
char stats1[MAX_PATH]; // |
76 |
|
/*******************************/ |
77 |
|
|
78 |
int quality; |
int quality; |
79 |
int quant; |
int quant; |
80 |
int rc_buffersize; |
int rc_reaction_delay_factor; |
81 |
|
int rc_averaging_period; |
82 |
|
int rc_buffer; |
83 |
|
|
84 |
int motion_search; |
int motion_search; |
85 |
int quant_type; |
int quant_type; |
86 |
int fourcc_used; |
int fourcc_used; |
87 |
int max_key_interval; |
int max_key_interval; |
88 |
|
int min_key_interval; |
89 |
int lum_masking; |
int lum_masking; |
90 |
|
int interlacing; |
91 |
|
#ifdef BFRAMES |
92 |
|
int max_bframes; |
93 |
|
int bquant_ratio; |
94 |
|
int packed; |
95 |
|
int dx50bvop; |
96 |
|
int debug; |
97 |
|
#endif |
98 |
|
|
99 |
int min_iquant; |
int min_iquant; |
100 |
int max_iquant; |
int max_iquant; |
103 |
BYTE qmatrix_intra[64]; |
BYTE qmatrix_intra[64]; |
104 |
BYTE qmatrix_inter[64]; |
BYTE qmatrix_inter[64]; |
105 |
|
|
|
int desired_size; |
|
106 |
int keyframe_boost; |
int keyframe_boost; |
|
int min_key_interval; |
|
107 |
int discard1pass; |
int discard1pass; |
108 |
int dummy2pass; |
int dummy2pass; |
109 |
int curve_compression_high; |
int curve_compression_high; |
117 |
int alt_curve_high_dist; |
int alt_curve_high_dist; |
118 |
int alt_curve_low_dist; |
int alt_curve_low_dist; |
119 |
int alt_curve_min_rel_qual; |
int alt_curve_min_rel_qual; |
120 |
|
int twopass_max_bitrate; |
121 |
|
int twopass_max_overflow_improvement; |
122 |
|
int twopass_max_overflow_degradation; |
123 |
int bitrate_payback_delay; |
int bitrate_payback_delay; |
124 |
int bitrate_payback_method; |
int bitrate_payback_method; |
125 |
char stats1[MAX_PATH]; |
int hinted_me; |
126 |
|
char hintfile[MAX_PATH]; |
127 |
char stats2[MAX_PATH]; |
char stats2[MAX_PATH]; |
128 |
|
|
129 |
int credits_start; |
int credits_start; |
140 |
int credits_start_size; |
int credits_start_size; |
141 |
int credits_end_size; |
int credits_end_size; |
142 |
|
|
143 |
|
#ifdef _SMP |
144 |
|
int num_threads; |
145 |
|
#endif |
146 |
|
#ifdef BFRAMES |
147 |
|
int frame_drop_ratio; |
148 |
|
#endif |
149 |
|
|
150 |
// char build[50]; |
// char build[50]; |
151 |
DWORD cpu; |
DWORD cpu; |
152 |
float fquant; |
float fquant; |
176 |
void config_reg_get(CONFIG *); |
void config_reg_get(CONFIG *); |
177 |
void config_reg_set(CONFIG *); |
void config_reg_set(CONFIG *); |
178 |
void config_reg_default(CONFIG *); |
void config_reg_default(CONFIG *); |
179 |
int config_get_int(HWND, UINT, int); |
int config_get_int(HWND, INT, int); |
180 |
|
int config_get_uint(HWND, UINT, int); |
181 |
void main_download(HWND, CONFIG *); |
void main_download(HWND, CONFIG *); |
182 |
void main_slider(HWND, CONFIG *); |
void main_slider(HWND, CONFIG *); |
183 |
void main_value(HWND, CONFIG *); |
void main_value(HWND, CONFIG *); |