OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 an implementation of VideoDecoderAccelerator | 5 // This file contains an implementation of VideoDecoderAccelerator |
6 // that utilizes hardware video decoder present on Intel CPUs. | 6 // that utilizes hardware video decoder present on Intel CPUs. |
7 | 7 |
8 #ifndef CONTENT_COMMON_GPU_MEDIA_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ | 8 #ifndef CONTENT_COMMON_GPU_MEDIA_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ |
9 #define CONTENT_COMMON_GPU_MEDIA_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ | 9 #define CONTENT_COMMON_GPU_MEDIA_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ |
10 | 10 |
11 #include <map> | 11 #include <map> |
12 #include <queue> | 12 #include <queue> |
13 #include <utility> | 13 #include <utility> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/logging.h" | 16 #include "base/logging.h" |
17 #include "base/memory/linked_ptr.h" | 17 #include "base/memory/linked_ptr.h" |
| 18 #include "base/memory/shared_memory.h" |
18 #include "base/memory/weak_ptr.h" | 19 #include "base/memory/weak_ptr.h" |
19 #include "base/message_loop.h" | 20 #include "base/message_loop.h" |
20 #include "base/shared_memory.h" | |
21 #include "base/synchronization/condition_variable.h" | 21 #include "base/synchronization/condition_variable.h" |
22 #include "base/synchronization/lock.h" | 22 #include "base/synchronization/lock.h" |
23 #include "base/threading/non_thread_safe.h" | 23 #include "base/threading/non_thread_safe.h" |
24 #include "base/threading/thread.h" | 24 #include "base/threading/thread.h" |
25 #include "content/common/content_export.h" | 25 #include "content/common/content_export.h" |
26 #include "content/common/gpu/media/vaapi_h264_decoder.h" | 26 #include "content/common/gpu/media/vaapi_h264_decoder.h" |
27 #include "content/common/gpu/media/vaapi_wrapper.h" | 27 #include "content/common/gpu/media/vaapi_wrapper.h" |
28 #include "media/base/bitstream_buffer.h" | 28 #include "media/base/bitstream_buffer.h" |
29 #include "media/video/picture.h" | 29 #include "media/video/picture.h" |
30 #include "media/video/video_decode_accelerator.h" | 30 #include "media/video/video_decode_accelerator.h" |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 // Last requested number/resolution of output picture buffers. | 263 // Last requested number/resolution of output picture buffers. |
264 size_t requested_num_pics_; | 264 size_t requested_num_pics_; |
265 gfx::Size requested_pic_size_; | 265 gfx::Size requested_pic_size_; |
266 | 266 |
267 DISALLOW_COPY_AND_ASSIGN(VaapiVideoDecodeAccelerator); | 267 DISALLOW_COPY_AND_ASSIGN(VaapiVideoDecodeAccelerator); |
268 }; | 268 }; |
269 | 269 |
270 } // namespace content | 270 } // namespace content |
271 | 271 |
272 #endif // CONTENT_COMMON_GPU_MEDIA_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ | 272 #endif // CONTENT_COMMON_GPU_MEDIA_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |