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 <fcntl.h> | 6 #include <fcntl.h> |
6 #include <linux/videodev2.h> | 7 #include <linux/videodev2.h> |
7 #include <poll.h> | 8 #include <poll.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/bind.h" | 13 #include "base/bind.h" |
13 #include "base/bind_helpers.h" | 14 #include "base/bind_helpers.h" |
14 #include "base/callback.h" | 15 #include "base/callback.h" |
(...skipping 2523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2538 if (!device) | 2539 if (!device) |
2539 return SupportedProfiles(); | 2540 return SupportedProfiles(); |
2540 | 2541 |
2541 const uint32_t supported_formats[] = { | 2542 const uint32_t supported_formats[] = { |
2542 V4L2_PIX_FMT_H264_SLICE, V4L2_PIX_FMT_VP8_FRAME}; | 2543 V4L2_PIX_FMT_H264_SLICE, V4L2_PIX_FMT_VP8_FRAME}; |
2543 return device->GetSupportedDecodeProfiles(arraysize(supported_formats), | 2544 return device->GetSupportedDecodeProfiles(arraysize(supported_formats), |
2544 supported_formats); | 2545 supported_formats); |
2545 } | 2546 } |
2546 | 2547 |
2547 } // namespace content | 2548 } // namespace content |
OLD | NEW |