summaryrefslogtreecommitdiffstats
path: root/libavcodec/fmtconvert.c
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2015-08-21 18:09:59 -0700
committerTimothy Gu <timothygu99@gmail.com>2015-08-22 08:29:10 -0700
commit8d9fe002b33564934da7b6e0c7eba4a43a74d557 (patch)
treea386fc6ef708303b64c4ddfd9b4be203d1b908f5 /libavcodec/fmtconvert.c
parent0aa9bbbc377ae100891cab94ce7de8623d3dcc3a (diff)
downloadffmpeg-streaming-8d9fe002b33564934da7b6e0c7eba4a43a74d557.zip
ffmpeg-streaming-8d9fe002b33564934da7b6e0c7eba4a43a74d557.tar.gz
fmtconvert: Remove float_interleave*
They were not public or used anywhere.
Diffstat (limited to 'libavcodec/fmtconvert.c')
-rw-r--r--libavcodec/fmtconvert.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/libavcodec/fmtconvert.c b/libavcodec/fmtconvert.c
index e6fc509..1de1d31 100644
--- a/libavcodec/fmtconvert.c
+++ b/libavcodec/fmtconvert.c
@@ -51,34 +51,3 @@ av_cold void ff_fmt_convert_init(FmtConvertContext *c, AVCodecContext *avctx)
if (ARCH_X86) ff_fmt_convert_init_x86(c, avctx);
if (HAVE_MIPSFPU) ff_fmt_convert_init_mips(c);
}
-
-/* ffdshow custom code */
-void float_interleave(float *dst, const float **src, long len, int channels)
-{
- int i,j,c;
- if(channels==2){
- for(i=0; i<len; i++){
- dst[2*i] = src[0][i] / 32768.0f;
- dst[2*i+1] = src[1][i] / 32768.0f;
- }
- }else{
- for(c=0; c<channels; c++)
- for(i=0, j=c; i<len; i++, j+=channels)
- dst[j] = src[c][i] / 32768.0f;
- }
-}
-
-void float_interleave_noscale(float *dst, const float **src, long len, int channels)
-{
- int i,j,c;
- if(channels==2){
- for(i=0; i<len; i++){
- dst[2*i] = src[0][i];
- dst[2*i+1] = src[1][i];
- }
- }else{
- for(c=0; c<channels; c++)
- for(i=0, j=c; i<len; i++, j+=channels)
- dst[j] = src[c][i];
- }
-}
OpenPOWER on IntegriCloud