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

Side by Side Diff: media/video/capture/win/video_capture_device_win.cc

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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/win/video_capture_device_win.h" 5 #include "media/video/capture/win/video_capture_device_win.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <list> 8 #include <list>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 } 484 }
485 485
486 state_ = kIdle; 486 state_ = kIdle;
487 } 487 }
488 488
489 const VideoCaptureDevice::Name& VideoCaptureDeviceWin::device_name() { 489 const VideoCaptureDevice::Name& VideoCaptureDeviceWin::device_name() {
490 DCHECK(CalledOnValidThread()); 490 DCHECK(CalledOnValidThread());
491 return device_name_; 491 return device_name_;
492 } 492 }
493 493
494 void VideoCaptureDeviceWin::GetDeviceSupportedFormats(
495 const std::string& device_name,
496 VideoCaptureFormats* capture_formats) {
497 NOTIMPLEMENTED();
498 }
499
494 // Implements SinkFilterObserver::SinkFilterObserver. 500 // Implements SinkFilterObserver::SinkFilterObserver.
495 void VideoCaptureDeviceWin::FrameReceived(const uint8* buffer, 501 void VideoCaptureDeviceWin::FrameReceived(const uint8* buffer,
496 int length) { 502 int length) {
497 observer_->OnIncomingCapturedFrame(buffer, length, base::Time::Now(), 503 observer_->OnIncomingCapturedFrame(buffer, length, base::Time::Now(),
498 0, false, false); 504 0, false, false);
499 } 505 }
500 506
501 bool VideoCaptureDeviceWin::CreateCapabilityMap() { 507 bool VideoCaptureDeviceWin::CreateCapabilityMap() {
502 DCHECK(CalledOnValidThread()); 508 DCHECK(CalledOnValidThread());
503 ScopedComPtr<IAMStreamConfig> stream_config; 509 ScopedComPtr<IAMStreamConfig> stream_config;
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 return !capabilities_.empty(); 616 return !capabilities_.empty();
611 } 617 }
612 618
613 void VideoCaptureDeviceWin::SetErrorState(const char* reason) { 619 void VideoCaptureDeviceWin::SetErrorState(const char* reason) {
614 DCHECK(CalledOnValidThread()); 620 DCHECK(CalledOnValidThread());
615 DVLOG(1) << reason; 621 DVLOG(1) << reason;
616 state_ = kError; 622 state_ = kError;
617 observer_->OnError(); 623 observer_->OnError();
618 } 624 }
619 } // namespace media 625 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698