OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 MEDIA_GPU_ANDROID_VIDEO_ENCODE_ACCELERATOR_H_ | 5 #ifndef MEDIA_GPU_ANDROID_VIDEO_ENCODE_ACCELERATOR_H_ |
6 #define MEDIA_GPU_ANDROID_VIDEO_ENCODE_ACCELERATOR_H_ | 6 #define MEDIA_GPU_ANDROID_VIDEO_ENCODE_ACCELERATOR_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <list> | 11 #include <list> |
12 #include <memory> | 12 #include <memory> |
13 #include <queue> | 13 #include <queue> |
14 #include <tuple> | 14 #include <tuple> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
17 #include "base/macros.h" | 17 #include "base/macros.h" |
18 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
19 #include "base/threading/thread_checker.h" | 19 #include "base/threading/thread_checker.h" |
20 #include "base/timer/timer.h" | 20 #include "base/timer/timer.h" |
21 #include "media/base/android/sdk_media_codec_bridge.h" | 21 #include "media/base/android/media_codec_bridge.h" |
22 #include "media/gpu/media_gpu_export.h" | 22 #include "media/gpu/media_gpu_export.h" |
23 #include "media/video/video_encode_accelerator.h" | 23 #include "media/video/video_encode_accelerator.h" |
24 | 24 |
25 namespace media { | 25 namespace media { |
26 | 26 |
27 class BitstreamBuffer; | 27 class BitstreamBuffer; |
28 | 28 |
29 // Android-specific implementation of VideoEncodeAccelerator, enabling | 29 // Android-specific implementation of VideoEncodeAccelerator, enabling |
30 // hardware-acceleration of video encoding, based on Android's MediaCodec class | 30 // hardware-acceleration of video encoding, based on Android's MediaCodec class |
31 // (http://developer.android.com/reference/android/media/MediaCodec.html). This | 31 // (http://developer.android.com/reference/android/media/MediaCodec.html). This |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 | 106 |
107 // True if there is encoder error. | 107 // True if there is encoder error. |
108 bool error_occurred_; | 108 bool error_occurred_; |
109 | 109 |
110 DISALLOW_COPY_AND_ASSIGN(AndroidVideoEncodeAccelerator); | 110 DISALLOW_COPY_AND_ASSIGN(AndroidVideoEncodeAccelerator); |
111 }; | 111 }; |
112 | 112 |
113 } // namespace media | 113 } // namespace media |
114 | 114 |
115 #endif // MEDIA_GPU_ANDROID_VIDEO_ENCODE_ACCELERATOR_H_ | 115 #endif // MEDIA_GPU_ANDROID_VIDEO_ENCODE_ACCELERATOR_H_ |
OLD | NEW |