| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |