--- colorspace.h 2003/02/15 15:22:18 1.5 +++ colorspace.h 2003/08/13 11:43:55 1.5.2.3 @@ -1,8 +1,32 @@ +/***************************************************************************** + * + * XVID MPEG-4 VIDEO CODEC + * - Colorspace related header - + * + * Copyright(C) 2001-2003 Peter Ross + * + * 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: colorspace.h,v 1.5.2.3 2003/08/13 11:43:55 edgomez Exp $ + * + ****************************************************************************/ + #ifndef _COLORSPACE_H #define _COLORSPACE_H #include "../portab.h" -#include "../divx4.h" /* initialize tables */ @@ -67,6 +91,7 @@ packedFunc uyvyi_to_yv12_c; +#ifdef ARCH_IS_IA32 /* mmx */ packedFunc bgr_to_yv12_mmx; packedFunc bgra_to_yv12_mmx; @@ -80,6 +105,7 @@ /* xmm */ packedFunc yuyv_to_yv12_xmm; packedFunc uyvy_to_yv12_xmm; +#endif /* yv12_to_xxx colorspace conversion functions (decoder) */ @@ -121,6 +147,7 @@ packedFunc yv12_to_yuyvi_c; packedFunc yv12_to_uyvyi_c; +#ifdef ARCH_IS_IA32 /* mmx */ packedFunc yv12_to_bgr_mmx; packedFunc yv12_to_bgra_mmx; @@ -129,6 +156,7 @@ packedFunc yv12_to_yuyvi_mmx; packedFunc yv12_to_uyvyi_mmx; +#endif typedef void (planarFunc) ( @@ -142,8 +170,11 @@ extern planarFuncPtr yv12_to_yv12; planarFunc yv12_to_yv12_c; + +#ifdef ARCH_IS_IA32 planarFunc yv12_to_yv12_mmx; planarFunc yv12_to_yv12_xmm; +#endif #endif /* _COLORSPACE_H_ */