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