[FFmpeg-cvslog] vp9/x86: make filter_48/84_v work on 32-bit.
Ronald S. Bultje
git at videolan.org
Sat Dec 27 23:26:35 CET 2014
ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Fri Dec 26 12:10:26 2014 -0500| [0cc9c23ea171e1b7515334032a5c684472e91bc4] | committer: Ronald S. Bultje
vp9/x86: make filter_48/84_v work on 32-bit.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0cc9c23ea171e1b7515334032a5c684472e91bc4
---
libavcodec/x86/vp9dsp_init.c | 8 ++++++--
libavcodec/x86/vp9lpf.asm | 8 +++-----
2 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/libavcodec/x86/vp9dsp_init.c b/libavcodec/x86/vp9dsp_init.c
index 5d375aa..f3a8de3 100644
--- a/libavcodec/x86/vp9dsp_init.c
+++ b/libavcodec/x86/vp9dsp_init.c
@@ -350,9 +350,13 @@ av_cold void ff_vp9dsp_init_x86(VP9DSPContext *dsp)
dsp->loop_filter_mix2[0][0][1] = ff_vp9_loop_filter_v_44_16_##opt; \
if (ARCH_X86_64) { \
dsp->loop_filter_mix2[0][1][0] = ff_vp9_loop_filter_h_48_16_##opt; \
- dsp->loop_filter_mix2[0][1][1] = ff_vp9_loop_filter_v_48_16_##opt; \
+ } \
+ dsp->loop_filter_mix2[0][1][1] = ff_vp9_loop_filter_v_48_16_##opt; \
+ if (ARCH_X86_64) { \
dsp->loop_filter_mix2[1][0][0] = ff_vp9_loop_filter_h_84_16_##opt; \
- dsp->loop_filter_mix2[1][0][1] = ff_vp9_loop_filter_v_84_16_##opt; \
+ } \
+ dsp->loop_filter_mix2[1][0][1] = ff_vp9_loop_filter_v_84_16_##opt; \
+ if (ARCH_X86_64) { \
dsp->loop_filter_mix2[1][1][0] = ff_vp9_loop_filter_h_88_16_##opt; \
} \
dsp->loop_filter_mix2[1][1][1] = ff_vp9_loop_filter_v_88_16_##opt; \
diff --git a/libavcodec/x86/vp9lpf.asm b/libavcodec/x86/vp9lpf.asm
index 1e65d8e..94939d8 100644
--- a/libavcodec/x86/vp9lpf.asm
+++ b/libavcodec/x86/vp9lpf.asm
@@ -918,9 +918,7 @@ LPF_16_VH %1, %2, %3, avx
%if ARCH_X86_64
LPF_16_VH_ALL_OPTS 16, 512
%endif
-LPF_16_VH_ALL_OPTS 44, 0, 0
-%if ARCH_X86_64
-LPF_16_VH_ALL_OPTS 48, 256
-LPF_16_VH_ALL_OPTS 84, 256
-%endif
+LPF_16_VH_ALL_OPTS 44, 0, 0
+LPF_16_VH_ALL_OPTS 48, 256, 16
+LPF_16_VH_ALL_OPTS 84, 256, 16
LPF_16_VH_ALL_OPTS 88, 256, 16
More information about the ffmpeg-cvslog
mailing list