summaryrefslogtreecommitdiff
path: root/libavresample/dither.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-10-31 15:40:12 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2013-01-08 14:52:43 -0500
commit1fb8f6a44f06e48386450fe0363aefc02583d24a (patch)
tree10646418de90866bc7b3393b2c6a04107ddba4da /libavresample/dither.c
parent142c39097c306d84624107070622f78c61981fc6 (diff)
x86: lavr: add SSE2 quantize() for dithering
Diffstat (limited to 'libavresample/dither.c')
-rw-r--r--libavresample/dither.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavresample/dither.c b/libavresample/dither.c
index dfff03e756..f24bf5c765 100644
--- a/libavresample/dither.c
+++ b/libavresample/dither.c
@@ -336,6 +336,9 @@ static void dither_init(DitherDSPContext *ddsp,
ddsp->dither_int_to_float = dither_int_to_float_rectangular_c;
else
ddsp->dither_int_to_float = dither_int_to_float_triangular_c;
+
+ if (ARCH_X86)
+ ff_dither_init_x86(ddsp, method);
}
DitherContext *ff_dither_alloc(AVAudioResampleContext *avr,