3 |
* XVID MPEG-4 VIDEO CODEC |
* XVID MPEG-4 VIDEO CODEC |
4 |
* - VFW codec header - |
* - VFW codec header - |
5 |
* |
* |
6 |
* Copyright(C) 2002-2003 Anonymous <xvid-devel@xvid.org> |
* Copyright(C) 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: codec.h,v 1.2 2004-03-22 22:36:25 edgomez Exp $ |
* $Id: codec.h,v 1.8 2011-02-16 18:59:45 Isibaar Exp $ |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
25 |
#ifndef _CODEC_H_ |
#ifndef _CODEC_H_ |
30 |
#include "status.h" |
#include "status.h" |
31 |
|
|
32 |
#define XVID_NAME_L L"XVID" |
#define XVID_NAME_L L"XVID" |
33 |
#define XVID_DESC_L L"XviD MPEG-4 Codec" |
#define XVID_DESC_L L"Xvid MPEG-4 Codec" |
34 |
|
|
35 |
#define FOURCC_XVID mmioFOURCC('X','V','I','D') |
#define FOURCC_XVID mmioFOURCC('X','V','I','D') |
36 |
#define FOURCC_DIVX mmioFOURCC('D','I','V','X') |
#define FOURCC_DIVX mmioFOURCC('D','I','V','X') |
37 |
#define FOURCC_DX50 mmioFOURCC('D','X','5','0') |
#define FOURCC_DX50 mmioFOURCC('D','X','5','0') |
38 |
|
#define FOURCC_MP4V mmioFOURCC('M','P','4','V') |
39 |
|
#define FOURCC_xvid mmioFOURCC('x','v','i','d') |
40 |
|
#define FOURCC_divx mmioFOURCC('d','i','v','x') |
41 |
|
#define FOURCC_dx50 mmioFOURCC('d','x','5','0') |
42 |
|
#define FOURCC_mp4v mmioFOURCC('m','p','4','v') |
43 |
|
|
44 |
/* yuyu 4:2:2 16bit, y-u-y-v, packed*/ |
/* yuyu 4:2:2 16bit, y-u-y-v, packed*/ |
45 |
#define FOURCC_YUYV mmioFOURCC('Y','U','Y','V') |
#define FOURCC_YUYV mmioFOURCC('Y','U','Y','V') |
46 |
#define FOURCC_YUY2 mmioFOURCC('Y','U','Y','2') |
#define FOURCC_YUY2 mmioFOURCC('Y','U','Y','2') |
72 |
int framenum; |
int framenum; |
73 |
int keyspacing; |
int keyspacing; |
74 |
|
|
75 |
|
HINSTANCE m_hdll; |
76 |
|
int (*xvid_global_func)(void *handle, int opt, void *param1, void *param2); |
77 |
|
int (*xvid_encore_func)(void *handle, int opt, void *param1, void *param2); |
78 |
|
int (*xvid_decore_func)(void *handle, int opt, void *param1, void *param2); |
79 |
|
|
80 |
|
xvid_plugin_func *xvid_plugin_single_func; |
81 |
|
xvid_plugin_func *xvid_plugin_2pass1_func; |
82 |
|
xvid_plugin_func *xvid_plugin_2pass2_func; |
83 |
|
xvid_plugin_func *xvid_plugin_lumimasking_func; |
84 |
|
xvid_plugin_func *xvid_plugin_psnr_func; |
85 |
|
|
86 |
} CODEC; |
} CODEC; |
87 |
|
|
88 |
|
|
101 |
LRESULT decompress_end(CODEC *); |
LRESULT decompress_end(CODEC *); |
102 |
LRESULT decompress(CODEC *, ICDECOMPRESS *); |
LRESULT decompress(CODEC *, ICDECOMPRESS *); |
103 |
|
|
104 |
extern HINSTANCE m_hdll; |
extern int pp_brightness, pp_dy, pp_duv, pp_fe, pp_dry, pp_druv; /* decoder options */ |
|
extern int (*xvid_global_func)(void *handle, int opt, void *param1, void *param2); |
|
|
extern int (*xvid_encore_func)(void *handle, int opt, void *param1, void *param2); |
|
|
extern int (*xvid_decore_func)(void *handle, int opt, void *param1, void *param2); |
|
|
|
|
|
extern xvid_plugin_func *xvid_plugin_single_func, |
|
|
*xvid_plugin_2pass1_func, |
|
|
*xvid_plugin_2pass2_func, |
|
|
*xvid_plugin_lumimasking_func, |
|
|
*xvid_plugin_psnr_func; |
|
|
|
|
|
extern int pp_dy, pp_duv, pp_dr, pp_fe; /* decoder options */ |
|
105 |
|
|
106 |
#endif /* _CODEC_H_ */ |
#endif /* _CODEC_H_ */ |