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

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

Issue 545053002: Add still image capture interface for VideoCaptureDevice. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 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/video/capture/video_capture_device.h" 5 #include "media/video/capture/video_capture_device.h"
6 6
7 #include "base/i18n/timezone.h" 7 #include "base/i18n/timezone.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 9
10 namespace media { 10 namespace media {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 "PW", "SA", "SR", "SV", "TT", "TW", "UM", "US", "VG", "VI", "VE"}; 69 "PW", "SA", "SR", "SV", "TT", "TW", "UM", "US", "VG", "VI", "VE"};
70 const char** countries_using_60Hz_end = 70 const char** countries_using_60Hz_end =
71 countries_using_60Hz + arraysize(countries_using_60Hz); 71 countries_using_60Hz + arraysize(countries_using_60Hz);
72 if (std::find(countries_using_60Hz, countries_using_60Hz_end, 72 if (std::find(countries_using_60Hz, countries_using_60Hz_end,
73 current_country) == countries_using_60Hz_end) { 73 current_country) == countries_using_60Hz_end) {
74 return kPowerLine50Hz; 74 return kPowerLine50Hz;
75 } 75 }
76 return kPowerLine60Hz; 76 return kPowerLine60Hz;
77 } 77 }
78 78
79 void VideoCaptureDevice::InitializeImageCapture(
80 const ImageCaptureFormat& image_format,
81 scoped_ptr<ImageClient> client) {
82 client->OnError("Not supported");
wuchengli 2014/09/09 05:53:21 The client can know if image capture is supported
Owen Lin 2014/09/11 06:17:59 Good point.
83 }
84
79 } // namespace media 85 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698