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

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

Issue 2509123003: Reland of Split out target rtc_media_base from rtc_media (Closed)
Patch Set: Remove dependency to libyuv Created 4 years 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/codec.cc ('k') | no next file » | 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) 2010 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2010 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 // Implementation file of class VideoCapturer. 11 // Implementation file of class VideoCapturer.
12 12
13 #include "webrtc/media/base/videocapturer.h" 13 #include "webrtc/media/base/videocapturer.h"
14 14
15 #include <algorithm> 15 #include <algorithm>
16 16
17 #include "libyuv/scale_argb.h"
18 #include "webrtc/base/common.h" 17 #include "webrtc/base/common.h"
19 #include "webrtc/base/logging.h" 18 #include "webrtc/base/logging.h"
20 #include "webrtc/base/systeminfo.h" 19 #include "webrtc/base/systeminfo.h"
21 #include "webrtc/video_frame.h" 20 #include "webrtc/video_frame.h"
22 21
23 namespace cricket { 22 namespace cricket {
24 23
25 namespace { 24 namespace {
26 25
27 static const int64_t kMaxDistance = ~(static_cast<int64_t>(1) << 63); 26 static const int64_t kMaxDistance = ~(static_cast<int64_t>(1) << 63);
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 void VideoCapturer::UpdateInputSize(int width, int height) { 364 void VideoCapturer::UpdateInputSize(int width, int height) {
366 // Update stats protected from fetches from different thread. 365 // Update stats protected from fetches from different thread.
367 rtc::CritScope cs(&frame_stats_crit_); 366 rtc::CritScope cs(&frame_stats_crit_);
368 367
369 input_size_valid_ = true; 368 input_size_valid_ = true;
370 input_width_ = width; 369 input_width_ = width;
371 input_height_ = height; 370 input_height_ = height;
372 } 371 }
373 372
374 } // namespace cricket 373 } // namespace cricket
OLDNEW
« no previous file with comments | « webrtc/media/base/codec.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698