* postprocess.c: video postprocessing using the ffmpeg library
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
- * $Id: postprocess.c,v 1.7 2004/01/25 18:20:12 bigben Exp $
+ * $Id$
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com>
# include <libpostproc/postprocess.h>
#endif
+#ifndef PP_CPU_CAPS_ALTIVEC
+# define PP_CPU_CAPS_ALTIVEC 0
+#endif
+
/*****************************************************************************
* video_postproc_sys_t : ffmpeg video postprocessing descriptor
*****************************************************************************/
int32_t i_cpu = p_dec->p_libvlc->i_cpu;
int i_flags = 0;
+ /* Set CPU capabilities */
if( i_cpu & CPU_CAPABILITY_MMX )
{
i_flags |= PP_CPU_CAPS_MMX;
{
i_flags |= PP_CPU_CAPS_3DNOW;
}
+ if( i_cpu & CPU_CAPABILITY_ALTIVEC )
+ {
+ i_flags |= PP_CPU_CAPS_ALTIVEC;
+ }
switch( pix_fmt )
{