Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Side by Side Diff: webrtc/test/frame_generator_capturer.h

Issue 1247293002: Add support for transport wide sequence numbers (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase, again Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 #ifndef WEBRTC_VIDEO_ENGINE_TEST_COMMON_FRAME_GENERATOR_CAPTURER_H_ 10 #ifndef WEBRTC_VIDEO_ENGINE_TEST_COMMON_FRAME_GENERATOR_CAPTURER_H_
(...skipping 27 matching lines...) Expand all
38 static FrameGeneratorCapturer* CreateFromYuvFile(VideoCaptureInput* input, 38 static FrameGeneratorCapturer* CreateFromYuvFile(VideoCaptureInput* input,
39 const std::string& file_name, 39 const std::string& file_name,
40 size_t width, 40 size_t width,
41 size_t height, 41 size_t height,
42 int target_fps, 42 int target_fps,
43 Clock* clock); 43 Clock* clock);
44 virtual ~FrameGeneratorCapturer(); 44 virtual ~FrameGeneratorCapturer();
45 45
46 void Start() override; 46 void Start() override;
47 void Stop() override; 47 void Stop() override;
48 void ForceFrame();
48 49
49 int64_t first_frame_capture_time() const { return first_frame_capture_time_; } 50 int64_t first_frame_capture_time() const { return first_frame_capture_time_; }
50 51
51 FrameGeneratorCapturer(Clock* clock, 52 FrameGeneratorCapturer(Clock* clock,
52 VideoCaptureInput* input, 53 VideoCaptureInput* input,
53 FrameGenerator* frame_generator, 54 FrameGenerator* frame_generator,
54 int target_fps); 55 int target_fps);
55 bool Init(); 56 bool Init();
56 57
57 private: 58 private:
58 void InsertFrame(); 59 void InsertFrame();
59 static bool Run(void* obj); 60 static bool Run(void* obj);
60 61
61 Clock* const clock_; 62 Clock* const clock_;
62 bool sending_; 63 bool sending_;
63 64
64 rtc::scoped_ptr<EventTimerWrapper> tick_; 65 rtc::scoped_ptr<EventTimerWrapper> tick_;
65 rtc::CriticalSection lock_; 66 rtc::CriticalSection lock_;
66 rtc::scoped_ptr<ThreadWrapper> thread_; 67 rtc::scoped_ptr<ThreadWrapper> thread_;
67 rtc::scoped_ptr<FrameGenerator> frame_generator_; 68 rtc::scoped_ptr<FrameGenerator> frame_generator_;
68 69
69 int target_fps_; 70 int target_fps_;
70 71
71 int64_t first_frame_capture_time_; 72 int64_t first_frame_capture_time_;
72 }; 73 };
73 } // test 74 } // test
74 } // webrtc 75 } // webrtc
75 76
76 #endif // WEBRTC_VIDEO_ENGINE_TEST_COMMON_FRAME_GENERATOR_CAPTURER_H_ 77 #endif // WEBRTC_VIDEO_ENGINE_TEST_COMMON_FRAME_GENERATOR_CAPTURER_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_sender_unittest.cc ('k') | webrtc/test/frame_generator_capturer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698