Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Unified Diff: source/patched-ffmpeg-mt/libavcodec/x86/cavsdsp_mmx.c

Issue 3384002: ffmpeg source update for sep 09 (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/patched-ffmpeg-mt/libavcodec/x86/Makefile ('k') | source/patched-ffmpeg-mt/libavcodec/x86/cpuid.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/patched-ffmpeg-mt/libavcodec/x86/cavsdsp_mmx.c
===================================================================
--- source/patched-ffmpeg-mt/libavcodec/x86/cavsdsp_mmx.c (revision 59334)
+++ source/patched-ffmpeg-mt/libavcodec/x86/cavsdsp_mmx.c (working copy)
@@ -23,6 +23,7 @@
*/
#include "libavutil/common.h"
+#include "libavutil/cpu.h"
#include "libavutil/x86_cpu.h"
#include "libavcodec/dsputil.h"
#include "libavcodec/cavsdsp.h"
@@ -173,7 +174,7 @@
);
}
- add_pixels_clamped_mmx(b2, dst, stride);
+ ff_add_pixels_clamped_mmx(b2, dst, stride);
}
/*****************************************************************************
@@ -472,8 +473,8 @@
void ff_cavsdsp_init_mmx(CAVSDSPContext *c, AVCodecContext *avctx)
{
- int mm_flags = mm_support();
+ int mm_flags = av_get_cpu_flags();
- if (mm_flags & FF_MM_MMX2) ff_cavsdsp_init_mmx2 (c, avctx);
- if (mm_flags & FF_MM_3DNOW) ff_cavsdsp_init_3dnow(c, avctx);
+ if (mm_flags & AV_CPU_FLAG_MMX2) ff_cavsdsp_init_mmx2 (c, avctx);
+ if (mm_flags & AV_CPU_FLAG_3DNOW) ff_cavsdsp_init_3dnow(c, avctx);
}
« no previous file with comments | « source/patched-ffmpeg-mt/libavcodec/x86/Makefile ('k') | source/patched-ffmpeg-mt/libavcodec/x86/cpuid.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698