OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 #include <stdio.h> | 10 #include <stdio.h> |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 namespace webrtc { | 37 namespace webrtc { |
38 | 38 |
39 static const int kSendStatsPollingIntervalMs = 1000; | 39 static const int kSendStatsPollingIntervalMs = 1000; |
40 static const int kPayloadTypeH264 = 122; | 40 static const int kPayloadTypeH264 = 122; |
41 static const int kPayloadTypeVP8 = 123; | 41 static const int kPayloadTypeVP8 = 123; |
42 static const int kPayloadTypeVP9 = 124; | 42 static const int kPayloadTypeVP9 = 124; |
43 | 43 |
44 class VideoAnalyzer : public PacketReceiver, | 44 class VideoAnalyzer : public PacketReceiver, |
45 public Transport, | 45 public Transport, |
46 public VideoRenderer, | 46 public rtc::VideoSinkInterface<VideoFrame>, |
47 public VideoCaptureInput, | 47 public VideoCaptureInput, |
48 public EncodedFrameObserver { | 48 public EncodedFrameObserver { |
49 public: | 49 public: |
50 VideoAnalyzer(test::LayerFilteringTransport* transport, | 50 VideoAnalyzer(test::LayerFilteringTransport* transport, |
51 const std::string& test_label, | 51 const std::string& test_label, |
52 double avg_psnr_threshold, | 52 double avg_psnr_threshold, |
53 double avg_ssim_threshold, | 53 double avg_ssim_threshold, |
54 int duration_frames, | 54 int duration_frames, |
55 FILE* graph_data_output_file, | 55 FILE* graph_data_output_file, |
56 const std::string& graph_title, | 56 const std::string& graph_title, |
(...skipping 1041 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1098 video_send_stream_->Stop(); | 1098 video_send_stream_->Stop(); |
1099 receive_stream->Stop(); | 1099 receive_stream->Stop(); |
1100 | 1100 |
1101 call->DestroyVideoReceiveStream(receive_stream); | 1101 call->DestroyVideoReceiveStream(receive_stream); |
1102 call->DestroyVideoSendStream(video_send_stream_); | 1102 call->DestroyVideoSendStream(video_send_stream_); |
1103 | 1103 |
1104 transport.StopSending(); | 1104 transport.StopSending(); |
1105 } | 1105 } |
1106 | 1106 |
1107 } // namespace webrtc | 1107 } // namespace webrtc |
OLD | NEW |