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

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

Issue 1885443002: Rename some cricket::VideoFrame methods, to align with webrtc::VideoFrame. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « webrtc/api/objc/RTCVideoFrame.mm ('k') | webrtc/media/base/videobroadcaster.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 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 21 matching lines...) Expand all
32 32
33 virtual void OnFrame(const VideoFrame& frame) { 33 virtual void OnFrame(const VideoFrame& frame) {
34 rtc::CritScope cs(&crit_); 34 rtc::CritScope cs(&crit_);
35 // TODO(zhurunz) Check with VP8 team to see if we can remove this 35 // TODO(zhurunz) Check with VP8 team to see if we can remove this
36 // tolerance on Y values. 36 // tolerance on Y values.
37 black_frame_ = CheckFrameColorYuv(6, 48, 128, 128, 128, 128, &frame); 37 black_frame_ = CheckFrameColorYuv(6, 48, 128, 128, 128, 128, &frame);
38 // Treat unexpected frame size as error. 38 // Treat unexpected frame size as error.
39 ++num_rendered_frames_; 39 ++num_rendered_frames_;
40 width_ = frame.width(); 40 width_ = frame.width();
41 height_ = frame.height(); 41 height_ = frame.height();
42 rotation_ = frame.GetVideoRotation(); 42 rotation_ = frame.rotation();
43 timestamp_ = frame.GetTimeStamp(); 43 timestamp_ = frame.GetTimeStamp();
44 SignalRenderFrame(&frame); 44 SignalRenderFrame(&frame);
45 } 45 }
46 46
47 int errors() const { return errors_; } 47 int errors() const { return errors_; }
48 int width() const { 48 int width() const {
49 rtc::CritScope cs(&crit_); 49 rtc::CritScope cs(&crit_);
50 return width_; 50 return width_;
51 } 51 }
52 int height() const { 52 int height() const {
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 webrtc::VideoRotation rotation_; 132 webrtc::VideoRotation rotation_;
133 int64_t timestamp_; 133 int64_t timestamp_;
134 int num_rendered_frames_; 134 int num_rendered_frames_;
135 bool black_frame_; 135 bool black_frame_;
136 rtc::CriticalSection crit_; 136 rtc::CriticalSection crit_;
137 }; 137 };
138 138
139 } // namespace cricket 139 } // namespace cricket
140 140
141 #endif // WEBRTC_MEDIA_BASE_FAKEVIDEORENDERER_H_ 141 #endif // WEBRTC_MEDIA_BASE_FAKEVIDEORENDERER_H_
OLDNEW
« no previous file with comments | « webrtc/api/objc/RTCVideoFrame.mm ('k') | webrtc/media/base/videobroadcaster.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698