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 <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/callback_helpers.h" | 17 #include "base/callback_helpers.h" |
17 #include "base/command_line.h" | 18 #include "base/command_line.h" |
18 #include "base/macros.h" | 19 #include "base/macros.h" |
(...skipping 2526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2545 if (!device) | 2546 if (!device) |
2546 return SupportedProfiles(); | 2547 return SupportedProfiles(); |
2547 | 2548 |
2548 const uint32_t supported_formats[] = { | 2549 const uint32_t supported_formats[] = { |
2549 V4L2_PIX_FMT_H264_SLICE, V4L2_PIX_FMT_VP8_FRAME}; | 2550 V4L2_PIX_FMT_H264_SLICE, V4L2_PIX_FMT_VP8_FRAME}; |
2550 return device->GetSupportedDecodeProfiles(arraysize(supported_formats), | 2551 return device->GetSupportedDecodeProfiles(arraysize(supported_formats), |
2551 supported_formats); | 2552 supported_formats); |
2552 } | 2553 } |
2553 | 2554 |
2554 } // namespace content | 2555 } // namespace content |
OLD | NEW |