diff options
author | Mans Rullgard <mans@mansr.com> | 2012-07-01 12:51:30 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2012-07-02 01:16:37 +0100 |
commit | 2f0accf1038350a01a7b52f3cbe75a554f7438a3 (patch) | |
tree | 5ab9d3bc501e38121a3d5db2b6d8ccae77e41c45 /libavfilter/vf_gradfun.c | |
parent | fc31508e3a7894efd8d084e3bc483f958dfdd726 (diff) | |
download | ffmpeg-2f0accf1038350a01a7b52f3cbe75a554f7438a3.tar.gz |
vf_gradfun: move x86 init code to x86/gradfun.c
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavfilter/vf_gradfun.c')
-rw-r--r-- | libavfilter/vf_gradfun.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libavfilter/vf_gradfun.c b/libavfilter/vf_gradfun.c index 12977d92b7..71749fe7a9 100644 --- a/libavfilter/vf_gradfun.c +++ b/libavfilter/vf_gradfun.c @@ -123,7 +123,6 @@ static av_cold int init(AVFilterContext *ctx, const char *args) GradFunContext *gf = ctx->priv; float thresh = 1.2; int radius = 16; - int cpu_flags = av_get_cpu_flags(); if (args) sscanf(args, "%f:%d", &thresh, &radius); @@ -135,12 +134,8 @@ static av_cold int init(AVFilterContext *ctx, const char *args) gf->blur_line = ff_gradfun_blur_line_c; gf->filter_line = ff_gradfun_filter_line_c; - if (HAVE_MMX && cpu_flags & AV_CPU_FLAG_MMX2) - gf->filter_line = ff_gradfun_filter_line_mmx2; - if (HAVE_SSSE3 && cpu_flags & AV_CPU_FLAG_SSSE3) - gf->filter_line = ff_gradfun_filter_line_ssse3; - if (HAVE_SSE && cpu_flags & AV_CPU_FLAG_SSE2) - gf->blur_line = ff_gradfun_blur_line_sse2; + if (HAVE_MMX) + ff_gradfun_init_x86(gf); av_log(ctx, AV_LOG_VERBOSE, "threshold:%.2f radius:%d\n", thresh, gf->radius); |