Now run EndToEndTest with the WebRTC-NewVideoJitterBuffer experiment.

In this CL:
 - EndToEndTests is now parameterized.
 - Added VP8 non-rotated unittest.
 - CanReceiveUlpfec/CanReceiveFlexFec now use multisets for timestamps.
 - pre_decode_image_callback_ is now called before decoding a frame
   with the new video jitter buffer.
 - Set video rotation when FrameObjects are created.
 - Calculate KeyFramesReceivedInPermille in new video jitter buffer.

BUG=webrtc:5514

Review-Url: https://codereview.webrtc.org/2522493002
Cr-Commit-Position: refs/heads/master@{#15274}
This commit is contained in:
philipel
2016-11-28 08:49:07 -08:00
committed by Commit bot
parent d1aaaaa125
commit 266f0a44eb
7 changed files with 223 additions and 104 deletions

View File

@ -41,6 +41,8 @@ class FrameBuffer {
VCMJitterEstimator* jitter_estimator,
VCMTiming* timing);
virtual ~FrameBuffer();
// Insert a frame into the frame buffer. Returns the picture id
// of the last continuous frame or -1 if there is no continuous frame.
int InsertFrame(std::unique_ptr<FrameObject> frame);
@ -137,6 +139,8 @@ class FrameBuffer {
FrameMap::iterator info)
EXCLUSIVE_LOCKS_REQUIRED(crit_);
void UpdateHistograms() const;
FrameMap frames_ GUARDED_BY(crit_);
rtc::CriticalSection crit_;
@ -151,6 +155,8 @@ class FrameBuffer {
int num_frames_buffered_ GUARDED_BY(crit_);
bool stopped_ GUARDED_BY(crit_);
VCMVideoProtection protection_mode_ GUARDED_BY(crit_);
int num_total_frames_ GUARDED_BY(crit_);
int num_key_frames_ GUARDED_BY(crit_);
RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(FrameBuffer);
};