--- branches/dev-api-4/xvidcore/vfw/src/codec.h 2003/06/09 01:25:19 1053 +++ branches/dev-api-4/xvidcore/vfw/src/codec.h 2004/01/27 11:21:11 1339 @@ -1,8 +1,33 @@ +/***************************************************************************** + * + * XVID MPEG-4 VIDEO CODEC + * - VFW codec header - + * + * Copyright(C) 2002-2003 Anonymous + * + * This program is free software ; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation ; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY ; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program ; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * $Id: codec.h,v 1.1.2.8 2004-01-27 11:21:11 suxen_drol Exp $ + * + ****************************************************************************/ #ifndef _CODEC_H_ #define _CODEC_H_ #include #include "config.h" +#include "status.h" #define XVID_NAME_L L"XVID" #define XVID_DESC_L L"XviD MPEG-4 Codec" @@ -33,8 +58,9 @@ // encoder void * ehandle; - int fincr; - int fbase; + unsigned int fincr; + unsigned int fbase; + status_t status; /* encoder min keyframe internal */ int framenum; @@ -43,8 +69,6 @@ } CODEC; -int get_colorspace(BITMAPINFOHEADER *); - LRESULT compress_query(CODEC *, BITMAPINFO *, BITMAPINFO *); LRESULT compress_get_format(CODEC *, BITMAPINFO *, BITMAPINFO *); LRESULT compress_get_size(CODEC *, BITMAPINFO *, BITMAPINFO *); @@ -59,4 +83,17 @@ LRESULT decompress_end(CODEC *); LRESULT decompress(CODEC *, ICDECOMPRESS *); +HINSTANCE m_hdll; +int (*xvid_global_func)(void *handle, int opt, void *param1, void *param2); +int (*xvid_encore_func)(void *handle, int opt, void *param1, void *param2); +int (*xvid_decore_func)(void *handle, int opt, void *param1, void *param2); + +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 */ + #endif /* _CODEC_H_ */