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

Unified Diff: media/video/capture/mac/video_capture_device_mac.mm

Issue 24079003: Add VideoCaptureDevice::GetDeviceSupportedFormats to interface + implementation for Linux and Fake (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: media/video/capture/mac/video_capture_device_mac.mm
diff --git a/media/video/capture/mac/video_capture_device_mac.mm b/media/video/capture/mac/video_capture_device_mac.mm
index 7614fd3f090cae2e80ff1e595a2cde3c42389c0b..9ba09172af13c6cd99a47225d2daa92f7843a9e6 100644
--- a/media/video/capture/mac/video_capture_device_mac.mm
+++ b/media/video/capture/mac/video_capture_device_mac.mm
@@ -122,8 +122,7 @@ void VideoCaptureDeviceMac::Allocate(
// QTKit can scale captured frame to any size requested, which would lead to
// undesired aspect ratio change. Tries to open the camera with a natively
// supported format and let the client to crop/pad the captured frames.
- GetBestMatchSupportedResolution(&width,
- &height);
+ GetBestMatchSupportedResolution(&width, &height);
observer_ = observer;
NSString* deviceId =
@@ -194,6 +193,12 @@ const VideoCaptureDevice::Name& VideoCaptureDeviceMac::device_name() {
return device_name_;
}
+void VideoCaptureDeviceMac::GetDeviceSupportedFormats(
+ const std::string& device_name,
+ VideoCaptureFormats* capture_formats){
+ NOTIMPLEMENTED();
+}
+
bool VideoCaptureDeviceMac::Init() {
DCHECK_EQ(loop_proxy_, base::MessageLoopProxy::current());
DCHECK_EQ(state_, kNotInitialized);

Powered by Google App Engine
This is Rietveld 408576698