3 |
* XVID MPEG-4 VIDEO CODEC |
* XVID MPEG-4 VIDEO CODEC |
4 |
* - Configuration processing header file - |
* - Configuration processing header file - |
5 |
* |
* |
6 |
* Copyright(C) 2002-2011 Peter Ross <pross@xvid.org> |
* Copyright(C) 2002-2012 Peter Ross <pross@xvid.org> |
7 |
* |
* |
8 |
* This program is free software ; you can redistribute it and/or modify |
* This program is free software ; you can redistribute it and/or modify |
9 |
* it under the terms of the GNU General Public License as published by |
* it under the terms of the GNU General Public License as published by |
32 |
|
|
33 |
/* registry stuff */ |
/* registry stuff */ |
34 |
#define XVID_REG_KEY HKEY_CURRENT_USER |
#define XVID_REG_KEY HKEY_CURRENT_USER |
35 |
#define XVID_REG_SUBKEY TEXT("Software\\GNU\\XviD") |
#define XVID_REG_SUBKEY "Software\\GNU\\XviD" |
36 |
#define XVID_REG_CLASS TEXT("config") |
#define XVID_REG_CLASS "config" |
37 |
|
|
38 |
#define REG_GET_N(X, Y, Z) size=sizeof(int);if(RegQueryValueEx(hKey, X, 0, 0, (LPBYTE)&Y, &size) != ERROR_SUCCESS) {Y=Z;} |
#define REG_GET_N(X, Y, Z) size=sizeof(int);if(RegQueryValueEx(hKey, X, 0, 0, (LPBYTE)&Y, &size) != ERROR_SUCCESS) {Y=Z;} |
39 |
#define REG_GET_S(X, Y, Z) size=MAX_PATH;if(RegQueryValueEx(hKey, X, 0, 0, Y, &size) != ERROR_SUCCESS) {lstrcpy(Y, Z);} |
#define REG_GET_S(X, Y, Z) size=MAX_PATH;if(RegQueryValueEx(hKey, X, 0, 0, Y, &size) != ERROR_SUCCESS) {lstrcpy(Y, Z);} |
67 |
int aspect_ratio; |
int aspect_ratio; |
68 |
int num_threads; |
int num_threads; |
69 |
DWORD cpu; |
DWORD cpu; |
70 |
|
int bTrayIcon; |
71 |
} CONFIG; |
} CONFIG; |
72 |
|
|
73 |
|
|
77 |
|
|
78 |
/* functions */ |
/* functions */ |
79 |
void LoadRegistryInfo(); |
void LoadRegistryInfo(); |
80 |
void SaveRegistryInfo(); |
void SaveRegistryInfo(int perfCount); |
81 |
INT_PTR CALLBACK adv_proc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam); |
INT_PTR CALLBACK adv_proc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam); |
82 |
|
|
83 |
#define XVID_DLL_NAME TEXT("xvidcore.dll") |
#define XVID_DLL_NAME "xvidcore.dll" |
84 |
|
|
85 |
#ifdef __cplusplus |
#ifdef __cplusplus |
86 |
} |
} |