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

Side by Side Diff: webrtc/media/base/fakevideocapturer.h

Issue 2017443003: Implement timestamp translation/filter in VideoCapturer. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Formatting. Created 4 years, 6 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) 2004 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2004 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 fourccs->push_back(cricket::FOURCC_MJPG); 144 fourccs->push_back(cricket::FOURCC_MJPG);
145 return true; 145 return true;
146 } 146 }
147 147
148 void SetRotation(webrtc::VideoRotation rotation) { 148 void SetRotation(webrtc::VideoRotation rotation) {
149 rotation_ = rotation; 149 rotation_ = rotation;
150 } 150 }
151 151
152 webrtc::VideoRotation GetRotation() { return rotation_; } 152 webrtc::VideoRotation GetRotation() { return rotation_; }
153 153
154 // Expose as public, for testing.
155 using VideoCapturer::AdaptFrame;
156 using VideoCapturer::clip_bias_us;
157
154 private: 158 private:
155 bool running_; 159 bool running_;
156 int64_t initial_timestamp_; 160 int64_t initial_timestamp_;
157 int64_t next_timestamp_; 161 int64_t next_timestamp_;
158 const bool is_screencast_; 162 const bool is_screencast_;
159 webrtc::VideoRotation rotation_; 163 webrtc::VideoRotation rotation_;
160 }; 164 };
161 165
162 } // namespace cricket 166 } // namespace cricket
163 167
164 #endif // WEBRTC_MEDIA_BASE_FAKEVIDEOCAPTURER_H_ 168 #endif // WEBRTC_MEDIA_BASE_FAKEVIDEOCAPTURER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698