OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2015 Google Inc. | 3 * Copyright 2015 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 webrtc::VideoEncoderConfig GetEncoderConfig() const; | 63 webrtc::VideoEncoderConfig GetEncoderConfig() const; |
64 std::vector<webrtc::VideoStream> GetVideoStreams(); | 64 std::vector<webrtc::VideoStream> GetVideoStreams(); |
65 | 65 |
66 bool IsSending() const; | 66 bool IsSending() const; |
67 bool GetVp8Settings(webrtc::VideoCodecVP8* settings) const; | 67 bool GetVp8Settings(webrtc::VideoCodecVP8* settings) const; |
68 bool GetVp9Settings(webrtc::VideoCodecVP9* settings) const; | 68 bool GetVp9Settings(webrtc::VideoCodecVP9* settings) const; |
69 | 69 |
70 int GetNumberOfSwappedFrames() const; | 70 int GetNumberOfSwappedFrames() const; |
71 int GetLastWidth() const; | 71 int GetLastWidth() const; |
72 int GetLastHeight() const; | 72 int GetLastHeight() const; |
| 73 int64_t GetLastTimestamp() const; |
73 void SetStats(const webrtc::VideoSendStream::Stats& stats); | 74 void SetStats(const webrtc::VideoSendStream::Stats& stats); |
74 | 75 |
75 private: | 76 private: |
76 void IncomingCapturedFrame(const webrtc::VideoFrame& frame) override; | 77 void IncomingCapturedFrame(const webrtc::VideoFrame& frame) override; |
77 webrtc::VideoSendStream::Stats GetStats() override; | 78 webrtc::VideoSendStream::Stats GetStats() override; |
78 | 79 |
79 bool ReconfigureVideoEncoder( | 80 bool ReconfigureVideoEncoder( |
80 const webrtc::VideoEncoderConfig& config) override; | 81 const webrtc::VideoEncoderConfig& config) override; |
81 | 82 |
82 webrtc::VideoCaptureInput* Input() override; | 83 webrtc::VideoCaptureInput* Input() override; |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 std::vector<FakeVideoSendStream*> video_send_streams_; | 175 std::vector<FakeVideoSendStream*> video_send_streams_; |
175 std::vector<FakeVideoReceiveStream*> video_receive_streams_; | 176 std::vector<FakeVideoReceiveStream*> video_receive_streams_; |
176 std::vector<FakeAudioReceiveStream*> audio_receive_streams_; | 177 std::vector<FakeAudioReceiveStream*> audio_receive_streams_; |
177 | 178 |
178 int num_created_send_streams_; | 179 int num_created_send_streams_; |
179 int num_created_receive_streams_; | 180 int num_created_receive_streams_; |
180 }; | 181 }; |
181 | 182 |
182 } // namespace cricket | 183 } // namespace cricket |
183 #endif // TALK_MEDIA_WEBRTC_WEBRTCVIDEOENGINE2_UNITTEST_H_ | 184 #endif // TALK_MEDIA_WEBRTC_WEBRTCVIDEOENGINE2_UNITTEST_H_ |
OLD | NEW |