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

Unified 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: aluebs comments. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/audio/openbsd/audio_manager_openbsd.cc ('k') | media/audio/point.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/point.h
diff --git a/media/audio/point.h b/media/audio/point.h
new file mode 100644
index 0000000000000000000000000000000000000000..d215a5991195f7f9a1d5a3fa5960b9a491bae512
--- /dev/null
+++ b/media/audio/point.h
@@ -0,0 +1,31 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MEDIA_AUDIO_POINT_H_
+#define MEDIA_AUDIO_POINT_H_
+
+#include <string>
+#include <vector>
+
+#include "media/base/media_export.h"
+#include "ui/gfx/geometry/point3_f.h"
+
+namespace media {
+
+using Point = gfx::Point3F;
+
+// Returns a vector of points parsed from a whitespace-separated string
+// formatted as: "x1 y1 z1 ... zn yn zn" for n points.
+//
+// Returns an empty vector if |points_string| is empty or isn't parseable.
+MEDIA_EXPORT std::vector<Point> ParsePointsFromString(
+ const std::string& points_string);
+
+// Returns |points| as a human-readable string. (Not necessarily in the format
+// required by ParsePointsFromString).
+MEDIA_EXPORT std::string PointsToString(const std::vector<Point>& points);
+
+} // namespace media
+
+#endif // MEDIA_AUDIO_POINT_H_
« no previous file with comments | « media/audio/openbsd/audio_manager_openbsd.cc ('k') | media/audio/point.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698