Aligning time in audio jitter buffer plot to other plots in rtc event log visualizer.

Bug: webrtc:9147
Change-Id: I4ddb3e93ea04a11a68e097ecad731d6d9d6842a9
Reviewed-on: https://webrtc-review.googlesource.com/75322
Reviewed-by: Björn Terelius <terelius@webrtc.org>
Reviewed-by: Henrik Lundin <henrik.lundin@webrtc.org>
Commit-Queue: Minyue Li <minyue@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23712}
This commit is contained in:
Minyue Li
2018-06-21 11:47:14 +02:00
committed by Commit Bot
parent 1ec04f19c6
commit 45fc6dfaaa
4 changed files with 133 additions and 172 deletions

View File

@ -37,11 +37,11 @@ class NetEqDelayAnalyzer : public test::NetEqPostInsertPacket,
bool muted,
NetEq* neteq) override;
void CreateGraphs(std::vector<float>* send_times_s,
std::vector<float>* arrival_delay_ms,
std::vector<float>* corrected_arrival_delay_ms,
std::vector<absl::optional<float>>* playout_delay_ms,
std::vector<absl::optional<float>>* target_delay_ms) const;
using Delays = std::vector<std::pair<int64_t, float>>;
void CreateGraphs(Delays* arrival_delay_ms,
Delays* corrected_arrival_delay_ms,
Delays* playout_delay_ms,
Delays* target_delay_ms) const;
// Creates a matlab script with file name script_name. When executed in
// Matlab, the script will generate graphs with the same timing information
@ -55,8 +55,8 @@ class NetEqDelayAnalyzer : public test::NetEqPostInsertPacket,
private:
struct TimingData {
explicit TimingData(double at) : arrival_time_ms(at) {}
double arrival_time_ms;
explicit TimingData(int64_t at) : arrival_time_ms(at) {}
int64_t arrival_time_ms;
absl::optional<int64_t> decode_get_audio_count;
absl::optional<int64_t> sync_delay_ms;
absl::optional<int> target_delay_ms;