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

Side by Side Diff: talk/app/webrtc/statstypes.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 | « talk/app/webrtc/statstypes.h ('k') | talk/media/base/mediachannel.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 2014 Google Inc. 3 * Copyright 2014 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 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 case kStatsValueNameNacksSent: 549 case kStatsValueNameNacksSent:
550 return "googNacksSent"; 550 return "googNacksSent";
551 case kStatsValueNamePreemptiveExpandRate: 551 case kStatsValueNamePreemptiveExpandRate:
552 return "googPreemptiveExpandRate"; 552 return "googPreemptiveExpandRate";
553 case kStatsValueNamePlisReceived: 553 case kStatsValueNamePlisReceived:
554 return "googPlisReceived"; 554 return "googPlisReceived";
555 case kStatsValueNamePlisSent: 555 case kStatsValueNamePlisSent:
556 return "googPlisSent"; 556 return "googPlisSent";
557 case kStatsValueNamePreferredJitterBufferMs: 557 case kStatsValueNamePreferredJitterBufferMs:
558 return "googPreferredJitterBufferMs"; 558 return "googPreferredJitterBufferMs";
559 case kStatsValueNameQpReceived:
560 return "googQpReceived";
559 case kStatsValueNameReceiving: 561 case kStatsValueNameReceiving:
560 return "googReadable"; 562 return "googReadable";
561 case kStatsValueNameRemoteAddress: 563 case kStatsValueNameRemoteAddress:
562 return "googRemoteAddress"; 564 return "googRemoteAddress";
563 case kStatsValueNameRemoteCandidateId: 565 case kStatsValueNameRemoteCandidateId:
564 return "remoteCandidateId"; 566 return "remoteCandidateId";
565 case kStatsValueNameRemoteCandidateType: 567 case kStatsValueNameRemoteCandidateType:
566 return "googRemoteCandidateType"; 568 return "googRemoteCandidateType";
567 case kStatsValueNameRemoteCertificateId: 569 case kStatsValueNameRemoteCertificateId:
568 return "remoteCertificateId"; 570 return "remoteCertificateId";
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 // Looks for a report with the given |id|. If one is not found, NULL 775 // Looks for a report with the given |id|. If one is not found, NULL
774 // will be returned. 776 // will be returned.
775 StatsReport* StatsCollection::Find(const StatsReport::Id& id) { 777 StatsReport* StatsCollection::Find(const StatsReport::Id& id) {
776 RTC_DCHECK(thread_checker_.CalledOnValidThread()); 778 RTC_DCHECK(thread_checker_.CalledOnValidThread());
777 Container::iterator it = std::find_if(list_.begin(), list_.end(), 779 Container::iterator it = std::find_if(list_.begin(), list_.end(),
778 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); }); 780 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); });
779 return it == list_.end() ? nullptr : *it; 781 return it == list_.end() ? nullptr : *it;
780 } 782 }
781 783
782 } // namespace webrtc 784 } // namespace webrtc
OLDNEW
« no previous file with comments | « talk/app/webrtc/statstypes.h ('k') | talk/media/base/mediachannel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698