aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/fmtconvert.h
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-04-24 17:50:17 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2011-05-18 17:27:05 -0400
commit32f8fb8ecf8178b9c9ec8d7152f1fdd8537f7f3a (patch)
tree75ece9cd372dafb36670424033068b6edafaceda /libavcodec/fmtconvert.h
parentf907ad9b85d5e08e4a024e24734181940cd4fc48 (diff)
downloadffmpeg-32f8fb8ecf8178b9c9ec8d7152f1fdd8537f7f3a.tar.gz
Add float_interleave() to FmtConvertContext with x86-optimized versions.
Partially based on patches by clsid2 in ffdshow-tryout. ff_float_interleave6() x86 improvements by Loren Merrit.
Diffstat (limited to 'libavcodec/fmtconvert.h')
-rw-r--r--libavcodec/fmtconvert.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavcodec/fmtconvert.h b/libavcodec/fmtconvert.h
index e0afee47e1..d7741135b7 100644
--- a/libavcodec/fmtconvert.h
+++ b/libavcodec/fmtconvert.h
@@ -68,8 +68,17 @@ typedef struct FmtConvertContext {
*/
void (*float_to_int16_interleave)(int16_t *dst, const float **src,
long len, int channels);
+
+ /**
+ * Convert an array of interleaved float to multiple arrays of float.
+ */
+ 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);