| 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 CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_ENCODE_ACCELERATOR_H_ | 5 #ifndef CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_ENCODE_ACCELERATOR_H_ |
| 6 #define CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_ENCODE_ACCELERATOR_H_ | 6 #define CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_ENCODE_ACCELERATOR_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <queue> | 9 #include <queue> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "base/threading/thread_checker.h" | 13 #include "base/threading/thread_checker.h" |
| 14 #include "base/timer/timer.h" | 14 #include "base/timer/timer.h" |
| 15 #include "base/tuple.h" | 15 #include "base/tuple.h" |
| 16 #include "content/common/content_export.h" | 16 #include "content/common/content_export.h" |
| 17 #include "media/base/android/media_codec_bridge.h" | 17 #include "media/base/android/sdk_media_codec_bridge.h" |
| 18 #include "media/video/video_encode_accelerator.h" | 18 #include "media/video/video_encode_accelerator.h" |
| 19 | 19 |
| 20 namespace media { | 20 namespace media { |
| 21 class BitstreamBuffer; | 21 class BitstreamBuffer; |
| 22 } // namespace media | 22 } // namespace media |
| 23 | 23 |
| 24 namespace content { | 24 namespace content { |
| 25 | 25 |
| 26 // Android-specific implementation of media::VideoEncodeAccelerator, enabling | 26 // Android-specific implementation of media::VideoEncodeAccelerator, enabling |
| 27 // hardware-acceleration of video encoding, based on Android's MediaCodec class | 27 // hardware-acceleration of video encoding, based on Android's MediaCodec class |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 size_t output_buffers_capacity_; // 0 until RequireBitstreamBuffers. | 104 size_t output_buffers_capacity_; // 0 until RequireBitstreamBuffers. |
| 105 | 105 |
| 106 uint32 last_set_bitrate_; // In bps. | 106 uint32 last_set_bitrate_; // In bps. |
| 107 | 107 |
| 108 DISALLOW_COPY_AND_ASSIGN(AndroidVideoEncodeAccelerator); | 108 DISALLOW_COPY_AND_ASSIGN(AndroidVideoEncodeAccelerator); |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 } // namespace content | 111 } // namespace content |
| 112 | 112 |
| 113 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_ENCODE_ACCELERATOR_H_ | 113 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_ENCODE_ACCELERATOR_H_ |
| OLD | NEW |