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

Side by Side Diff: media/capture/video/video_capture_device.cc

Issue 1685713003: Remove V4L2CaptureDelegate{Single,Multi}Plane, VCD::Client::OnIncomingCapturedYuvData() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: perkj@ comments and reverted change to WeakPtr Created 4 years, 10 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 | « media/capture/video/video_capture_device.h ('k') | media/media.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/video/video_capture_device.h" 5 #include "media/capture/video/video_capture_device.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/i18n/timezone.h" 8 #include "base/i18n/timezone.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 #endif 80 #endif
81 81
82 VideoCaptureDevice::Name::~Name() { 82 VideoCaptureDevice::Name::~Name() {
83 } 83 }
84 84
85 #if defined(OS_LINUX) 85 #if defined(OS_LINUX)
86 const char* VideoCaptureDevice::Name::GetCaptureApiTypeString() const { 86 const char* VideoCaptureDevice::Name::GetCaptureApiTypeString() const {
87 switch (capture_api_type()) { 87 switch (capture_api_type()) {
88 case V4L2_SINGLE_PLANE: 88 case V4L2_SINGLE_PLANE:
89 return "V4L2 SPLANE"; 89 return "V4L2 SPLANE";
90 case V4L2_MULTI_PLANE:
91 return "V4L2 MPLANE";
92 default: 90 default:
93 NOTREACHED() << "Unknown Video Capture API type!"; 91 NOTREACHED() << "Unknown Video Capture API type!";
94 return "Unknown API"; 92 return "Unknown API";
95 } 93 }
96 } 94 }
97 #elif defined(OS_WIN) 95 #elif defined(OS_WIN)
98 const char* VideoCaptureDevice::Name::GetCaptureApiTypeString() const { 96 const char* VideoCaptureDevice::Name::GetCaptureApiTypeString() const {
99 switch (capture_api_type()) { 97 switch (capture_api_type()) {
100 case MEDIA_FOUNDATION: 98 case MEDIA_FOUNDATION:
101 return "Media Foundation"; 99 return "Media Foundation";
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 switch (params.power_line_frequency) { 171 switch (params.power_line_frequency) {
174 case media::PowerLineFrequency::FREQUENCY_50HZ: // fall through 172 case media::PowerLineFrequency::FREQUENCY_50HZ: // fall through
175 case media::PowerLineFrequency::FREQUENCY_60HZ: 173 case media::PowerLineFrequency::FREQUENCY_60HZ:
176 return params.power_line_frequency; 174 return params.power_line_frequency;
177 default: 175 default:
178 return GetPowerLineFrequencyForLocation(); 176 return GetPowerLineFrequencyForLocation();
179 } 177 }
180 } 178 }
181 179
182 } // namespace media 180 } // namespace media
OLDNEW
« no previous file with comments | « media/capture/video/video_capture_device.h ('k') | media/media.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698