OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 &ssrc, | 438 &ssrc, |
439 &associate_stats_id, | 439 &associate_stats_id, |
440 &is_remote, | 440 &is_remote, |
441 &media_type, | 441 &media_type, |
442 &media_track_id, | 442 &media_track_id, |
443 &transport_id, | 443 &transport_id, |
444 &codec_id, | 444 &codec_id, |
445 &fir_count, | 445 &fir_count, |
446 &pli_count, | 446 &pli_count, |
447 &nack_count, | 447 &nack_count, |
448 &sli_count); | 448 &sli_count, |
| 449 &qp_sum); |
449 | 450 |
450 RTCRTPStreamStats::RTCRTPStreamStats( | 451 RTCRTPStreamStats::RTCRTPStreamStats( |
451 const std::string& id, int64_t timestamp_us) | 452 const std::string& id, int64_t timestamp_us) |
452 : RTCRTPStreamStats(std::string(id), timestamp_us) { | 453 : RTCRTPStreamStats(std::string(id), timestamp_us) { |
453 } | 454 } |
454 | 455 |
455 RTCRTPStreamStats::RTCRTPStreamStats( | 456 RTCRTPStreamStats::RTCRTPStreamStats( |
456 std::string&& id, int64_t timestamp_us) | 457 std::string&& id, int64_t timestamp_us) |
457 : RTCStats(std::move(id), timestamp_us), | 458 : RTCStats(std::move(id), timestamp_us), |
458 ssrc("ssrc"), | 459 ssrc("ssrc"), |
459 associate_stats_id("associateStatsId"), | 460 associate_stats_id("associateStatsId"), |
460 is_remote("isRemote", false), | 461 is_remote("isRemote", false), |
461 media_type("mediaType"), | 462 media_type("mediaType"), |
462 media_track_id("mediaTrackId"), | 463 media_track_id("mediaTrackId"), |
463 transport_id("transportId"), | 464 transport_id("transportId"), |
464 codec_id("codecId"), | 465 codec_id("codecId"), |
465 fir_count("firCount"), | 466 fir_count("firCount"), |
466 pli_count("pliCount"), | 467 pli_count("pliCount"), |
467 nack_count("nackCount"), | 468 nack_count("nackCount"), |
468 sli_count("sliCount") { | 469 sli_count("sliCount"), |
| 470 qp_sum("qpSum") { |
469 } | 471 } |
470 | 472 |
471 RTCRTPStreamStats::RTCRTPStreamStats( | 473 RTCRTPStreamStats::RTCRTPStreamStats( |
472 const RTCRTPStreamStats& other) | 474 const RTCRTPStreamStats& other) |
473 : RTCStats(other.id(), other.timestamp_us()), | 475 : RTCStats(other.id(), other.timestamp_us()), |
474 ssrc(other.ssrc), | 476 ssrc(other.ssrc), |
475 associate_stats_id(other.associate_stats_id), | 477 associate_stats_id(other.associate_stats_id), |
476 is_remote(other.is_remote), | 478 is_remote(other.is_remote), |
477 media_type(other.media_type), | 479 media_type(other.media_type), |
478 media_track_id(other.media_track_id), | 480 media_track_id(other.media_track_id), |
479 transport_id(other.transport_id), | 481 transport_id(other.transport_id), |
480 codec_id(other.codec_id), | 482 codec_id(other.codec_id), |
481 fir_count(other.fir_count), | 483 fir_count(other.fir_count), |
482 pli_count(other.pli_count), | 484 pli_count(other.pli_count), |
483 nack_count(other.nack_count), | 485 nack_count(other.nack_count), |
484 sli_count(other.sli_count) { | 486 sli_count(other.sli_count), |
| 487 qp_sum(other.qp_sum) { |
485 } | 488 } |
486 | 489 |
487 RTCRTPStreamStats::~RTCRTPStreamStats() { | 490 RTCRTPStreamStats::~RTCRTPStreamStats() { |
488 } | 491 } |
489 | 492 |
490 WEBRTC_RTCSTATS_IMPL( | 493 WEBRTC_RTCSTATS_IMPL( |
491 RTCInboundRTPStreamStats, RTCRTPStreamStats, "inbound-rtp", | 494 RTCInboundRTPStreamStats, RTCRTPStreamStats, "inbound-rtp", |
492 &packets_received, | 495 &packets_received, |
493 &bytes_received, | 496 &bytes_received, |
494 &packets_lost, | 497 &packets_lost, |
495 &jitter, | 498 &jitter, |
496 &fraction_lost, | 499 &fraction_lost, |
497 &packets_discarded, | 500 &packets_discarded, |
498 &packets_repaired, | 501 &packets_repaired, |
499 &burst_packets_lost, | 502 &burst_packets_lost, |
500 &burst_packets_discarded, | 503 &burst_packets_discarded, |
501 &burst_loss_count, | 504 &burst_loss_count, |
502 &burst_discard_count, | 505 &burst_discard_count, |
503 &burst_loss_rate, | 506 &burst_loss_rate, |
504 &burst_discard_rate, | 507 &burst_discard_rate, |
505 &gap_loss_rate, | 508 &gap_loss_rate, |
506 &gap_discard_rate); | 509 &gap_discard_rate, |
| 510 &frames_decoded); |
507 | 511 |
508 RTCInboundRTPStreamStats::RTCInboundRTPStreamStats( | 512 RTCInboundRTPStreamStats::RTCInboundRTPStreamStats( |
509 const std::string& id, int64_t timestamp_us) | 513 const std::string& id, int64_t timestamp_us) |
510 : RTCInboundRTPStreamStats(std::string(id), timestamp_us) { | 514 : RTCInboundRTPStreamStats(std::string(id), timestamp_us) { |
511 } | 515 } |
512 | 516 |
513 RTCInboundRTPStreamStats::RTCInboundRTPStreamStats( | 517 RTCInboundRTPStreamStats::RTCInboundRTPStreamStats( |
514 std::string&& id, int64_t timestamp_us) | 518 std::string&& id, int64_t timestamp_us) |
515 : RTCRTPStreamStats(std::move(id), timestamp_us), | 519 : RTCRTPStreamStats(std::move(id), timestamp_us), |
516 packets_received("packetsReceived"), | 520 packets_received("packetsReceived"), |
517 bytes_received("bytesReceived"), | 521 bytes_received("bytesReceived"), |
518 packets_lost("packetsLost"), | 522 packets_lost("packetsLost"), |
519 jitter("jitter"), | 523 jitter("jitter"), |
520 fraction_lost("fractionLost"), | 524 fraction_lost("fractionLost"), |
521 packets_discarded("packetsDiscarded"), | 525 packets_discarded("packetsDiscarded"), |
522 packets_repaired("packetsRepaired"), | 526 packets_repaired("packetsRepaired"), |
523 burst_packets_lost("burstPacketsLost"), | 527 burst_packets_lost("burstPacketsLost"), |
524 burst_packets_discarded("burstPacketsDiscarded"), | 528 burst_packets_discarded("burstPacketsDiscarded"), |
525 burst_loss_count("burstLossCount"), | 529 burst_loss_count("burstLossCount"), |
526 burst_discard_count("burstDiscardCount"), | 530 burst_discard_count("burstDiscardCount"), |
527 burst_loss_rate("burstLossRate"), | 531 burst_loss_rate("burstLossRate"), |
528 burst_discard_rate("burstDiscardRate"), | 532 burst_discard_rate("burstDiscardRate"), |
529 gap_loss_rate("gapLossRate"), | 533 gap_loss_rate("gapLossRate"), |
530 gap_discard_rate("gapDiscardRate") { | 534 gap_discard_rate("gapDiscardRate"), |
| 535 frames_decoded("framesDecoded") { |
531 } | 536 } |
532 | 537 |
533 RTCInboundRTPStreamStats::RTCInboundRTPStreamStats( | 538 RTCInboundRTPStreamStats::RTCInboundRTPStreamStats( |
534 const RTCInboundRTPStreamStats& other) | 539 const RTCInboundRTPStreamStats& other) |
535 : RTCRTPStreamStats(other), | 540 : RTCRTPStreamStats(other), |
536 packets_received(other.packets_received), | 541 packets_received(other.packets_received), |
537 bytes_received(other.bytes_received), | 542 bytes_received(other.bytes_received), |
538 packets_lost(other.packets_lost), | 543 packets_lost(other.packets_lost), |
539 jitter(other.jitter), | 544 jitter(other.jitter), |
540 fraction_lost(other.fraction_lost), | 545 fraction_lost(other.fraction_lost), |
541 packets_discarded(other.packets_discarded), | 546 packets_discarded(other.packets_discarded), |
542 packets_repaired(other.packets_repaired), | 547 packets_repaired(other.packets_repaired), |
543 burst_packets_lost(other.burst_packets_lost), | 548 burst_packets_lost(other.burst_packets_lost), |
544 burst_packets_discarded(other.burst_packets_discarded), | 549 burst_packets_discarded(other.burst_packets_discarded), |
545 burst_loss_count(other.burst_loss_count), | 550 burst_loss_count(other.burst_loss_count), |
546 burst_discard_count(other.burst_discard_count), | 551 burst_discard_count(other.burst_discard_count), |
547 burst_loss_rate(other.burst_loss_rate), | 552 burst_loss_rate(other.burst_loss_rate), |
548 burst_discard_rate(other.burst_discard_rate), | 553 burst_discard_rate(other.burst_discard_rate), |
549 gap_loss_rate(other.gap_loss_rate), | 554 gap_loss_rate(other.gap_loss_rate), |
550 gap_discard_rate(other.gap_discard_rate) { | 555 gap_discard_rate(other.gap_discard_rate), |
| 556 frames_decoded(other.frames_decoded) { |
551 } | 557 } |
552 | 558 |
553 RTCInboundRTPStreamStats::~RTCInboundRTPStreamStats() { | 559 RTCInboundRTPStreamStats::~RTCInboundRTPStreamStats() { |
554 } | 560 } |
555 | 561 |
556 WEBRTC_RTCSTATS_IMPL( | 562 WEBRTC_RTCSTATS_IMPL( |
557 RTCOutboundRTPStreamStats, RTCRTPStreamStats, "outbound-rtp", | 563 RTCOutboundRTPStreamStats, RTCRTPStreamStats, "outbound-rtp", |
558 &packets_sent, | 564 &packets_sent, |
559 &bytes_sent, | 565 &bytes_sent, |
560 &target_bitrate, | 566 &target_bitrate, |
561 &round_trip_time); | 567 &round_trip_time, |
| 568 &frames_encoded); |
562 | 569 |
563 RTCOutboundRTPStreamStats::RTCOutboundRTPStreamStats( | 570 RTCOutboundRTPStreamStats::RTCOutboundRTPStreamStats( |
564 const std::string& id, int64_t timestamp_us) | 571 const std::string& id, int64_t timestamp_us) |
565 : RTCOutboundRTPStreamStats(std::string(id), timestamp_us) { | 572 : RTCOutboundRTPStreamStats(std::string(id), timestamp_us) { |
566 } | 573 } |
567 | 574 |
568 RTCOutboundRTPStreamStats::RTCOutboundRTPStreamStats( | 575 RTCOutboundRTPStreamStats::RTCOutboundRTPStreamStats( |
569 std::string&& id, int64_t timestamp_us) | 576 std::string&& id, int64_t timestamp_us) |
570 : RTCRTPStreamStats(std::move(id), timestamp_us), | 577 : RTCRTPStreamStats(std::move(id), timestamp_us), |
571 packets_sent("packetsSent"), | 578 packets_sent("packetsSent"), |
572 bytes_sent("bytesSent"), | 579 bytes_sent("bytesSent"), |
573 target_bitrate("targetBitrate"), | 580 target_bitrate("targetBitrate"), |
574 round_trip_time("roundTripTime") { | 581 round_trip_time("roundTripTime"), |
| 582 frames_encoded("framesEncoded") { |
575 } | 583 } |
576 | 584 |
577 RTCOutboundRTPStreamStats::RTCOutboundRTPStreamStats( | 585 RTCOutboundRTPStreamStats::RTCOutboundRTPStreamStats( |
578 const RTCOutboundRTPStreamStats& other) | 586 const RTCOutboundRTPStreamStats& other) |
579 : RTCRTPStreamStats(other), | 587 : RTCRTPStreamStats(other), |
580 packets_sent(other.packets_sent), | 588 packets_sent(other.packets_sent), |
581 bytes_sent(other.bytes_sent), | 589 bytes_sent(other.bytes_sent), |
582 target_bitrate(other.target_bitrate), | 590 target_bitrate(other.target_bitrate), |
583 round_trip_time(other.round_trip_time) { | 591 round_trip_time(other.round_trip_time), |
| 592 frames_encoded(other.frames_encoded) { |
584 } | 593 } |
585 | 594 |
586 RTCOutboundRTPStreamStats::~RTCOutboundRTPStreamStats() { | 595 RTCOutboundRTPStreamStats::~RTCOutboundRTPStreamStats() { |
587 } | 596 } |
588 | 597 |
589 WEBRTC_RTCSTATS_IMPL(RTCTransportStats, RTCStats, "transport", | 598 WEBRTC_RTCSTATS_IMPL(RTCTransportStats, RTCStats, "transport", |
590 &bytes_sent, | 599 &bytes_sent, |
591 &bytes_received, | 600 &bytes_received, |
592 &rtcp_transport_stats_id, | 601 &rtcp_transport_stats_id, |
593 &active_connection, | 602 &active_connection, |
(...skipping 27 matching lines...) Expand all Loading... |
621 active_connection(other.active_connection), | 630 active_connection(other.active_connection), |
622 selected_candidate_pair_id(other.selected_candidate_pair_id), | 631 selected_candidate_pair_id(other.selected_candidate_pair_id), |
623 local_certificate_id(other.local_certificate_id), | 632 local_certificate_id(other.local_certificate_id), |
624 remote_certificate_id(other.remote_certificate_id) { | 633 remote_certificate_id(other.remote_certificate_id) { |
625 } | 634 } |
626 | 635 |
627 RTCTransportStats::~RTCTransportStats() { | 636 RTCTransportStats::~RTCTransportStats() { |
628 } | 637 } |
629 | 638 |
630 } // namespace webrtc | 639 } // namespace webrtc |
OLD | NEW |