/* * This file was stolen from ffmpeg and modified for usability here. * The original is * * Copyright (c) 2000, 2001 Fabrice Bellard * Copyright (c) 2002-2004 Michael Niedermayer * * This version is a derivative work of that version. It is not free * software; it is licensed under the GNU Lesser General Public * License version 2.1, which places nontrivial restrictions on what * may be done with it. (I'm not terribly happy about that, but for * my purposes accepting LGPL-infected code is a lower price than * reimplementing it all myself.) * * The LGPL v2.1 as distributed with ffmpeg is in the accompanying file * `LGPL-v2.1'. */ #include #include #include "avutil-common.h" #include "avutil-attributes.h" #include "fmtconvert.h" static void int32_to_float_fmul_scalar_c(float *dst, const int *src, float mul, int len){ int i; for(i=0; iint32_to_float_fmul_scalar = int32_to_float_fmul_scalar_c; c->float_to_int16 = float_to_int16_c; c->float_to_int16_interleave = float_to_int16_interleave_c; c->float_interleave = ff_float_interleave_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