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 #ifndef CONTENT_COMMON_GPU_MEDIA_V4L2_SLICE_VIDEO_DECODE_ACCELERATOR_H_ | 5 #ifndef CONTENT_COMMON_GPU_MEDIA_V4L2_SLICE_VIDEO_DECODE_ACCELERATOR_H_ |
6 #define CONTENT_COMMON_GPU_MEDIA_V4L2_SLICE_VIDEO_DECODE_ACCELERATOR_H_ | 6 #define CONTENT_COMMON_GPU_MEDIA_V4L2_SLICE_VIDEO_DECODE_ACCELERATOR_H_ |
7 | 7 |
8 #include <linux/videodev2.h> | 8 #include <linux/videodev2.h> |
9 #include <queue> | 9 #include <queue> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/memory/linked_ptr.h" | 12 #include "base/memory/linked_ptr.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
16 #include "base/synchronization/waitable_event.h" | 16 #include "base/synchronization/waitable_event.h" |
17 #include "base/threading/thread.h" | 17 #include "base/threading/thread.h" |
18 #include "content/common/content_export.h" | 18 #include "content/common/content_export.h" |
19 #include "content/common/gpu/media/h264_decoder.h" | 19 #include "content/common/gpu/media/h264_decoder.h" |
20 #include "content/common/gpu/media/v4l2_video_device.h" | 20 #include "content/common/gpu/media/v4l2_device.h" |
21 #include "content/common/gpu/media/vp8_decoder.h" | 21 #include "content/common/gpu/media/vp8_decoder.h" |
22 #include "media/video/video_decode_accelerator.h" | 22 #include "media/video/video_decode_accelerator.h" |
23 | 23 |
24 namespace content { | 24 namespace content { |
25 | 25 |
26 // An implementation of VideoDecodeAccelerator that utilizes the V4L2 slice | 26 // An implementation of VideoDecodeAccelerator that utilizes the V4L2 slice |
27 // level codec API for decoding. The slice level API provides only a low-level | 27 // level codec API for decoding. The slice level API provides only a low-level |
28 // decoding functionality and requires userspace to provide support for parsing | 28 // decoding functionality and requires userspace to provide support for parsing |
29 // the input stream and managing decoder state across frames. | 29 // the input stream and managing decoder state across frames. |
30 class CONTENT_EXPORT V4L2SliceVideoDecodeAccelerator | 30 class CONTENT_EXPORT V4L2SliceVideoDecodeAccelerator |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 | 385 |
386 DISALLOW_COPY_AND_ASSIGN(V4L2SliceVideoDecodeAccelerator); | 386 DISALLOW_COPY_AND_ASSIGN(V4L2SliceVideoDecodeAccelerator); |
387 }; | 387 }; |
388 | 388 |
389 class V4L2H264Picture; | 389 class V4L2H264Picture; |
390 class V4L2VP8Picture; | 390 class V4L2VP8Picture; |
391 | 391 |
392 } // namespace content | 392 } // namespace content |
393 | 393 |
394 #endif // CONTENT_COMMON_GPU_MEDIA_V4L2_SLICE_VIDEO_DECODE_ACCELERATOR_H_ | 394 #endif // CONTENT_COMMON_GPU_MEDIA_V4L2_SLICE_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |