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

Side by Side Diff: media/audio/point.h

Issue 1275783003: Add a virtual beamforming audio device on ChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add gfx dependency. Created 5 years, 3 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
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MEDIA_AUDIO_POINT_H_
6 #define MEDIA_AUDIO_POINT_H_
7
8 #include <cmath>
9 #include <string>
10 #include <vector>
11
12 #include "media/base/media_export.h"
13 #include "ui/gfx/geometry/point3_f.h"
14
15 namespace media {
16
17 using Point = gfx::Point3F;
18
19 // Returns a vector of points parsed from a whitespace-separated string
20 // formatted as: "x1 y1 z1 ... zn yn zn" for n points.
21 //
22 // Returns an empty vector if |points_string| is empty or isn't parseable.
23 MEDIA_EXPORT std::vector<Point> ParsePointsFromString(
24 const std::string& points_string);
25
26 // Returns |points| as a human-readable string. (Not necessarily in the format
27 // required by ParsePointsFromString).
28 MEDIA_EXPORT std::string PointsToString(const std::vector<Point>& points);
29
30 } // namespace media
31
32 #endif // MEDIA_AUDIO_POINT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698