mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-13 02:20:07 +01:00
Move mm_support() from libavcodec to libavutil, make it a public
function and rename it to av_get_cpu_flags(). Originally committed as revision 25076 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include "libavutil/cpu.h"
|
||||
#include "libavutil/x86_cpu.h"
|
||||
#include "libavcodec/dsputil.h"
|
||||
#include "libavcodec/vp56dsp.h"
|
||||
@@ -32,7 +33,7 @@ void ff_vp6_filter_diag4_sse2(uint8_t *dst, uint8_t *src, int stride,
|
||||
av_cold void ff_vp56dsp_init_x86(VP56DSPContext* c, enum CodecID codec)
|
||||
{
|
||||
#if HAVE_YASM
|
||||
int mm_flags = mm_support();
|
||||
int mm_flags = av_get_cpu_flags();
|
||||
|
||||
if (CONFIG_VP6_DECODER && codec == CODEC_ID_VP6) {
|
||||
if (mm_flags & AV_CPU_FLAG_MMX) {
|
||||
|
||||
Reference in New Issue
Block a user