content/media/AudioNodeEngineNEON.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/content/media/AudioNodeEngineNEON.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,40 @@
     1.4 +/* -*- mode: c++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* this source code form is subject to the terms of the mozilla public
     1.6 + * license, v. 2.0. if a copy of the mpl was not distributed with this file,
     1.7 + * You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#ifndef MOZILLA_AUDIONODEENGINENEON_H_
    1.10 +#define MOZILLA_AUDIONODEENGINENEON_H_
    1.11 +
    1.12 +#include "AudioNodeEngine.h"
    1.13 +
    1.14 +namespace mozilla {
    1.15 +void AudioBufferAddWithScale_NEON(const float* aInput,
    1.16 +                                  float aScale,
    1.17 +                                  float* aOutput,
    1.18 +                                  uint32_t aSize);
    1.19 +
    1.20 +void
    1.21 +AudioBlockCopyChannelWithScale_NEON(const float* aInput,
    1.22 +                                    float aScale,
    1.23 +                                    float* aOutput);
    1.24 +
    1.25 +void
    1.26 +AudioBlockCopyChannelWithScale_NEON(const float aInput[WEBAUDIO_BLOCK_SIZE],
    1.27 +                                    const float aScale[WEBAUDIO_BLOCK_SIZE],
    1.28 +                                    float aOutput[WEBAUDIO_BLOCK_SIZE]);
    1.29 +
    1.30 +void
    1.31 +AudioBufferInPlaceScale_NEON(float* aBlock,
    1.32 +                             float aScale,
    1.33 +                             uint32_t aSize);
    1.34 +
    1.35 +void
    1.36 +AudioBlockPanStereoToStereo_NEON(const float aInputL[WEBAUDIO_BLOCK_SIZE],
    1.37 +                                 const float aInputR[WEBAUDIO_BLOCK_SIZE],
    1.38 +                                 float aGainL, float aGainR, bool aIsOnTheLeft,
    1.39 +                                 float aOutputL[WEBAUDIO_BLOCK_SIZE],
    1.40 +                                 float aOutputR[WEBAUDIO_BLOCK_SIZE]);
    1.41 +}
    1.42 +
    1.43 +#endif /* MOZILLA_AUDIONODEENGINENEON_H_ */

mercurial