Chromium Code Reviews| OLD | NEW |
|---|---|
| (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> | |
|
aluebs-chromium
2015/09/10 02:41:40
Why is this include necessary here?
ajm
2015/09/10 21:56:57
It's not any longer; removed.
| |
| 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_ | |
| OLD | NEW |