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/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 | 314 |
315 hr = graph_builder_->AddFilter(sink_filter_, NULL); | 315 hr = graph_builder_->AddFilter(sink_filter_, NULL); |
316 if (FAILED(hr)) { | 316 if (FAILED(hr)) { |
317 DVLOG(2)<< "Failed to add the send filter to the graph."; | 317 DVLOG(2)<< "Failed to add the send filter to the graph."; |
318 return false; | 318 return false; |
319 } | 319 } |
320 | 320 |
321 return CreateCapabilityMap(); | 321 return CreateCapabilityMap(); |
322 } | 322 } |
323 | 323 |
| 324 VideoEncodingCapabilities VideoCaptureDeviceWin::GetEncodingCapabilities() { |
| 325 return VideoEncodingCapabilities(); |
| 326 } |
| 327 |
| 328 void VideoCaptureDeviceWin::TryConfigureEncodedBitstream( |
| 329 const RuntimeVideoEncodingParameters& params) { |
| 330 } |
| 331 |
324 void VideoCaptureDeviceWin::Allocate( | 332 void VideoCaptureDeviceWin::Allocate( |
325 int width, | 333 int width, |
326 int height, | 334 int height, |
327 int frame_rate, | 335 int frame_rate, |
328 VideoCaptureDevice::EventHandler* observer) { | 336 VideoCaptureDevice::EventHandler* observer) { |
329 DCHECK(CalledOnValidThread()); | 337 DCHECK(CalledOnValidThread()); |
330 if (state_ != kIdle) | 338 if (state_ != kIdle) |
331 return; | 339 return; |
332 | 340 |
333 observer_ = observer; | 341 observer_ = observer; |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 } | 599 } |
592 | 600 |
593 void VideoCaptureDeviceWin::SetErrorState(const char* reason) { | 601 void VideoCaptureDeviceWin::SetErrorState(const char* reason) { |
594 DCHECK(CalledOnValidThread()); | 602 DCHECK(CalledOnValidThread()); |
595 DVLOG(1) << reason; | 603 DVLOG(1) << reason; |
596 state_ = kError; | 604 state_ = kError; |
597 observer_->OnError(); | 605 observer_->OnError(); |
598 } | 606 } |
599 | 607 |
600 } // namespace media | 608 } // namespace media |
OLD | NEW |