| 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 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 Loading... |
| 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 |
| OLD | NEW |