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

Side by Side Diff: device/capture/video/win/video_capture_device_mf_win.cc

Issue 2143903003: [WIP] Move media/capture to device/capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/capture/video/win/video_capture_device_mf_win.h" 5 #include "device/capture/video/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 #include <stddef.h> 9 #include <stddef.h>
10 10
11 #include <utility> 11 #include <utility>
12 12
13 #include "base/location.h" 13 #include "base/location.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/strings/stringprintf.h" 15 #include "base/strings/stringprintf.h"
16 #include "base/strings/sys_string_conversions.h" 16 #include "base/strings/sys_string_conversions.h"
17 #include "base/synchronization/waitable_event.h" 17 #include "base/synchronization/waitable_event.h"
18 #include "base/win/scoped_co_mem.h" 18 #include "base/win/scoped_co_mem.h"
19 #include "base/win/windows_version.h" 19 #include "base/win/windows_version.h"
20 #include "media/capture/video/win/capability_list_win.h" 20 #include "device/capture/video/win/capability_list_win.h"
21 21
22 using base::win::ScopedCoMem; 22 using base::win::ScopedCoMem;
23 using base::win::ScopedComPtr; 23 using base::win::ScopedComPtr;
24 24
25 namespace media { 25 namespace media {
26 26
27 // In Windows device identifiers, the USB VID and PID are preceded by the string 27 // In Windows device identifiers, the USB VID and PID are preceded by the string
28 // "vid_" or "pid_". The identifiers are each 4 bytes long. 28 // "vid_" or "pid_". The identifiers are each 4 bytes long.
29 const char kVidPrefix[] = "vid_"; // Also contains '\0'. 29 const char kVidPrefix[] = "vid_"; // Also contains '\0'.
30 const char kPidPrefix[] = "pid_"; // Also contains '\0'. 30 const char kPidPrefix[] = "pid_"; // Also contains '\0'.
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 HRESULT hr) { 331 HRESULT hr) {
332 if (client_.get()) { 332 if (client_.get()) {
333 client_->OnError( 333 client_->OnError(
334 from_here, 334 from_here,
335 base::StringPrintf("VideoCaptureDeviceMFWin: %s", 335 base::StringPrintf("VideoCaptureDeviceMFWin: %s",
336 logging::SystemErrorCodeToString(hr).c_str())); 336 logging::SystemErrorCodeToString(hr).c_str()));
337 } 337 }
338 } 338 }
339 339
340 } // namespace media 340 } // namespace media
OLDNEW
« no previous file with comments | « device/capture/video/win/video_capture_device_mf_win.h ('k') | device/capture/video/win/video_capture_device_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698