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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 &full_frames_lost, | 366 &full_frames_lost, |
367 &audio_level, | 367 &audio_level, |
368 &echo_return_loss, | 368 &echo_return_loss, |
369 &echo_return_loss_enhancement); | 369 &echo_return_loss_enhancement); |
370 | 370 |
371 RTCMediaStreamTrackStats::RTCMediaStreamTrackStats( | 371 RTCMediaStreamTrackStats::RTCMediaStreamTrackStats( |
372 const std::string& id, int64_t timestamp_us, const char* kind) | 372 const std::string& id, int64_t timestamp_us, const char* kind) |
373 : RTCMediaStreamTrackStats(std::string(id), timestamp_us, kind) { | 373 : RTCMediaStreamTrackStats(std::string(id), timestamp_us, kind) { |
374 } | 374 } |
375 | 375 |
376 RTCMediaStreamTrackStats::RTCMediaStreamTrackStats( | 376 RTCMediaStreamTrackStats::RTCMediaStreamTrackStats(std::string&& id, |
377 std::string&& id, int64_t timestamp_us, const char* kind) | 377 int64_t timestamp_us, |
| 378 const char* kind) |
378 : RTCStats(std::move(id), timestamp_us), | 379 : RTCStats(std::move(id), timestamp_us), |
379 track_identifier("trackIdentifier"), | 380 track_identifier("trackIdentifier"), |
380 remote_source("remoteSource"), | 381 remote_source("remoteSource"), |
381 ended("ended"), | 382 ended("ended"), |
382 detached("detached"), | 383 detached("detached"), |
383 kind("kind", kind), | 384 kind("kind", kind), |
384 frame_width("frameWidth"), | 385 frame_width("frameWidth"), |
385 frame_height("frameHeight"), | 386 frame_height("frameHeight"), |
386 frames_per_second("framesPerSecond"), | 387 frames_per_second("framesPerSecond"), |
387 frames_sent("framesSent"), | 388 frames_sent("framesSent"), |
388 frames_received("framesReceived"), | 389 frames_received("framesReceived"), |
389 frames_decoded("framesDecoded"), | 390 frames_decoded("framesDecoded"), |
390 frames_dropped("framesDropped"), | 391 frames_dropped("framesDropped"), |
391 frames_corrupted("framesCorrupted"), | 392 frames_corrupted("framesCorrupted"), |
392 partial_frames_lost("partialFramesLost"), | 393 partial_frames_lost("partialFramesLost"), |
393 full_frames_lost("fullFramesLost"), | 394 full_frames_lost("fullFramesLost"), |
394 audio_level("audioLevel"), | 395 audio_level("audioLevel"), |
| 396 total_audio_energy("totalAudioEnergy"), |
| 397 total_samples_duration("totalSamplesDuration"), |
395 echo_return_loss("echoReturnLoss"), | 398 echo_return_loss("echoReturnLoss"), |
396 echo_return_loss_enhancement("echoReturnLossEnhancement") { | 399 echo_return_loss_enhancement("echoReturnLossEnhancement") { |
397 RTC_DCHECK(kind == RTCMediaStreamTrackKind::kAudio || | 400 RTC_DCHECK(kind == RTCMediaStreamTrackKind::kAudio || |
398 kind == RTCMediaStreamTrackKind::kVideo); | 401 kind == RTCMediaStreamTrackKind::kVideo); |
399 } | 402 } |
400 | 403 |
401 RTCMediaStreamTrackStats::RTCMediaStreamTrackStats( | 404 RTCMediaStreamTrackStats::RTCMediaStreamTrackStats( |
402 const RTCMediaStreamTrackStats& other) | 405 const RTCMediaStreamTrackStats& other) |
403 : RTCStats(other.id(), other.timestamp_us()), | 406 : RTCStats(other.id(), other.timestamp_us()), |
404 track_identifier(other.track_identifier), | 407 track_identifier(other.track_identifier), |
405 remote_source(other.remote_source), | 408 remote_source(other.remote_source), |
406 ended(other.ended), | 409 ended(other.ended), |
407 detached(other.detached), | 410 detached(other.detached), |
408 kind(other.kind), | 411 kind(other.kind), |
409 frame_width(other.frame_width), | 412 frame_width(other.frame_width), |
410 frame_height(other.frame_height), | 413 frame_height(other.frame_height), |
411 frames_per_second(other.frames_per_second), | 414 frames_per_second(other.frames_per_second), |
412 frames_sent(other.frames_sent), | 415 frames_sent(other.frames_sent), |
413 frames_received(other.frames_received), | 416 frames_received(other.frames_received), |
414 frames_decoded(other.frames_decoded), | 417 frames_decoded(other.frames_decoded), |
415 frames_dropped(other.frames_dropped), | 418 frames_dropped(other.frames_dropped), |
416 frames_corrupted(other.frames_corrupted), | 419 frames_corrupted(other.frames_corrupted), |
417 partial_frames_lost(other.partial_frames_lost), | 420 partial_frames_lost(other.partial_frames_lost), |
418 full_frames_lost(other.full_frames_lost), | 421 full_frames_lost(other.full_frames_lost), |
419 audio_level(other.audio_level), | 422 audio_level(other.audio_level), |
| 423 total_audio_energy(other.total_audio_energy), |
| 424 total_samples_duration(other.total_samples_duration), |
420 echo_return_loss(other.echo_return_loss), | 425 echo_return_loss(other.echo_return_loss), |
421 echo_return_loss_enhancement(other.echo_return_loss_enhancement) { | 426 echo_return_loss_enhancement(other.echo_return_loss_enhancement) {} |
422 } | |
423 | 427 |
424 RTCMediaStreamTrackStats::~RTCMediaStreamTrackStats() { | 428 RTCMediaStreamTrackStats::~RTCMediaStreamTrackStats() { |
425 } | 429 } |
426 | 430 |
427 WEBRTC_RTCSTATS_IMPL(RTCPeerConnectionStats, RTCStats, "peer-connection", | 431 WEBRTC_RTCSTATS_IMPL(RTCPeerConnectionStats, RTCStats, "peer-connection", |
428 &data_channels_opened, | 432 &data_channels_opened, |
429 &data_channels_closed); | 433 &data_channels_closed); |
430 | 434 |
431 RTCPeerConnectionStats::RTCPeerConnectionStats( | 435 RTCPeerConnectionStats::RTCPeerConnectionStats( |
432 const std::string& id, int64_t timestamp_us) | 436 const std::string& id, int64_t timestamp_us) |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
646 dtls_state(other.dtls_state), | 650 dtls_state(other.dtls_state), |
647 selected_candidate_pair_id(other.selected_candidate_pair_id), | 651 selected_candidate_pair_id(other.selected_candidate_pair_id), |
648 local_certificate_id(other.local_certificate_id), | 652 local_certificate_id(other.local_certificate_id), |
649 remote_certificate_id(other.remote_certificate_id) { | 653 remote_certificate_id(other.remote_certificate_id) { |
650 } | 654 } |
651 | 655 |
652 RTCTransportStats::~RTCTransportStats() { | 656 RTCTransportStats::~RTCTransportStats() { |
653 } | 657 } |
654 | 658 |
655 } // namespace webrtc | 659 } // namespace webrtc |
OLD | NEW |