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

Side by Side Diff: media/video/capture/win/video_capture_device_mf_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: Removed parameter device_name from GetDeviceSupportedFormats. Added explanation to VCD interface. 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_mf_win.h" 5 #include "media/video/capture/win/video_capture_device_mf_win.h"
6 6
7 #include <mfapi.h> 7 #include <mfapi.h>
8 #include <mferror.h> 8 #include <mferror.h>
9 9
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 433
434 base::AutoLock lock(lock_); 434 base::AutoLock lock(lock_);
435 observer_ = NULL; 435 observer_ = NULL;
436 } 436 }
437 437
438 const VideoCaptureDevice::Name& VideoCaptureDeviceMFWin::device_name() { 438 const VideoCaptureDevice::Name& VideoCaptureDeviceMFWin::device_name() {
439 DCHECK(CalledOnValidThread()); 439 DCHECK(CalledOnValidThread());
440 return name_; 440 return name_;
441 } 441 }
442 442
443 void VideoCaptureDeviceMFWin::GetDeviceSupportedFormats(
444 VideoCaptureFormats* capture_formats) {
445 NOTIMPLEMENTED();
446 }
447
443 void VideoCaptureDeviceMFWin::OnIncomingCapturedFrame( 448 void VideoCaptureDeviceMFWin::OnIncomingCapturedFrame(
444 const uint8* data, 449 const uint8* data,
445 int length, 450 int length,
446 const base::Time& time_stamp, 451 const base::Time& time_stamp,
447 int rotation, 452 int rotation,
448 bool flip_vert, 453 bool flip_vert,
449 bool flip_horiz) { 454 bool flip_horiz) {
450 base::AutoLock lock(lock_); 455 base::AutoLock lock(lock_);
451 if (data && observer_) 456 if (data && observer_)
452 observer_->OnIncomingCapturedFrame(data, length, time_stamp, 457 observer_->OnIncomingCapturedFrame(data, length, time_stamp,
(...skipping 13 matching lines...) Expand all
466 } 471 }
467 } 472 }
468 473
469 void VideoCaptureDeviceMFWin::OnError(HRESULT hr) { 474 void VideoCaptureDeviceMFWin::OnError(HRESULT hr) {
470 DLOG(ERROR) << "VideoCaptureDeviceMFWin: " << std::hex << hr; 475 DLOG(ERROR) << "VideoCaptureDeviceMFWin: " << std::hex << hr;
471 if (observer_) 476 if (observer_)
472 observer_->OnError(); 477 observer_->OnError();
473 } 478 }
474 479
475 } // namespace media 480 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698