[svn] / branches / dev-api-3 / vfw / src / config.h Repository:
ViewVC logotype

Diff of /branches/dev-api-3/vfw/src/config.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/vfw/src/config.h revision 30, Sat Mar 16 11:40:48 2002 UTC branches/dev-api-3/vfw/src/config.h revision 670, Thu Nov 21 12:51:28 2002 UTC
# Line 5  Line 5 
5    
6    
7  HINSTANCE hInst;  HINSTANCE hInst;
8    HWND hTooltip;
9    
10    
11  /* small hack */  /* small hack */
# Line 21  Line 22 
22  #define XVID_REG_CHILD  "XviD"  #define XVID_REG_CHILD  "XviD"
23  #define XVID_REG_CLASS  "config"  #define XVID_REG_CLASS  "config"
24    
25  #define XVID_HELP               "Move cursor over item to view help"  #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    
34  /* property sheets - sheets can be reordered here */  /* property sheets - sheets can be reordered here */
35  #define DLG_COUNT               5  #define DLG_COUNT               6
36    
37  #define DLG_GLOBAL              0  #define DLG_GLOBAL              0
38  #define DLG_QUANT               1  #define DLG_QUANT               1
39  #define DLG_2PASS               2  #define DLG_2PASS               2
40  #define DLG_CREDITS             3  #define DLG_2PASSALT    3
41  #define DLG_CPU                 4  #define DLG_CREDITS             4
42    #define DLG_CPU                 5
43    
44  /* codec modes */  /* codec modes */
45  #define DLG_MODE_CBR                    0  #define DLG_MODE_CBR                    0
# Line 51  Line 55 
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
# Line 60  Line 65 
65  #define CREDITS_START                   1  #define CREDITS_START                   1
66  #define CREDITS_END                             2  #define CREDITS_END                             2
67    
68    #define RAD2DEG 57.295779513082320876798154814105
69    #define DEG2RAD 0.017453292519943295769236907684886
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            int max_bframes;
100            int bquant_ratio;
101            int bquant_offset;
102            int packed;
103            int dx50bvop;
104            int debug;
105    
106          int min_iquant;          int min_iquant;
107          int max_iquant;          int max_iquant;
# Line 82  Line 110 
110          BYTE qmatrix_intra[64];          BYTE qmatrix_intra[64];
111          BYTE qmatrix_inter[64];          BYTE qmatrix_inter[64];
112    
         int desired_size;  
113          int keyframe_boost;          int keyframe_boost;
114          int min_key_interval;  //added by koepi for new 2pass curve treatment
115            int kftreshold;
116            int kfreduction;
117    // end of koepi's additions
118          int discard1pass;          int discard1pass;
119          int dummy2pass;          int dummy2pass;
120          int curve_compression_high;          int curve_compression_high;
121          int curve_compression_low;          int curve_compression_low;
122            int use_alt_curve;
123            int alt_curve_use_auto;
124            int alt_curve_auto_str;
125            int alt_curve_use_auto_bonus_bias;
126            int alt_curve_bonus_bias;
127            int alt_curve_type;
128            int alt_curve_high_dist;
129            int alt_curve_low_dist;
130            int alt_curve_min_rel_qual;
131            int twopass_max_bitrate;
132            int twopass_max_overflow_improvement;
133            int twopass_max_overflow_degradation;
134          int bitrate_payback_delay;          int bitrate_payback_delay;
135          int bitrate_payback_method;          int bitrate_payback_method;
136          char stats1[MAX_PATH];          int hinted_me;
137            char hintfile[MAX_PATH];
138          char stats2[MAX_PATH];          char stats2[MAX_PATH];
139    
140          int credits_start;          int credits_start;
# Line 101  Line 144 
144          int credits_end_begin;          int credits_end_begin;
145          int credits_end_end;          int credits_end_end;
146    
147    //added by koepi for gruel's greyscale_mode
148            int credits_greyscale;
149    // end of koepi's additions
150          int credits_mode;          int credits_mode;
151          int credits_rate;          int credits_rate;
152          int credits_quant_i;          int credits_quant_i;
# Line 108  Line 154 
154          int credits_start_size;          int credits_start_size;
155          int credits_end_size;          int credits_end_size;
156    
157          DWORD cpu;  #ifdef _SMP
158            int num_threads;
159    #endif
160            int frame_drop_ratio;
161    
162    //      char build[50];
163            DWORD cpu;
164          float fquant;          float fquant;
   
165          BOOL save;          BOOL save;
166  } CONFIG;  } CONFIG;
167    
 typedef struct HELPRECT  
 {  
         int item;  
         RECT rect;  
 } HELPRECT;  
   
168  typedef struct PROPSHEETINFO  typedef struct PROPSHEETINFO
169  {  {
170          int page;          int page;
171          CONFIG * config;          CONFIG * config;
172  } PROPSHEETINFO;  } PROPSHEETINFO;
173    
174    typedef struct REG_INT
175    {
176            char* reg_value;
177            int* config_int;
178            int def;
179    } REG_INT;
180    
181    typedef struct REG_STR
182    {
183            char* reg_value;
184            char* config_str;
185            char* def;
186    } REG_STR;
187    
188  void config_reg_get(CONFIG *);  void config_reg_get(CONFIG *);
189  void config_reg_set(CONFIG *);  void config_reg_set(CONFIG *);
190  void config_reg_default(CONFIG *);  void config_reg_default(CONFIG *);
191  int config_get_int(HWND, UINT, int);  int config_get_int(HWND, INT, int);
192    int config_get_uint(HWND, UINT, int);
193  void main_download(HWND, CONFIG *);  void main_download(HWND, CONFIG *);
194  void main_slider(HWND, CONFIG *);  void main_slider(HWND, CONFIG *);
195  void main_value(HWND, CONFIG *);  void main_value(HWND, CONFIG *);
# Line 141  Line 199 
199  void adv_download(HWND, int, CONFIG *);  void adv_download(HWND, int, CONFIG *);
200  void quant_upload(HWND, CONFIG *);  void quant_upload(HWND, CONFIG *);
201  void quant_download(HWND, CONFIG *);  void quant_download(HWND, CONFIG *);
202  LRESULT CALLBACK msg_proc(int, WPARAM, LPARAM);  BOOL CALLBACK enum_tooltips(HWND, LPARAM);
203  BOOL CALLBACK main_proc(HWND, UINT, WPARAM, LPARAM);  BOOL CALLBACK main_proc(HWND, UINT, WPARAM, LPARAM);
204  BOOL CALLBACK adv_proc(HWND, UINT, WPARAM, LPARAM);  BOOL CALLBACK adv_proc(HWND, UINT, WPARAM, LPARAM);
205  BOOL CALLBACK quantmatrix_proc(HWND, UINT, WPARAM, LPARAM);  BOOL CALLBACK quantmatrix_proc(HWND, UINT, WPARAM, LPARAM);

Legend:
Removed from v.30  
changed lines
  Added in v.670

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