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

Side by Side Diff: talk/app/webrtc/statscollector.cc

Issue 1420963005: Add QP stats for received video streams to StatsReport. Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: add unit test Created 5 years 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
« no previous file with comments | « no previous file | talk/app/webrtc/statstypes.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 { StatsReport::kStatsValueNameFrameRateReceived, info.framerate_rcvd }, 212 { StatsReport::kStatsValueNameFrameRateReceived, info.framerate_rcvd },
213 { StatsReport::kStatsValueNameFrameWidthReceived, info.frame_width }, 213 { StatsReport::kStatsValueNameFrameWidthReceived, info.frame_width },
214 { StatsReport::kStatsValueNameJitterBufferMs, info.jitter_buffer_ms }, 214 { StatsReport::kStatsValueNameJitterBufferMs, info.jitter_buffer_ms },
215 { StatsReport::kStatsValueNameMaxDecodeMs, info.max_decode_ms }, 215 { StatsReport::kStatsValueNameMaxDecodeMs, info.max_decode_ms },
216 { StatsReport::kStatsValueNameMinPlayoutDelayMs, 216 { StatsReport::kStatsValueNameMinPlayoutDelayMs,
217 info.min_playout_delay_ms }, 217 info.min_playout_delay_ms },
218 { StatsReport::kStatsValueNameNacksSent, info.nacks_sent }, 218 { StatsReport::kStatsValueNameNacksSent, info.nacks_sent },
219 { StatsReport::kStatsValueNamePacketsLost, info.packets_lost }, 219 { StatsReport::kStatsValueNamePacketsLost, info.packets_lost },
220 { StatsReport::kStatsValueNamePacketsReceived, info.packets_rcvd }, 220 { StatsReport::kStatsValueNamePacketsReceived, info.packets_rcvd },
221 { StatsReport::kStatsValueNamePlisSent, info.plis_sent }, 221 { StatsReport::kStatsValueNamePlisSent, info.plis_sent },
222 { StatsReport::kStatsValueNameQpReceived, info.qp },
222 { StatsReport::kStatsValueNameRenderDelayMs, info.render_delay_ms }, 223 { StatsReport::kStatsValueNameRenderDelayMs, info.render_delay_ms },
223 { StatsReport::kStatsValueNameTargetDelayMs, info.target_delay_ms }, 224 { StatsReport::kStatsValueNameTargetDelayMs, info.target_delay_ms },
224 }; 225 };
225 226
226 for (const auto& i : ints) 227 for (const auto& i : ints)
227 report->AddInt(i.name, i.value); 228 report->AddInt(i.name, i.value);
228 } 229 }
229 230
230 void ExtractStats(const cricket::VideoSenderInfo& info, StatsReport* report) { 231 void ExtractStats(const cricket::VideoSenderInfo& info, StatsReport* report) {
231 ExtractCommonSendProperties(info, report); 232 ExtractCommonSendProperties(info, report);
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 StatsReport* report = entry.second; 937 StatsReport* report = entry.second;
937 report->set_timestamp(stats_gathering_started_); 938 report->set_timestamp(stats_gathering_started_);
938 } 939 }
939 } 940 }
940 941
941 void StatsCollector::ClearUpdateStatsCacheForTest() { 942 void StatsCollector::ClearUpdateStatsCacheForTest() {
942 stats_gathering_started_ = 0; 943 stats_gathering_started_ = 0;
943 } 944 }
944 945
945 } // namespace webrtc 946 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | talk/app/webrtc/statstypes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698