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

Side by Side Diff: media/capture/video/file_video_capture_device_factory.cc

Issue 1542013004: Switch to standard integer types in media/, take 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more stddef Created 4 years, 12 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/file_video_capture_device_factory.h" 5 #include "media/capture/video/file_video_capture_device_factory.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/strings/sys_string_conversions.h" 9 #include "base/strings/sys_string_conversions.h"
10 #include "build/build_config.h"
10 #include "media/base/media_switches.h" 11 #include "media/base/media_switches.h"
11 #include "media/capture/video/file_video_capture_device.h" 12 #include "media/capture/video/file_video_capture_device.h"
12 13
13 namespace media { 14 namespace media {
14 15
15 const char kFileVideoCaptureDeviceName[] = 16 const char kFileVideoCaptureDeviceName[] =
16 "/dev/placeholder-for-file-backed-fake-capture-device"; 17 "/dev/placeholder-for-file-backed-fake-capture-device";
17 18
18 // Inspects the command line and retrieves the file path parameter. 19 // Inspects the command line and retrieves the file path parameter.
19 base::FilePath GetFilePathFromCommandLine() { 20 base::FilePath GetFilePathFromCommandLine() {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 VideoCaptureFormat capture_format; 68 VideoCaptureFormat capture_format;
68 if (!FileVideoCaptureDevice::GetVideoCaptureFormat( 69 if (!FileVideoCaptureDevice::GetVideoCaptureFormat(
69 GetFilePathFromCommandLine(), &capture_format)) { 70 GetFilePathFromCommandLine(), &capture_format)) {
70 return; 71 return;
71 } 72 }
72 73
73 supported_formats->push_back(capture_format); 74 supported_formats->push_back(capture_format);
74 } 75 }
75 76
76 } // namespace media 77 } // namespace media
OLDNEW
« no previous file with comments | « media/capture/video/file_video_capture_device.cc ('k') | media/capture/video/linux/v4l2_capture_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698