Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Side by Side Diff: content/common/gpu/media/android_video_encode_accelerator.h

Issue 1525003002: Revert of Refactor MediaCodecBridge to add support for NDK APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix rebase errors Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <list> 10 #include <list>
11 #include <queue> 11 #include <queue>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/threading/thread_checker.h" 15 #include "base/threading/thread_checker.h"
16 #include "base/timer/timer.h" 16 #include "base/timer/timer.h"
17 #include "base/tuple.h" 17 #include "base/tuple.h"
18 #include "content/common/content_export.h" 18 #include "content/common/content_export.h"
19 #include "media/base/android/sdk_media_codec_bridge.h" 19 #include "media/base/android/media_codec_bridge.h"
20 #include "media/video/video_encode_accelerator.h" 20 #include "media/video/video_encode_accelerator.h"
21 21
22 namespace media { 22 namespace media {
23 class BitstreamBuffer; 23 class BitstreamBuffer;
24 } // namespace media 24 } // namespace media
25 25
26 namespace content { 26 namespace content {
27 27
28 // Android-specific implementation of media::VideoEncodeAccelerator, enabling 28 // Android-specific implementation of media::VideoEncodeAccelerator, enabling
29 // hardware-acceleration of video encoding, based on Android's MediaCodec class 29 // hardware-acceleration of video encoding, based on Android's MediaCodec class
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 size_t output_buffers_capacity_; // 0 until RequireBitstreamBuffers. 106 size_t output_buffers_capacity_; // 0 until RequireBitstreamBuffers.
107 107
108 uint32_t last_set_bitrate_; // In bps. 108 uint32_t last_set_bitrate_; // In bps.
109 109
110 DISALLOW_COPY_AND_ASSIGN(AndroidVideoEncodeAccelerator); 110 DISALLOW_COPY_AND_ASSIGN(AndroidVideoEncodeAccelerator);
111 }; 111 };
112 112
113 } // namespace content 113 } // namespace content
114 114
115 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_ENCODE_ACCELERATOR_H_ 115 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_ENCODE_ACCELERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698