Add code to generate python visualization to neteq_rtpplay

This adds a command line flag to generate a python visualization script from neteq_rtpplay.

Bug: webrtc:8614
Change-Id: Ia6f10d7ff0abac6fdbe9302e7f97a8a12a5bb65b
Reviewed-on: https://webrtc-review.googlesource.com/29940
Commit-Queue: Ivo Creusen <ivoc@webrtc.org>
Reviewed-by: Alessio Bazzica <alessiob@webrtc.org>
Reviewed-by: Henrik Lundin <henrik.lundin@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#21116}
This commit is contained in:
Ivo Creusen
2017-12-06 10:48:10 +01:00
committed by Commit Bot
parent 7dc26b7b32
commit d1d8dfb5c3
3 changed files with 97 additions and 1 deletions

View File

@ -48,6 +48,11 @@ class NetEqDelayAnalyzer : public test::NetEqPostInsertPacket,
// as provided by CreateGraphs.
void CreateMatlabScript(const std::string& script_name) const;
// Creates a python script with file name |script_name|. When executed in
// Python, the script will generate graphs with the same timing information
// as provided by CreateGraphs.
void CreatePythonScript(const std::string& script_name) const;
private:
struct TimingData {
explicit TimingData(double at) : arrival_time_ms(at) {}