content/media/AudioNodeEngineNEON.h

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

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

mercurial