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 <errno.h> | 5 #include <errno.h> |
6 #include <fcntl.h> | 6 #include <fcntl.h> |
7 #include <linux/videodev2.h> | 7 #include <linux/videodev2.h> |
8 #include <poll.h> | 8 #include <poll.h> |
| 9 #include <string.h> |
9 #include <sys/eventfd.h> | 10 #include <sys/eventfd.h> |
10 #include <sys/ioctl.h> | 11 #include <sys/ioctl.h> |
11 #include <sys/mman.h> | 12 #include <sys/mman.h> |
12 | 13 |
13 #include "base/bind.h" | 14 #include "base/bind.h" |
14 #include "base/bind_helpers.h" | 15 #include "base/bind_helpers.h" |
15 #include "base/callback.h" | 16 #include "base/callback.h" |
16 #include "base/numerics/safe_conversions.h" | 17 #include "base/numerics/safe_conversions.h" |
17 #include "content/common/gpu/media/v4l2_image_processor.h" | 18 #include "content/common/gpu/media/v4l2_image_processor.h" |
18 #include "media/base/bind_to_current_loop.h" | 19 #include "media/base/bind_to_current_loop.h" |
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 output_record.at_device = false; | 719 output_record.at_device = false; |
719 if (!output_record.at_client) | 720 if (!output_record.at_client) |
720 free_output_buffers_.push_back(i); | 721 free_output_buffers_.push_back(i); |
721 } | 722 } |
722 output_buffer_queued_count_ = 0; | 723 output_buffer_queued_count_ = 0; |
723 | 724 |
724 return true; | 725 return true; |
725 } | 726 } |
726 | 727 |
727 } // namespace content | 728 } // namespace content |
OLD | NEW |