[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

revision 30, Sat Mar 16 11:40:48 2002 UTC revision 355, Thu Aug 1 12:56:29 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    
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    
33  /* property sheets - sheets can be reordered here */  /* property sheets - sheets can be reordered here */
34  #define DLG_COUNT               5  #define DLG_COUNT               6
35    
36  #define DLG_GLOBAL              0  #define DLG_GLOBAL              0
37  #define DLG_QUANT               1  #define DLG_QUANT               1
38  #define DLG_2PASS               2  #define DLG_2PASS               2
39  #define DLG_CREDITS             3  #define DLG_2PASSALT    3
40  #define DLG_CPU                 4  #define DLG_CREDITS             4
41    #define DLG_CPU                 5
42    
43  /* codec modes */  /* codec modes */
44  #define DLG_MODE_CBR                    0  #define DLG_MODE_CBR                    0
# Line 60  Line 63 
63  #define CREDITS_START                   1  #define CREDITS_START                   1
64  #define CREDITS_END                             2  #define CREDITS_END                             2
65    
66    #define RAD2DEG 57.295779513082320876798154814105
67    #define DEG2RAD 0.017453292519943295769236907684886
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    //added by koepi for gruel's greyscale_mode
92            int greyscale;
93    // end of koepi's additions
94    #ifdef BFRAMES
95            int max_bframes;
96            int bquant_ratio;
97            int packed;
98            int dx50bvop;
99            int debug;
100    #endif
101    
102          int min_iquant;          int min_iquant;
103          int max_iquant;          int max_iquant;
# Line 82  Line 106 
106          BYTE qmatrix_intra[64];          BYTE qmatrix_intra[64];
107          BYTE qmatrix_inter[64];          BYTE qmatrix_inter[64];
108    
         int desired_size;  
109          int keyframe_boost;          int keyframe_boost;
110          int min_key_interval;  //added by koepi for new 2pass curve treatment
111            int kftreshold;
112            int kfreduction;
113    // end of koepi's additions
114          int discard1pass;          int discard1pass;
115          int dummy2pass;          int dummy2pass;
116          int curve_compression_high;          int curve_compression_high;
117          int curve_compression_low;          int curve_compression_low;
118            int use_alt_curve;
119            int alt_curve_use_auto;
120            int alt_curve_auto_str;
121            int alt_curve_use_auto_bonus_bias;
122            int alt_curve_bonus_bias;
123            int alt_curve_type;
124            int alt_curve_high_dist;
125            int alt_curve_low_dist;
126            int alt_curve_min_rel_qual;
127            int twopass_max_bitrate;
128            int twopass_max_overflow_improvement;
129            int twopass_max_overflow_degradation;
130          int bitrate_payback_delay;          int bitrate_payback_delay;
131          int bitrate_payback_method;          int bitrate_payback_method;
132          char stats1[MAX_PATH];          int hinted_me;
133            char hintfile[MAX_PATH];
134          char stats2[MAX_PATH];          char stats2[MAX_PATH];
135    
136          int credits_start;          int credits_start;
# Line 108  Line 147 
147          int credits_start_size;          int credits_start_size;
148          int credits_end_size;          int credits_end_size;
149    
150          DWORD cpu;  #ifdef _SMP
151            int num_threads;
152    #endif
153    #ifdef BFRAMES
154            int frame_drop_ratio;
155    #endif
156    
157    //      char build[50];
158            DWORD cpu;
159          float fquant;          float fquant;
   
160          BOOL save;          BOOL save;
161  } CONFIG;  } CONFIG;
162    
 typedef struct HELPRECT  
 {  
         int item;  
         RECT rect;  
 } HELPRECT;  
   
163  typedef struct PROPSHEETINFO  typedef struct PROPSHEETINFO
164  {  {
165          int page;          int page;
166          CONFIG * config;          CONFIG * config;
167  } PROPSHEETINFO;  } PROPSHEETINFO;
168    
169    typedef struct REG_INT
170    {
171            char* reg_value;
172            int* config_int;
173            int def;
174    } REG_INT;
175    
176    typedef struct REG_STR
177    {
178            char* reg_value;
179            char* config_str;
180            char* def;
181    } REG_STR;
182    
183  void config_reg_get(CONFIG *);  void config_reg_get(CONFIG *);
184  void config_reg_set(CONFIG *);  void config_reg_set(CONFIG *);
185  void config_reg_default(CONFIG *);  void config_reg_default(CONFIG *);
186  int config_get_int(HWND, UINT, int);  int config_get_int(HWND, INT, int);
187    int config_get_uint(HWND, UINT, int);
188  void main_download(HWND, CONFIG *);  void main_download(HWND, CONFIG *);
189  void main_slider(HWND, CONFIG *);  void main_slider(HWND, CONFIG *);
190  void main_value(HWND, CONFIG *);  void main_value(HWND, CONFIG *);
# Line 141  Line 194 
194  void adv_download(HWND, int, CONFIG *);  void adv_download(HWND, int, CONFIG *);
195  void quant_upload(HWND, CONFIG *);  void quant_upload(HWND, CONFIG *);
196  void quant_download(HWND, CONFIG *);  void quant_download(HWND, CONFIG *);
197  LRESULT CALLBACK msg_proc(int, WPARAM, LPARAM);  BOOL CALLBACK enum_tooltips(HWND, LPARAM);
198  BOOL CALLBACK main_proc(HWND, UINT, WPARAM, LPARAM);  BOOL CALLBACK main_proc(HWND, UINT, WPARAM, LPARAM);
199  BOOL CALLBACK adv_proc(HWND, UINT, WPARAM, LPARAM);  BOOL CALLBACK adv_proc(HWND, UINT, WPARAM, LPARAM);
200  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.355

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