# HG changeset patch
# User Diego 'Flameeyes' Pettenò <[EMAIL PROTECTED]>
# Date 1181392846 -7200
# Node ID 54586f780d926746b668e7149df768a99a18cdf5
# Parent 28b64238aa8d0c29d3ef9998465f09d6f68c7a14
Update ff_video_decoder.c to the new cpu_accel interface.
diff -r 54586f780d926746b668e7149df768a99a18cdf5 -r
28b64238aa8d0c29d3ef9998465f09d6f68c7a14 src/libffmpeg/ff_video_decoder.c
--- a/src/libffmpeg/ff_video_decoder.c Sat Jun 09 14:40:46 2007 +0200
+++ b/src/libffmpeg/ff_video_decoder.c Sat Jun 09 14:37:56 2007 +0200
@@ -47,6 +47,7 @@
#include "bswap.h"
#include "buffer.h"
#include "xineutils.h"
+#include "cpu_accel.h"
#include "ffmpeg_decoder.h"
#include "ff_mpeg_parser.h"
@@ -451,8 +452,6 @@ static void pp_change_quality (ff_video_
}
static void init_postprocess (ff_video_decoder_t *this) {
- uint32_t cpu_caps;
-
/* Allow post processing on mpeg-4 (based) codecs */
switch(this->codec->id) {
case CODEC_ID_MPEG4:
@@ -469,16 +468,15 @@ static void init_postprocess (ff_video_d
}
/* Detect what cpu accel we have */
- cpu_caps = xine_mm_accel();
this->pp_flags = PP_FORMAT_420;
- if(cpu_caps & MM_ACCEL_X86_MMX)
+ if( CHECK_MMX )
this->pp_flags |= PP_CPU_CAPS_MMX;
- if(cpu_caps & MM_ACCEL_X86_MMXEXT)
+ if( CHECK_MMXEXT )
this->pp_flags |= PP_CPU_CAPS_MMX2;
- if(cpu_caps & MM_ACCEL_X86_3DNOW)
+ if( CHECK_3DNOW )
this->pp_flags |= PP_CPU_CAPS_3DNOW;
/* Set level */
-------------------------------------------------------------------------
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