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

Side by Side Diff: webrtc/media/base/testutils.cc

Issue 2383093002: Delete all use of cricket::VideoFrame and cricket::WebRtcVideoFrame. (Closed)
Patch Set: objc: Add missing include of video_frame_buffer.h. Created 4 years, 1 month 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/media/base/testutils.h ('k') | webrtc/media/base/videoadapter_unittest.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) 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
11 #include "webrtc/media/base/testutils.h" 11 #include "webrtc/media/base/testutils.h"
12 12
13 #include <math.h> 13 #include <math.h>
14 #include <algorithm> 14 #include <algorithm>
15 #include <memory> 15 #include <memory>
16 16
17 #include "webrtc/base/bytebuffer.h" 17 #include "webrtc/base/bytebuffer.h"
18 #include "webrtc/base/fileutils.h" 18 #include "webrtc/base/fileutils.h"
19 #include "webrtc/base/gunit.h" 19 #include "webrtc/base/gunit.h"
20 #include "webrtc/base/pathutils.h" 20 #include "webrtc/base/pathutils.h"
21 #include "webrtc/base/stream.h" 21 #include "webrtc/base/stream.h"
22 #include "webrtc/base/stringutils.h" 22 #include "webrtc/base/stringutils.h"
23 #include "webrtc/base/testutils.h" 23 #include "webrtc/base/testutils.h"
24 #include "webrtc/media/base/rtpdump.h" 24 #include "webrtc/media/base/rtpdump.h"
25 #include "webrtc/media/base/videocapturer.h" 25 #include "webrtc/media/base/videocapturer.h"
26 #include "webrtc/media/base/videoframe.h" 26 #include "webrtc/video_frame.h"
27 27
28 namespace cricket { 28 namespace cricket {
29 29
30 ///////////////////////////////////////////////////////////////////////// 30 /////////////////////////////////////////////////////////////////////////
31 // Implementation of RawRtpPacket 31 // Implementation of RawRtpPacket
32 ///////////////////////////////////////////////////////////////////////// 32 /////////////////////////////////////////////////////////////////////////
33 void RawRtpPacket::WriteToByteBuffer(uint32_t in_ssrc, 33 void RawRtpPacket::WriteToByteBuffer(uint32_t in_ssrc,
34 rtc::ByteBufferWriter* buf) const { 34 rtc::ByteBufferWriter* buf) const {
35 if (!buf) return; 35 if (!buf) return;
36 36
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 223
224 VideoCapturerListener::~VideoCapturerListener() { 224 VideoCapturerListener::~VideoCapturerListener() {
225 capturer_->RemoveSink(this); 225 capturer_->RemoveSink(this);
226 } 226 }
227 227
228 void VideoCapturerListener::OnStateChange(VideoCapturer* capturer, 228 void VideoCapturerListener::OnStateChange(VideoCapturer* capturer,
229 CaptureState result) { 229 CaptureState result) {
230 last_capture_state_ = result; 230 last_capture_state_ = result;
231 } 231 }
232 232
233 void VideoCapturerListener::OnFrame(const VideoFrame& frame) { 233 void VideoCapturerListener::OnFrame(const webrtc::VideoFrame& frame) {
234 ++frame_count_; 234 ++frame_count_;
235 if (1 == frame_count_) { 235 if (1 == frame_count_) {
236 frame_width_ = frame.width(); 236 frame_width_ = frame.width();
237 frame_height_ = frame.height(); 237 frame_height_ = frame.height();
238 } else if (frame_width_ != frame.width() || frame_height_ != frame.height()) { 238 } else if (frame_width_ != frame.width() || frame_height_ != frame.height()) {
239 resolution_changed_ = true; 239 resolution_changed_ = true;
240 } 240 }
241 } 241 }
242 242
243 cricket::StreamParams CreateSimStreamParams( 243 cricket::StreamParams CreateSimStreamParams(
(...skipping 18 matching lines...) Expand all
262 std::vector<uint32_t> fid_ssrcs; 262 std::vector<uint32_t> fid_ssrcs;
263 fid_ssrcs.push_back(ssrcs[i]); 263 fid_ssrcs.push_back(ssrcs[i]);
264 fid_ssrcs.push_back(rtx_ssrcs[i]); 264 fid_ssrcs.push_back(rtx_ssrcs[i]);
265 cricket::SsrcGroup fid_group(cricket::kFidSsrcGroupSemantics, fid_ssrcs); 265 cricket::SsrcGroup fid_group(cricket::kFidSsrcGroupSemantics, fid_ssrcs);
266 sp.ssrc_groups.push_back(fid_group); 266 sp.ssrc_groups.push_back(fid_group);
267 } 267 }
268 return sp; 268 return sp;
269 } 269 }
270 270
271 } // namespace cricket 271 } // namespace cricket
OLDNEW
« no previous file with comments | « webrtc/media/base/testutils.h ('k') | webrtc/media/base/videoadapter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698