[FFmpeg-cvslog] lavr: move AudioMix struct definition to audio_mix.c

Justin Ruggles git at videolan.org
Sun Dec 16 13:12:55 CET 2012


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Thu Dec 13 21:18:15 2012 -0500| [230acdde264e694086a05cd439dc02445b9ad26a] | committer: Justin Ruggles

lavr: move AudioMix struct definition to audio_mix.c

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=230acdde264e694086a05cd439dc02445b9ad26a
---

 libavresample/audio_mix.c |   23 +++++++++++++++++++++++
 libavresample/audio_mix.h |   23 +----------------------
 2 files changed, 24 insertions(+), 22 deletions(-)

diff --git a/libavresample/audio_mix.c b/libavresample/audio_mix.c
index 3b39cee..62f8bd6 100644
--- a/libavresample/audio_mix.c
+++ b/libavresample/audio_mix.c
@@ -30,6 +30,29 @@
 
 static const char *coeff_type_names[] = { "q8", "q15", "flt" };
 
+struct AudioMix {
+    AVAudioResampleContext *avr;
+    enum AVSampleFormat fmt;
+    enum AVMixCoeffType coeff_type;
+    uint64_t in_layout;
+    uint64_t out_layout;
+    int in_channels;
+    int out_channels;
+
+    int ptr_align;
+    int samples_align;
+    int has_optimized_func;
+    const char *func_descr;
+    const char *func_descr_generic;
+    mix_func *mix;
+    mix_func *mix_generic;
+
+    int16_t *matrix_q8[AVRESAMPLE_MAX_CHANNELS];
+    int32_t *matrix_q15[AVRESAMPLE_MAX_CHANNELS];
+    float   *matrix_flt[AVRESAMPLE_MAX_CHANNELS];
+    void   **matrix;
+};
+
 void ff_audio_mix_set_func(AudioMix *am, enum AVSampleFormat fmt,
                            enum AVMixCoeffType coeff_type, int in_channels,
                            int out_channels, int ptr_align, int samples_align,
diff --git a/libavresample/audio_mix.h b/libavresample/audio_mix.h
index 22faea7..4ccfc1f 100644
--- a/libavresample/audio_mix.h
+++ b/libavresample/audio_mix.h
@@ -30,28 +30,7 @@
 typedef void (mix_func)(uint8_t **src, void **matrix, int len, int out_ch,
                         int in_ch);
 
-typedef struct AudioMix {
-    AVAudioResampleContext *avr;
-    enum AVSampleFormat fmt;
-    enum AVMixCoeffType coeff_type;
-    uint64_t in_layout;
-    uint64_t out_layout;
-    int in_channels;
-    int out_channels;
-
-    int ptr_align;
-    int samples_align;
-    int has_optimized_func;
-    const char *func_descr;
-    const char *func_descr_generic;
-    mix_func *mix;
-    mix_func *mix_generic;
-
-    int16_t *matrix_q8[AVRESAMPLE_MAX_CHANNELS];
-    int32_t *matrix_q15[AVRESAMPLE_MAX_CHANNELS];
-    float   *matrix_flt[AVRESAMPLE_MAX_CHANNELS];
-    void   **matrix;
-} AudioMix;
+typedef struct AudioMix AudioMix;
 
 /**
  * Set mixing function if the parameters match.



More information about the ffmpeg-cvslog mailing list