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 <errno.h> | 5 #include <errno.h> |
6 #include <linux/videodev2.h> | 6 #include <linux/videodev2.h> |
| 7 #include <string.h> |
7 #include <sys/mman.h> | 8 #include <sys/mman.h> |
8 | 9 |
9 #include "base/big_endian.h" | 10 #include "base/big_endian.h" |
10 #include "base/bind.h" | 11 #include "base/bind.h" |
11 #include "base/thread_task_runner_handle.h" | 12 #include "base/thread_task_runner_handle.h" |
12 #include "content/common/gpu/media/v4l2_jpeg_decode_accelerator.h" | 13 #include "content/common/gpu/media/v4l2_jpeg_decode_accelerator.h" |
13 #include "media/filters/jpeg_parser.h" | 14 #include "media/filters/jpeg_parser.h" |
14 #include "third_party/libyuv/include/libyuv.h" | 15 #include "third_party/libyuv/include/libyuv.h" |
15 | 16 |
16 #define IOCTL_OR_ERROR_RETURN_VALUE(type, arg, value, type_name) \ | 17 #define IOCTL_OR_ERROR_RETURN_VALUE(type, arg, value, type_name) \ |
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
883 device_poll_thread_.Stop(); | 884 device_poll_thread_.Stop(); |
884 | 885 |
885 // Clear the interrupt now, to be sure. | 886 // Clear the interrupt now, to be sure. |
886 if (!device_->ClearDevicePollInterrupt()) | 887 if (!device_->ClearDevicePollInterrupt()) |
887 return false; | 888 return false; |
888 | 889 |
889 return true; | 890 return true; |
890 } | 891 } |
891 | 892 |
892 } // namespace content | 893 } // namespace content |
OLD | NEW |