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 <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 <sys/eventfd.h> | 8 #include <sys/eventfd.h> |
9 #include <sys/ioctl.h> | 9 #include <sys/ioctl.h> |
10 #include <sys/mman.h> | 10 #include <sys/mman.h> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/bind_helpers.h" | 13 #include "base/bind_helpers.h" |
14 #include "base/callback.h" | 14 #include "base/callback.h" |
15 #include "base/callback_helpers.h" | 15 #include "base/callback_helpers.h" |
16 #include "base/command_line.h" | 16 #include "base/command_line.h" |
17 #include "base/message_loop/message_loop_proxy.h" | 17 #include "base/message_loop/message_loop_proxy.h" |
18 #include "base/numerics/safe_conversions.h" | 18 #include "base/numerics/safe_conversions.h" |
19 #include "base/strings/stringprintf.h" | 19 #include "base/strings/stringprintf.h" |
20 #include "content/common/gpu/media/v4l2_slice_video_decode_accelerator.h" | 20 #include "content/common/gpu/media/v4l2_slice_video_decode_accelerator.h" |
21 #include "media/base/bind_to_current_loop.h" | |
22 #include "media/base/media_switches.h" | 21 #include "media/base/media_switches.h" |
23 #include "ui/gl/scoped_binders.h" | 22 #include "ui/gl/scoped_binders.h" |
24 | 23 |
25 #define LOGF(level) LOG(level) << __FUNCTION__ << "(): " | 24 #define LOGF(level) LOG(level) << __FUNCTION__ << "(): " |
26 #define DVLOGF(level) DVLOG(level) << __FUNCTION__ << "(): " | 25 #define DVLOGF(level) DVLOG(level) << __FUNCTION__ << "(): " |
27 | 26 |
28 #define NOTIFY_ERROR(x) \ | 27 #define NOTIFY_ERROR(x) \ |
29 do { \ | 28 do { \ |
30 LOG(ERROR) << "Setting error state:" << x; \ | 29 LOG(ERROR) << "Setting error state:" << x; \ |
31 SetErrorState(x); \ | 30 SetErrorState(x); \ |
(...skipping 2501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2533 profile.profile = media::VP8PROFILE_ANY; | 2532 profile.profile = media::VP8PROFILE_ANY; |
2534 profiles.push_back(profile); | 2533 profiles.push_back(profile); |
2535 break; | 2534 break; |
2536 } | 2535 } |
2537 } | 2536 } |
2538 | 2537 |
2539 return profiles; | 2538 return profiles; |
2540 } | 2539 } |
2541 | 2540 |
2542 } // namespace content | 2541 } // namespace content |
OLD | NEW |