]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/fmtconvert.h
aacdec: Remove erroneous reference to global gain from the out of bounds scalefactor...
[ffmpeg] / libavcodec / fmtconvert.h
index e0afee47e1cdeeed030a61457627b6b676a6a8c0..1b534019f1b8ada51c45b004a32f448dfcdd3381 100644 (file)
@@ -68,8 +68,25 @@ typedef struct FmtConvertContext {
      */
     void (*float_to_int16_interleave)(int16_t *dst, const float **src,
                                       long len, int channels);
+
+    /**
+     * Convert multiple arrays of float to an array of interleaved float.
+     *
+     * @param dst destination array of interleaved float.
+     *            constraints: 16-byte aligned
+     * @param src source array of float arrays, one for each channel.
+     *            constraints: 16-byte aligned
+     * @param len number of elements to convert.
+     *            constraints: multiple of 8
+     * @param channels number of channels
+     */
+    void (*float_interleave)(float *dst, const float **src, unsigned int len,
+                             int channels);
 } FmtConvertContext;
 
+void ff_float_interleave_c(float *dst, const float **src, unsigned int len,
+                           int channels);
+
 void ff_fmt_convert_init(FmtConvertContext *c, AVCodecContext *avctx);
 
 void ff_fmt_convert_init_arm(FmtConvertContext *c, AVCodecContext *avctx);