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

Side by Side Diff: media/base/android/sdk_media_codec_bridge.h

Issue 1651673002: Add MediaCodecAudioDecoder implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Modified a comment Created 4 years, 10 months 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_BASE_ANDROID_SDK_MEDIA_CODEC_BRIDGE_H_ 5 #ifndef MEDIA_BASE_ANDROID_SDK_MEDIA_CODEC_BRIDGE_H_
6 #define MEDIA_BASE_ANDROID_SDK_MEDIA_CODEC_BRIDGE_H_ 6 #define MEDIA_BASE_ANDROID_SDK_MEDIA_CODEC_BRIDGE_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <stddef.h> 9 #include <stddef.h>
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 class MEDIA_EXPORT AudioCodecBridge : public SdkMediaCodecBridge { 98 class MEDIA_EXPORT AudioCodecBridge : public SdkMediaCodecBridge {
99 public: 99 public:
100 // Returns an AudioCodecBridge instance if |codec| is supported, or a NULL 100 // Returns an AudioCodecBridge instance if |codec| is supported, or a NULL
101 // pointer otherwise. 101 // pointer otherwise.
102 static AudioCodecBridge* Create(const AudioCodec& codec); 102 static AudioCodecBridge* Create(const AudioCodec& codec);
103 103
104 // See MediaCodecUtil::IsKnownUnaccelerated(). 104 // See MediaCodecUtil::IsKnownUnaccelerated().
105 static bool IsKnownUnaccelerated(const AudioCodec& codec); 105 static bool IsKnownUnaccelerated(const AudioCodec& codec);
106 106
107 // Start the audio codec bridge. 107 // Start the audio codec bridge.
108 bool ConfigureAndStart(const AudioDecoderConfig& config,
109 bool play_audio,
xhwang 2016/02/12 10:15:04 What is "play_audio" for? Add a comment?
Tima Vaisburd 2016/02/13 01:31:24 Done.
110 jobject media_crypto);
111
112 // An overloaded variant used by AudioDecoderJob and AudioMediaCodecDecoder.
113 // We might want to remove this method when these classes go away.
108 bool ConfigureAndStart(const AudioCodec& codec, 114 bool ConfigureAndStart(const AudioCodec& codec,
109 int sample_rate, 115 int sample_rate,
110 int channel_count, 116 int channel_count,
111 const uint8_t* extra_data, 117 const uint8_t* extra_data,
112 size_t extra_data_size, 118 size_t extra_data_size,
113 int64_t codec_delay_ns, 119 int64_t codec_delay_ns,
114 int64_t seek_preroll_ns, 120 int64_t seek_preroll_ns,
115 bool play_audio, 121 bool play_audio,
116 jobject media_crypto) WARN_UNUSED_RESULT; 122 jobject media_crypto) WARN_UNUSED_RESULT;
117 123
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 VideoCodecBridge(const std::string& mime, 196 VideoCodecBridge(const std::string& mime,
191 bool is_secure, 197 bool is_secure,
192 MediaCodecDirection direction); 198 MediaCodecDirection direction);
193 199
194 int adaptive_playback_supported_for_testing_; 200 int adaptive_playback_supported_for_testing_;
195 }; 201 };
196 202
197 } // namespace media 203 } // namespace media
198 204
199 #endif // MEDIA_BASE_ANDROID_SDK_MEDIA_CODEC_BRIDGE_H_ 205 #endif // MEDIA_BASE_ANDROID_SDK_MEDIA_CODEC_BRIDGE_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/android/sdk_media_codec_bridge.cc » ('j') | media/base/android/sdk_media_codec_bridge.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698