# HG changeset patch
# User Diego 'Flameeyes' Pettenò <[EMAIL PROTECTED]>
# Date 1181391450 -7200
# Node ID 3012d0fcf927aa1e816b08f7940e154bf43f71ed
# Parent 6527487acf7c7ac0fb2638b8c06b897b9c36c957
Port yuv2rgb to the new cpu_accel interface.
diff -r 3012d0fcf927aa1e816b08f7940e154bf43f71ed -r
6527487acf7c7ac0fb2638b8c06b897b9c36c957 src/video_out/yuv2rgb.c
--- a/src/video_out/yuv2rgb.c Sat Jun 09 14:17:30 2007 +0200
+++ b/src/video_out/yuv2rgb.c Sat Jun 09 13:54:51 2007 +0200
@@ -42,6 +42,7 @@
*/
#include "xineutils.h"
+#include "cpu_accel.h"
static int prof_scale_line = -1;
@@ -3192,7 +3193,6 @@ yuv2rgb_factory_t* yuv2rgb_factory_init
uint8_t *cmap) {
yuv2rgb_factory_t *this;
- uint32_t mm = xine_mm_accel();
this = malloc (sizeof (yuv2rgb_factory_t));
@@ -3215,8 +3215,8 @@ yuv2rgb_factory_t* yuv2rgb_factory_init
*/
this->yuv2rgb_fun = NULL;
-#if defined(ARCH_X86) || defined(ARCH_X86_64)
- if ((this->yuv2rgb_fun == NULL) && (mm & MM_ACCEL_X86_MMXEXT)) {
+#if defined(__i386__) || defined(__x86_64__)
+ if ((this->yuv2rgb_fun == NULL) && CHECK_MMXEXT ) {
yuv2rgb_init_mmxext (this);
@@ -3226,7 +3226,7 @@ yuv2rgb_factory_t* yuv2rgb_factory_init
#endif
}
- if ((this->yuv2rgb_fun == NULL) && (mm & MM_ACCEL_X86_MMX)) {
+ if ((this->yuv2rgb_fun == NULL) && CHECK_MMX ) {
yuv2rgb_init_mmx (this);
@@ -3236,8 +3236,9 @@ yuv2rgb_factory_t* yuv2rgb_factory_init
#endif
}
#endif
+
#if HAVE_MLIB
- if ((this->yuv2rgb_fun == NULL) && (mm & MM_ACCEL_MLIB)) {
+ if ((this->yuv2rgb_fun == NULL) && CHECK_MLIB ) {
yuv2rgb_init_mlib (this);
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Xine-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xine-cvslog