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

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

Issue 2517173004: Move VideoFrame and related declarations to webrtc/api/video. (Closed)
Patch Set: 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
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" 17 #include "libyuv/scale_argb.h"
18 #include "webrtc/api/video/video_frame.h"
18 #include "webrtc/base/common.h" 19 #include "webrtc/base/common.h"
19 #include "webrtc/base/logging.h" 20 #include "webrtc/base/logging.h"
20 #include "webrtc/base/systeminfo.h" 21 #include "webrtc/base/systeminfo.h"
21 #include "webrtc/video_frame.h" 22 #include "webrtc/common_video/include/video_frame_buffer.h"
22 23
23 namespace cricket { 24 namespace cricket {
24 25
25 namespace { 26 namespace {
26 27
27 static const int64_t kMaxDistance = ~(static_cast<int64_t>(1) << 63); 28 static const int64_t kMaxDistance = ~(static_cast<int64_t>(1) << 63);
28 #ifdef WEBRTC_LINUX 29 #ifdef WEBRTC_LINUX
29 static const int kYU12Penalty = 16; // Needs to be higher than MJPG index. 30 static const int kYU12Penalty = 16; // Needs to be higher than MJPG index.
30 #endif 31 #endif
31 32
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 void VideoCapturer::UpdateInputSize(int width, int height) { 366 void VideoCapturer::UpdateInputSize(int width, int height) {
366 // Update stats protected from fetches from different thread. 367 // Update stats protected from fetches from different thread.
367 rtc::CritScope cs(&frame_stats_crit_); 368 rtc::CritScope cs(&frame_stats_crit_);
368 369
369 input_size_valid_ = true; 370 input_size_valid_ = true;
370 input_width_ = width; 371 input_width_ = width;
371 input_height_ = height; 372 input_height_ = height;
372 } 373 }
373 374
374 } // namespace cricket 375 } // namespace cricket
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698