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

Unified Diff: media/base/audio_buffer.h

Issue 1651673002: Add MediaCodecAudioDecoder implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: media/base/audio_buffer.h
diff --git a/media/base/audio_buffer.h b/media/base/audio_buffer.h
index 8ae281eabda8788e53985f7c8f684e884e0594f8..53e3beb9b56d9a77c1e6d0e3936577b30d48b982 100644
--- a/media/base/audio_buffer.h
+++ b/media/base/audio_buffer.h
@@ -135,6 +135,11 @@ class MEDIA_EXPORT AudioBuffer
// data is grouped by channel. There is only 1 entry for interleaved formats.
const std::vector<uint8_t*>& channel_data() const { return channel_data_; }
+ // Access to the interleaved raw buffer for Android MediaCodec to write
+ // directly to.
+ uint8_t* interleaved_data() const { return data_.get(); }
DaleCurtis 2016/02/01 19:08:17 You can just use channel_data()[0] in this case, s
Tima Vaisburd 2016/02/04 22:59:12 Removed these methods and added data_size() method
+ size_t interleaved_data_size() const { return data_ ? data_size_ : 0; }
+
private:
friend class base::RefCountedThreadSafe<AudioBuffer>;
« no previous file with comments | « media/BUILD.gn ('k') | media/base/decoder_buffer.h » ('j') | media/base/decoder_buffer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698