[FFmpeg-cvslog] swr: add native matrix for SIMD
Michael Niedermayer
git at videolan.org
Tue Jun 12 16:36:38 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jun 12 16:16:15 2012 +0200| [48a45f819f393b9a967b2ad891eef22227fc2040] | committer: Michael Niedermayer
swr: add native matrix for SIMD
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=48a45f819f393b9a967b2ad891eef22227fc2040
---
libswresample/rematrix.c | 1 +
libswresample/swresample_internal.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/libswresample/rematrix.c b/libswresample/rematrix.c
index 5fa77ce..a7d000c 100644
--- a/libswresample/rematrix.c
+++ b/libswresample/rematrix.c
@@ -346,6 +346,7 @@ int swri_rematrix_init(SwrContext *s){
void swri_rematrix_free(SwrContext *s){
av_freep(&s->native_matrix);
av_freep(&s->native_one);
+ av_freep(&s->native_simd_matrix);
}
int swri_rematrix(SwrContext *s, AudioData *out, AudioData *in, int len, int mustcopy){
diff --git a/libswresample/swresample_internal.h b/libswresample/swresample_internal.h
index c16be60..2d4240f 100644
--- a/libswresample/swresample_internal.h
+++ b/libswresample/swresample_internal.h
@@ -95,6 +95,7 @@ struct SwrContext {
float matrix[SWR_CH_MAX][SWR_CH_MAX]; ///< floating point rematrixing coefficients
uint8_t *native_matrix;
uint8_t *native_one;
+ uint8_t *native_simd_matrix;
int32_t matrix32[SWR_CH_MAX][SWR_CH_MAX]; ///< 17.15 fixed point rematrixing coefficients
uint8_t matrix_ch[SWR_CH_MAX][SWR_CH_MAX+1]; ///< Lists of input channels per output channel that have non zero rematrixing coefficients
mix_1_1_func_type *mix_1_1_f;
More information about the ffmpeg-cvslog
mailing list