Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Side by Side Diff: media/base/vector_math_testing.h

Issue 13726011: Add vector_math::FMUL. Replace audio_util::AdjustVolume. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix volume == 1 case. Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/base/vector_math.cc ('k') | media/base/vector_math_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_BASE_VECTOR_MATH_TESTING_H_ 5 #ifndef MEDIA_BASE_VECTOR_MATH_TESTING_H_
6 #define MEDIA_BASE_VECTOR_MATH_TESTING_H_ 6 #define MEDIA_BASE_VECTOR_MATH_TESTING_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "media/base/media_export.h" 9 #include "media/base/media_export.h"
10 10
11 namespace media { 11 namespace media {
12 namespace vector_math { 12 namespace vector_math {
13 13
14 // Optimized versions of FMAC() function exposed for testing. See vector_math.h 14 // Optimized versions exposed for testing. See vector_math.h for details.
15 // for details.
16 MEDIA_EXPORT void FMAC_C(const float src[], float scale, int len, float dest[]); 15 MEDIA_EXPORT void FMAC_C(const float src[], float scale, int len, float dest[]);
16 MEDIA_EXPORT void FMUL_C(const float src[], float scale, int len, float dest[]);
17 17
18 #if defined(ARCH_CPU_X86_FAMILY) 18 #if defined(ARCH_CPU_X86_FAMILY)
19 MEDIA_EXPORT void FMAC_SSE(const float src[], float scale, int len, 19 MEDIA_EXPORT void FMAC_SSE(const float src[], float scale, int len,
20 float dest[]); 20 float dest[]);
21 MEDIA_EXPORT void FMUL_SSE(const float src[], float scale, int len,
22 float dest[]);
21 #endif 23 #endif
22 24
23 } // namespace vector_math 25 } // namespace vector_math
24 } // namespace media 26 } // namespace media
25 27
26 #endif // MEDIA_BASE_VECTOR_MATH_TESTING_H_ 28 #endif // MEDIA_BASE_VECTOR_MATH_TESTING_H_
OLDNEW
« no previous file with comments | « media/base/vector_math.cc ('k') | media/base/vector_math_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698