content/media/AudioNodeEngineNEON.h

Fri, 16 Jan 2015 04:50:19 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 04:50:19 +0100
branch
TOR_BUG_9701
changeset 13
44a2da4a2ab2
permissions
-rw-r--r--

Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32

     1 /* -*- mode: c++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     2 /* this source code form is subject to the terms of the mozilla public
     3  * license, v. 2.0. if a copy of the mpl was not distributed with this file,
     4  * You can obtain one at http://mozilla.org/MPL/2.0/. */
     6 #ifndef MOZILLA_AUDIONODEENGINENEON_H_
     7 #define MOZILLA_AUDIONODEENGINENEON_H_
     9 #include "AudioNodeEngine.h"
    11 namespace mozilla {
    12 void AudioBufferAddWithScale_NEON(const float* aInput,
    13                                   float aScale,
    14                                   float* aOutput,
    15                                   uint32_t aSize);
    17 void
    18 AudioBlockCopyChannelWithScale_NEON(const float* aInput,
    19                                     float aScale,
    20                                     float* aOutput);
    22 void
    23 AudioBlockCopyChannelWithScale_NEON(const float aInput[WEBAUDIO_BLOCK_SIZE],
    24                                     const float aScale[WEBAUDIO_BLOCK_SIZE],
    25                                     float aOutput[WEBAUDIO_BLOCK_SIZE]);
    27 void
    28 AudioBufferInPlaceScale_NEON(float* aBlock,
    29                              float aScale,
    30                              uint32_t aSize);
    32 void
    33 AudioBlockPanStereoToStereo_NEON(const float aInputL[WEBAUDIO_BLOCK_SIZE],
    34                                  const float aInputR[WEBAUDIO_BLOCK_SIZE],
    35                                  float aGainL, float aGainR, bool aIsOnTheLeft,
    36                                  float aOutputL[WEBAUDIO_BLOCK_SIZE],
    37                                  float aOutputR[WEBAUDIO_BLOCK_SIZE]);
    38 }
    40 #endif /* MOZILLA_AUDIONODEENGINENEON_H_ */

mercurial