3 |
* XVID MPEG-4 VIDEO CODEC |
* XVID MPEG-4 VIDEO CODEC |
4 |
* - Configuration processing - |
* - Configuration processing - |
5 |
* |
* |
6 |
* Copyright(C) 2002-2004 Peter Ross <pross@xvid.org> |
* Copyright(C) 2002-2011 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 |
25 |
|
|
26 |
#include <windows.h> |
#include <windows.h> |
27 |
#include <commctrl.h> |
#include <commctrl.h> |
28 |
|
#include <xvid.h> |
29 |
#include "config.h" |
#include "config.h" |
30 |
#include "debug.h" |
#include "debug.h" |
31 |
#include "resource.h" |
#include "resource.h" |
128 |
break; |
break; |
129 |
|
|
130 |
case WM_INITDIALOG: |
case WM_INITDIALOG: |
131 |
|
{ |
132 |
|
xvid_gbl_info_t info; |
133 |
|
char core[100]; |
134 |
|
HINSTANCE m_hdll; |
135 |
|
|
136 |
|
memset(&info, 0, sizeof(info)); |
137 |
|
info.version = XVID_VERSION; |
138 |
|
|
139 |
|
m_hdll = LoadLibrary(XVID_DLL_NAME); |
140 |
|
if (m_hdll != NULL) { |
141 |
|
|
142 |
|
((int (__cdecl *)(void *, int, void *, void *))GetProcAddress(m_hdll, "xvid_global")) |
143 |
|
(0, XVID_GBL_INFO, &info, NULL); |
144 |
|
|
145 |
|
wsprintf(core, "Xvid MPEG-4 Video Codec v%d.%d.%d", |
146 |
|
XVID_VERSION_MAJOR(info.actual_version), |
147 |
|
XVID_VERSION_MINOR(info.actual_version), |
148 |
|
XVID_VERSION_PATCH(info.actual_version)); |
149 |
|
|
150 |
|
FreeLibrary(m_hdll); |
151 |
|
} else { |
152 |
|
wsprintf(core, "xvidcore.dll not found!"); |
153 |
|
} |
154 |
|
|
155 |
|
SetDlgItemText(hwnd, IDC_CORE, core); |
156 |
|
} |
157 |
|
|
158 |
// Load Force Colorspace Box |
// Load Force Colorspace Box |
159 |
SendMessage(GetDlgItem(hwnd, IDC_COLORSPACE), CB_ADDSTRING, 0, (LPARAM)"No Force"); |
SendMessage(GetDlgItem(hwnd, IDC_COLORSPACE), CB_ADDSTRING, 0, (LPARAM)"No Force"); |