1 |
|
/***************************************************************************** |
2 |
|
* |
3 |
|
* XVID MPEG-4 VIDEO CODEC |
4 |
|
* - Configuration processing header file - |
5 |
|
* |
6 |
|
* Copyright(C) 2002-2011 Peter Ross <pross@xvid.org> |
7 |
|
* |
8 |
|
* 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 |
10 |
|
* the Free Software Foundation ; either version 2 of the License, or |
11 |
|
* (at your option) any later version. |
12 |
|
* |
13 |
|
* This program is distributed in the hope that it will be useful, |
14 |
|
* but WITHOUT ANY WARRANTY ; without even the implied warranty of |
15 |
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 |
|
* GNU General Public License for more details. |
17 |
|
* |
18 |
|
* You should have received a copy of the GNU General Public License |
19 |
|
* along with this program ; if not, write to the Free Software |
20 |
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
|
* |
22 |
|
* $Id$ |
23 |
|
* |
24 |
|
****************************************************************************/ |
25 |
|
|
26 |
#ifndef _DSHOW_CONFIG_H_ |
#ifndef _DSHOW_CONFIG_H_ |
27 |
#define _DSHOW_CONFIG_H_ |
#define _DSHOW_CONFIG_H_ |
28 |
|
|
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 "Software\\GNU\\XviD" |
#define XVID_REG_SUBKEY TEXT("Software\\GNU\\XviD") |
36 |
#define XVID_REG_CLASS "config" |
#define XVID_REG_CLASS TEXT("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);} |
42 |
|
|
43 |
|
|
44 |
/* config struct */ |
/* config struct */ |
45 |
#define SUPPORT_DX50 (1<<0) |
#define SUPPORT_3IVX (1<<0) |
46 |
#define SUPPORT_DIVX (1<<1) |
#define SUPPORT_DIVX (1<<1) |
47 |
#define SUPPORT_MP4V (1<<2) |
#define SUPPORT_MP4V (1<<2) |
48 |
|
|
65 |
unsigned int supported_4cc; |
unsigned int supported_4cc; |
66 |
int videoinfo_compat; |
int videoinfo_compat; |
67 |
int aspect_ratio; |
int aspect_ratio; |
68 |
|
int num_threads; |
69 |
|
DWORD cpu; |
70 |
|
int bTrayIcon; |
71 |
} CONFIG; |
} CONFIG; |
72 |
|
|
73 |
|
|
80 |
void SaveRegistryInfo(); |
void SaveRegistryInfo(); |
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") |
84 |
|
|
85 |
#ifdef __cplusplus |
#ifdef __cplusplus |
86 |
} |
} |