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

Side by Side Diff: media/capture/video/linux/v4l2_capture_delegate_multi_plane.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/linux/v4l2_capture_delegate_multi_plane.h" 5 #include "media/capture/video/linux/v4l2_capture_delegate_multi_plane.h"
6 6
7 #include <stddef.h>
7 #include <sys/mman.h> 8 #include <sys/mman.h>
8 9
9 namespace media { 10 namespace media {
10 11
11 V4L2CaptureDelegateMultiPlane::V4L2CaptureDelegateMultiPlane( 12 V4L2CaptureDelegateMultiPlane::V4L2CaptureDelegateMultiPlane(
12 const VideoCaptureDevice::Name& device_name, 13 const VideoCaptureDevice::Name& device_name,
13 const scoped_refptr<base::SingleThreadTaskRunner>& v4l2_task_runner, 14 const scoped_refptr<base::SingleThreadTaskRunner>& v4l2_task_runner,
14 int power_line_frequency) 15 int power_line_frequency)
15 : V4L2CaptureDelegate(device_name, v4l2_task_runner, power_line_frequency) { 16 : V4L2CaptureDelegate(device_name, v4l2_task_runner, power_line_frequency) {
16 } 17 }
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 return false; 91 return false;
91 } 92 }
92 AddMmapedPlane(static_cast<uint8_t*>(start), buffer.m.planes[p].length); 93 AddMmapedPlane(static_cast<uint8_t*>(start), buffer.m.planes[p].length);
93 DVLOG(3) << "Mmap()ed plane #" << p << " of " << buffer.m.planes[p].length 94 DVLOG(3) << "Mmap()ed plane #" << p << " of " << buffer.m.planes[p].length
94 << "B"; 95 << "B";
95 } 96 }
96 return true; 97 return true;
97 } 98 }
98 99
99 } // namespace media 100 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698