[prev in list] [next in list] [prev in thread] [next in thread] 

List:       helix-video-cvs
Subject:    [Video-cvs] colconverter avyuv2yuv.c, 1.2, 1.2.20.1 env.c, 1.4,
From:       bobclark () helixcommunity ! org
Date:       2004-04-08 17:39:03
[Download RAW message or body]

Update of /cvsroot/video/colconverter
In directory cvs-new:/tmp/cvs-serv20970

Modified Files:
      Tag: hxclient_1_1_6_neptune
	avyuv2yuv.c env.c env.h yuv2yuv.c 
Log Message:
add altivec optimizations for mac-unix; cr gwright

Index: yuv2yuv.c
===================================================================
RCS file: /cvsroot/video/colconverter/yuv2yuv.c,v
retrieving revision 1.4
retrieving revision 1.4.12.1
diff -u -d -r1.4 -r1.4.12.1
--- yuv2yuv.c	7 Aug 2003 18:20:34 -0000	1.4
+++ yuv2yuv.c	8 Apr 2004 17:39:00 -0000	1.4.12.1
@@ -900,7 +900,7 @@
 
 #endif
 
-#ifdef _MACINTOSH
+#if defined(_MACINTOSH) || defined(_MAC_UNIX)
 #ifdef __cplusplus
 extern "C"
 #endif
@@ -1010,7 +1010,7 @@
 #endif                    
             } else
 #endif
-#ifdef _MACINTOSH
+#if defined(_MACINTOSH) || defined(_MAC_UNIX)
             /* check if we can use MMX-optimized code here: */
             if (_AltiVec_Available)
             {

Index: env.c
===================================================================
RCS file: /cvsroot/video/colconverter/env.c,v
retrieving revision 1.4
retrieving revision 1.4.12.1
diff -u -d -r1.4 -r1.4.12.1
--- env.c	7 Aug 2003 18:20:07 -0000	1.4
+++ env.c	8 Apr 2004 17:39:00 -0000	1.4.12.1
@@ -56,7 +56,7 @@
 #if defined(_M_IX86)  && !defined(WINCE_EMULATOR)
    _x86_MMX_Available = (checkMmxAvailablity()&CPU_HAS_MMX)?1:0;
    return _x86_MMX_Available;
-#elif defined _MACINTOSH
+#elif defined(_MACINTOSH) || defined(_MAC_UNIX)
 	// Check for presence of AltiVec on Macintosh
 	OSErr	err;
 	long	processorAttributes;

Index: env.h
===================================================================
RCS file: /cvsroot/video/colconverter/env.h,v
retrieving revision 1.3
retrieving revision 1.3.12.1
diff -u -d -r1.3 -r1.3.12.1
--- env.h	7 Aug 2003 18:20:07 -0000	1.3
+++ env.h	8 Apr 2004 17:39:00 -0000	1.3.12.1
@@ -107,6 +107,6 @@
 #endif
 
 /* AltiVec extensions */
-#ifdef _MACINTOSH
+#if defined(_MACINTOSH) || defined(_MAC_UNIX)
 ENV_EXTERN int _AltiVec_Available;
 #endif

Index: avyuv2yuv.c
===================================================================
RCS file: /cvsroot/video/colconverter/avyuv2yuv.c,v
retrieving revision 1.2
retrieving revision 1.2.20.1
diff -u -d -r1.2 -r1.2.20.1
--- avyuv2yuv.c	4 Apr 2003 22:46:11 -0000	1.2
+++ avyuv2yuv.c	8 Apr 2004 17:39:00 -0000	1.2.20.1
@@ -33,7 +33,7 @@
  *  
  * ***** END LICENSE BLOCK ***** */ 
 
-#ifdef _MACINTOSH
+#if defined(_MACINTOSH) || defined(_MAC_UNIX)
 
 #pragma altivec_model on
 
@@ -51,7 +51,7 @@
     ((unsigned int)(b1) << 16) | ((unsigned int)(b0) << 24))
     
     
-#ifdef _MACINTOSH
+#if defined(_MACINTOSH) || defined(_MAC_UNIX)
 #ifdef __cplusplus
 extern "C"
 #endif



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic