| OLD | NEW |
| 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 <fcntl.h> | 5 #include <fcntl.h> |
| 6 #include <linux/videodev2.h> | 6 #include <linux/videodev2.h> |
| 7 #include <poll.h> | 7 #include <poll.h> |
| 8 #include <string.h> |
| 8 #include <sys/eventfd.h> | 9 #include <sys/eventfd.h> |
| 9 #include <sys/ioctl.h> | 10 #include <sys/ioctl.h> |
| 10 #include <sys/mman.h> | 11 #include <sys/mman.h> |
| 11 | 12 |
| 12 #include "base/callback.h" | 13 #include "base/callback.h" |
| 13 #include "base/command_line.h" | 14 #include "base/command_line.h" |
| 14 #include "base/macros.h" | 15 #include "base/macros.h" |
| 15 #include "base/numerics/safe_conversions.h" | 16 #include "base/numerics/safe_conversions.h" |
| 16 #include "base/thread_task_runner_handle.h" | 17 #include "base/thread_task_runner_handle.h" |
| 17 #include "base/trace_event/trace_event.h" | 18 #include "base/trace_event/trace_event.h" |
| (...skipping 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1160 reqbufs.count = 0; | 1161 reqbufs.count = 0; |
| 1161 reqbufs.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; | 1162 reqbufs.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; |
| 1162 reqbufs.memory = V4L2_MEMORY_MMAP; | 1163 reqbufs.memory = V4L2_MEMORY_MMAP; |
| 1163 IOCTL_OR_LOG_ERROR(VIDIOC_REQBUFS, &reqbufs); | 1164 IOCTL_OR_LOG_ERROR(VIDIOC_REQBUFS, &reqbufs); |
| 1164 | 1165 |
| 1165 output_buffer_map_.clear(); | 1166 output_buffer_map_.clear(); |
| 1166 free_output_buffers_.clear(); | 1167 free_output_buffers_.clear(); |
| 1167 } | 1168 } |
| 1168 | 1169 |
| 1169 } // namespace content | 1170 } // namespace content |
| OLD | NEW |