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

Side by Side Diff: media/base/vector_math.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/simd/vector_math_sse.cc ('k') | media/base/vector_math.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_H_ 5 #ifndef MEDIA_BASE_VECTOR_MATH_H_
6 #define MEDIA_BASE_VECTOR_MATH_H_ 6 #define MEDIA_BASE_VECTOR_MATH_H_
7 7
8 #include "media/base/media_export.h" 8 #include "media/base/media_export.h"
9 9
10 namespace media { 10 namespace media {
11 namespace vector_math { 11 namespace vector_math {
12 12
13 // Required alignment for inputs and outputs to all vector math functions 13 // Required alignment for inputs and outputs to all vector math functions
14 enum { kRequiredAlignment = 16 }; 14 enum { kRequiredAlignment = 16 };
15 15
16 // Multiply each element of |src| (up to |len|) by |scale| and add to |dest|. 16 // Multiply each element of |src| (up to |len|) by |scale| and add to |dest|.
17 // |src| and |dest| must be aligned by kRequiredAlignment. 17 // |src| and |dest| must be aligned by kRequiredAlignment.
18 MEDIA_EXPORT void FMAC(const float src[], float scale, int len, float dest[]); 18 MEDIA_EXPORT void FMAC(const float src[], float scale, int len, float dest[]);
19 19
20 // Multiply each element of |src| by |scale| and store in |dest|. |src| and
21 // |dest| must be aligned by kRequiredAlignment.
22 MEDIA_EXPORT void FMUL(const float src[], float scale, int len, float dest[]);
23
20 } // namespace vector_math 24 } // namespace vector_math
21 } // namespace media 25 } // namespace media
22 26
23 #endif // MEDIA_BASE_VECTOR_MATH_H_ 27 #endif // MEDIA_BASE_VECTOR_MATH_H_
OLDNEW
« no previous file with comments | « media/base/simd/vector_math_sse.cc ('k') | media/base/vector_math.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698