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 #ifndef CONTENT_COMMON_GPU_MEDIA_V4L2_VIDEO_PROCESSOR_H_ | 5 #ifndef CONTENT_COMMON_GPU_MEDIA_V4L2_VIDEO_PROCESSOR_H_ |
6 #define CONTENT_COMMON_GPU_MEDIA_V4L2_VIDEO_PROCESSOR_H_ | 6 #define CONTENT_COMMON_GPU_MEDIA_V4L2_VIDEO_PROCESSOR_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/memory/linked_ptr.h" | 11 #include "base/memory/linked_ptr.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "base/threading/thread.h" | 14 #include "base/threading/thread.h" |
15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
16 #include "content/common/gpu/media/v4l2_video_device.h" | 16 #include "content/common/gpu/media/v4l2_device.h" |
17 #include "media/base/video_frame.h" | 17 #include "media/base/video_frame.h" |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 | 20 |
21 // Handles image processing accelerators that expose a V4L2 memory-to-memory | 21 // Handles image processing accelerators that expose a V4L2 memory-to-memory |
22 // interface. The threading model of this class is the same as for other V4L2 | 22 // interface. The threading model of this class is the same as for other V4L2 |
23 // hardware accelerators (see V4L2VideoDecodeAccelerator) for more details. | 23 // hardware accelerators (see V4L2VideoDecodeAccelerator) for more details. |
24 class CONTENT_EXPORT V4L2ImageProcessor { | 24 class CONTENT_EXPORT V4L2ImageProcessor { |
25 public: | 25 public: |
26 explicit V4L2ImageProcessor(const scoped_refptr<V4L2Device>& device); | 26 explicit V4L2ImageProcessor(const scoped_refptr<V4L2Device>& device); |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 | 172 |
173 // Weak factory for producing weak pointers on the device_thread_ | 173 // Weak factory for producing weak pointers on the device_thread_ |
174 base::WeakPtrFactory<V4L2ImageProcessor> device_weak_factory_; | 174 base::WeakPtrFactory<V4L2ImageProcessor> device_weak_factory_; |
175 | 175 |
176 DISALLOW_COPY_AND_ASSIGN(V4L2ImageProcessor); | 176 DISALLOW_COPY_AND_ASSIGN(V4L2ImageProcessor); |
177 }; | 177 }; |
178 | 178 |
179 } // namespace content | 179 } // namespace content |
180 | 180 |
181 #endif // CONTENT_COMMON_GPU_MEDIA_V4L2_VIDEO_PROCESSOR_H_ | 181 #endif // CONTENT_COMMON_GPU_MEDIA_V4L2_VIDEO_PROCESSOR_H_ |
OLD | NEW |