Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix goom to use av_get_cpu_flags() from current ffmpeg

  • Loading branch information...
commit 75eafd40831b4ccfd451191fb25efd6861eeea76 1 parent 449d36d
@Beirdo Beirdo authored
View
3  mythplugins/mythmusic/mythmusic/goom/mmx.h
@@ -1,10 +1,9 @@
#ifndef GOOM_MMX_H
#include <mythconfig.h>
+#include <libavcodec/avcodec.h>
#include <libavcodec/mmx.h>
-int mm_support(void);
-
#define MM_MMX 0x0001 /* standard MMX */
#define MM_3DNOW 0x0004 /* AMD 3DNOW */
#define MM_MMXEXT 0x0002 /* SSE integer functions or AMD MMX ext */
View
2  mythplugins/mythmusic/mythmusic/goom/zoom_filter_xmmx.c
@@ -27,7 +27,7 @@ int zoom_filter_xmmx_supported (void);
#include "mmx.h"
int zoom_filter_xmmx_supported () {
- return (mm_support()&0x8)>>3;
+ return (av_get_cpu_flags() & AV_CPU_FLAG_SSE) >> 3;
}
void zoom_filter_xmmx (int prevX, int prevY,
View
2  mythtv/libs/libmythtv/visualisations/goom/mmx.h
@@ -3,8 +3,6 @@
#include <mythconfig.h>
#include "libavcodec/x86/mmx.h"
-int mm_support(void);
-
#define MM_MMX 0x0001 /* standard MMX */
#define MM_3DNOW 0x0004 /* AMD 3DNOW */
#define MM_MMXEXT 0x0002 /* SSE integer functions or AMD MMX ext */
View
3  mythtv/libs/libmythtv/visualisations/goom/zoom_filter_xmmx.c
@@ -25,9 +25,10 @@ int zoom_filter_xmmx_supported (void);
//#define MMX_TRACE
#include "mmx.h"
+#include "libavutil/cpu.h"
int zoom_filter_xmmx_supported () {
- return (mm_support()&0x8)>>3;
+ return (av_get_cpu_flags() & AV_CPU_FLAG_SSE) >> 3;
}
void zoom_filter_xmmx (int prevX, int prevY,
Please sign in to comment.
Something went wrong with that request. Please try again.