[svn] / trunk / vfw / src / config.h Repository:
ViewVC logotype

Diff of /trunk/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 228, Thu Jun 20 10:51:08 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    #ifdef BFRAMES
92            int max_bframes;
93            int bquant_ratio;
94            int packed;
95    #endif
96    
97          int min_iquant;          int min_iquant;
98          int max_iquant;          int max_iquant;
# Line 82  Line 101 
101          BYTE qmatrix_intra[64];          BYTE qmatrix_intra[64];
102          BYTE qmatrix_inter[64];          BYTE qmatrix_inter[64];
103    
         int desired_size;  
104          int keyframe_boost;          int keyframe_boost;
         int min_key_interval;  
105          int discard1pass;          int discard1pass;
106          int dummy2pass;          int dummy2pass;
107          int curve_compression_high;          int curve_compression_high;
108          int curve_compression_low;          int curve_compression_low;
109            int use_alt_curve;
110            int alt_curve_use_auto;
111            int alt_curve_auto_str;
112            int alt_curve_use_auto_bonus_bias;
113            int alt_curve_bonus_bias;
114            int alt_curve_type;
115            int alt_curve_high_dist;
116            int alt_curve_low_dist;
117            int alt_curve_min_rel_qual;
118            int twopass_max_bitrate;
119            int twopass_max_overflow_improvement;
120            int twopass_max_overflow_degradation;
121          int bitrate_payback_delay;          int bitrate_payback_delay;
122          int bitrate_payback_method;          int bitrate_payback_method;
123          char stats1[MAX_PATH];          int hinted_me;
124            char hintfile[MAX_PATH];
125          char stats2[MAX_PATH];          char stats2[MAX_PATH];
126    
127          int credits_start;          int credits_start;
# Line 108  Line 138 
138          int credits_start_size;          int credits_start_size;
139          int credits_end_size;          int credits_end_size;
140    
141    //      char build[50];
142          DWORD cpu;          DWORD cpu;
   
143          float fquant;          float fquant;
   
144          BOOL save;          BOOL save;
145  } CONFIG;  } CONFIG;
146    
 typedef struct HELPRECT  
 {  
         int item;  
         RECT rect;  
 } HELPRECT;  
   
147  typedef struct PROPSHEETINFO  typedef struct PROPSHEETINFO
148  {  {
149          int page;          int page;
150          CONFIG * config;          CONFIG * config;
151  } PROPSHEETINFO;  } PROPSHEETINFO;
152    
153    typedef struct REG_INT
154    {
155            char* reg_value;
156            int* config_int;
157            int def;
158    } REG_INT;
159    
160    typedef struct REG_STR
161    {
162            char* reg_value;
163            char* config_str;
164            char* def;
165    } REG_STR;
166    
167  void config_reg_get(CONFIG *);  void config_reg_get(CONFIG *);
168  void config_reg_set(CONFIG *);  void config_reg_set(CONFIG *);
169  void config_reg_default(CONFIG *);  void config_reg_default(CONFIG *);
170  int config_get_int(HWND, UINT, int);  int config_get_int(HWND, INT, int);
171    int config_get_uint(HWND, UINT, int);
172  void main_download(HWND, CONFIG *);  void main_download(HWND, CONFIG *);
173  void main_slider(HWND, CONFIG *);  void main_slider(HWND, CONFIG *);
174  void main_value(HWND, CONFIG *);  void main_value(HWND, CONFIG *);
# Line 141  Line 178 
178  void adv_download(HWND, int, CONFIG *);  void adv_download(HWND, int, CONFIG *);
179  void quant_upload(HWND, CONFIG *);  void quant_upload(HWND, CONFIG *);
180  void quant_download(HWND, CONFIG *);  void quant_download(HWND, CONFIG *);
181  LRESULT CALLBACK msg_proc(int, WPARAM, LPARAM);  BOOL CALLBACK enum_tooltips(HWND, LPARAM);
182  BOOL CALLBACK main_proc(HWND, UINT, WPARAM, LPARAM);  BOOL CALLBACK main_proc(HWND, UINT, WPARAM, LPARAM);
183  BOOL CALLBACK adv_proc(HWND, UINT, WPARAM, LPARAM);  BOOL CALLBACK adv_proc(HWND, UINT, WPARAM, LPARAM);
184  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.228

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