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

Side by Side Diff: device/capture/content/video_capture_oracle.cc

Issue 2143903003: [WIP] Move media/capture to device/capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/capture/content/video_capture_oracle.h" 5 #include "device/capture/content/video_capture_oracle.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/format_macros.h" 9 #include "base/format_macros.h"
10 #include "base/numerics/safe_conversions.h" 10 #include "base/numerics/safe_conversions.h"
11 #include "base/strings/stringprintf.h" 11 #include "base/strings/stringprintf.h"
12 12
13 namespace media { 13 namespace media {
14 14
15 namespace { 15 namespace {
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 // Content is not animating, so permit an immediate increase in the capture 548 // Content is not animating, so permit an immediate increase in the capture
549 // area. This allows the system to quickly improve the quality of 549 // area. This allows the system to quickly improve the quality of
550 // non-animating content (frame drops are not much of a concern). 550 // non-animating content (frame drops are not much of a concern).
551 VLOG(2) << "Proposing a " 551 VLOG(2) << "Proposing a "
552 << (100.0 * (increased_area - current_area) / current_area) 552 << (100.0 * (increased_area - current_area) / current_area)
553 << "% increase in capture area for non-animating content. :-)"; 553 << "% increase in capture area for non-animating content. :-)";
554 return increased_area; 554 return increased_area;
555 } 555 }
556 556
557 } // namespace media 557 } // namespace media
OLDNEW
« no previous file with comments | « device/capture/content/video_capture_oracle.h ('k') | device/capture/content/video_capture_oracle_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698