3 |
* XVID MPEG-4 VIDEO CODEC |
* XVID MPEG-4 VIDEO CODEC |
4 |
* - XviD Decoder part of the DShow Filter - |
* - XviD Decoder part of the DShow Filter - |
5 |
* |
* |
6 |
* Copyright(C) 2002-2010 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 |
19 |
* along with this program ; if not, write to the Free Software |
* along with this program ; if not, write to the Free Software |
20 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
* |
* |
22 |
* $Id: CXvidDecoder.h,v 1.11 2011-03-17 15:11:32 Isibaar Exp $ |
* $Id$ |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
25 |
|
|
29 |
#include <xvid.h> |
#include <xvid.h> |
30 |
#include "IXvidDecoder.h" |
#include "IXvidDecoder.h" |
31 |
|
|
32 |
|
#ifndef HWND_MESSAGE |
33 |
|
#define HWND_MESSAGE ((HWND)-3) |
34 |
|
#endif |
35 |
|
|
36 |
#define XVID_NAME_L L"Xvid MPEG-4 Video Decoder" |
#define XVID_NAME_L L"Xvid MPEG-4 Video Decoder" |
37 |
|
|
38 |
/* --- fourcc --- */ |
/* --- fourcc --- */ |
165 |
xvid_dec_frame_t m_frame; |
xvid_dec_frame_t m_frame; |
166 |
|
|
167 |
HINSTANCE m_hdll; |
HINSTANCE m_hdll; |
168 |
int (*xvid_global_func)(void *handle, int opt, void *param1, void *param2); |
int (__cdecl *xvid_global_func)(void *handle, int opt, void *param1, void *param2); |
169 |
int (*xvid_decore_func)(void *handle, int opt, void *param1, void *param2); |
int (__cdecl *xvid_decore_func)(void *handle, int opt, void *param1, void *param2); |
170 |
int ar_x, ar_y; |
UINT ar_x, ar_y; |
171 |
bool forced_ar; |
bool forced_ar; |
172 |
|
|
173 |
int rgb_flip; |
int rgb_flip; |
197 |
UINT64 m_duration; |
UINT64 m_duration; |
198 |
#endif |
#endif |
199 |
|
|
|
#ifdef XVID_USE_TRAYICON |
|
200 |
HWND MSG_hwnd; /* message handler window */ |
HWND MSG_hwnd; /* message handler window */ |
201 |
}; |
}; |
202 |
#define WM_ICONMESSAGE (WM_USER + 1) |
#define WM_ICONMESSAGE (WM_USER + 1) |
|
#else |
|
|
}; |
|
|
#endif |
|
203 |
|
|
204 |
static const int PARS[][2] = { |
static const int PARS[][2] = { |
205 |
{1, 1}, |
{1, 1}, |