OLD | NEW |
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 Loading... |
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 VideoCaptureFormats* capture_formats) { |
| 496 NOTIMPLEMENTED(); |
| 497 } |
| 498 |
494 // Implements SinkFilterObserver::SinkFilterObserver. | 499 // Implements SinkFilterObserver::SinkFilterObserver. |
495 void VideoCaptureDeviceWin::FrameReceived(const uint8* buffer, | 500 void VideoCaptureDeviceWin::FrameReceived(const uint8* buffer, |
496 int length) { | 501 int length) { |
497 observer_->OnIncomingCapturedFrame(buffer, length, base::Time::Now(), | 502 observer_->OnIncomingCapturedFrame(buffer, length, base::Time::Now(), |
498 0, false, false); | 503 0, false, false); |
499 } | 504 } |
500 | 505 |
501 bool VideoCaptureDeviceWin::CreateCapabilityMap() { | 506 bool VideoCaptureDeviceWin::CreateCapabilityMap() { |
502 DCHECK(CalledOnValidThread()); | 507 DCHECK(CalledOnValidThread()); |
503 ScopedComPtr<IAMStreamConfig> stream_config; | 508 ScopedComPtr<IAMStreamConfig> stream_config; |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
610 return !capabilities_.empty(); | 615 return !capabilities_.empty(); |
611 } | 616 } |
612 | 617 |
613 void VideoCaptureDeviceWin::SetErrorState(const char* reason) { | 618 void VideoCaptureDeviceWin::SetErrorState(const char* reason) { |
614 DCHECK(CalledOnValidThread()); | 619 DCHECK(CalledOnValidThread()); |
615 DVLOG(1) << reason; | 620 DVLOG(1) << reason; |
616 state_ = kError; | 621 state_ = kError; |
617 observer_->OnError(); | 622 observer_->OnError(); |
618 } | 623 } |
619 } // namespace media | 624 } // namespace media |
OLD | NEW |