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 // This file contains the implementation of TegraV4L2Device used on | 5 // This file contains the implementation of TegraV4L2Device used on |
6 // Tegra platform. | 6 // Tegra platform. |
7 | 7 |
8 #ifndef CONTENT_COMMON_GPU_MEDIA_TEGRA_V4L2_DEVICE_H_ | 8 #ifndef MEDIA_GPU_TEGRA_V4L2_DEVICE_H_ |
9 #define CONTENT_COMMON_GPU_MEDIA_TEGRA_V4L2_DEVICE_H_ | 9 #define MEDIA_GPU_TEGRA_V4L2_DEVICE_H_ |
10 | 10 |
11 #include <stddef.h> | 11 #include <stddef.h> |
12 #include <stdint.h> | 12 #include <stdint.h> |
13 | 13 |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "content/common/gpu/media/v4l2_device.h" | 15 #include "media/gpu/v4l2_device.h" |
16 #include "ui/gl/gl_bindings.h" | 16 #include "ui/gl/gl_bindings.h" |
17 | 17 |
18 namespace content { | 18 namespace media { |
19 | 19 |
20 // This class implements the V4L2Device interface for Tegra platform. | 20 // This class implements the V4L2Device interface for Tegra platform. |
21 // It interfaces with libtegrav4l2 library which provides API that exhibit the | 21 // It interfaces with libtegrav4l2 library which provides API that exhibit the |
22 // V4L2 specification via the library API instead of system calls. | 22 // V4L2 specification via the library API instead of system calls. |
23 class TegraV4L2Device : public V4L2Device { | 23 class TegraV4L2Device : public V4L2Device { |
24 public: | 24 public: |
25 explicit TegraV4L2Device(Type type); | 25 explicit TegraV4L2Device(Type type); |
26 | 26 |
27 int Ioctl(int flags, void* arg) override; | 27 int Ioctl(int flags, void* arg) override; |
28 bool Poll(bool poll_device, bool* event_pending) override; | 28 bool Poll(bool poll_device, bool* event_pending) override; |
(...skipping 25 matching lines...) Expand all Loading... |
54 | 54 |
55 private: | 55 private: |
56 ~TegraV4L2Device() override; | 56 ~TegraV4L2Device() override; |
57 | 57 |
58 // The actual device fd. | 58 // The actual device fd. |
59 int device_fd_; | 59 int device_fd_; |
60 | 60 |
61 DISALLOW_COPY_AND_ASSIGN(TegraV4L2Device); | 61 DISALLOW_COPY_AND_ASSIGN(TegraV4L2Device); |
62 }; | 62 }; |
63 | 63 |
64 } // namespace content | 64 } // namespace media |
65 | 65 |
66 #endif // CONTENT_COMMON_GPU_MEDIA_TEGRA_V4L2_DEVICE_H_ | 66 #endif // MEDIA_GPU_TEGRA_V4L2_DEVICE_H_ |
OLD | NEW |