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

Unified Diff: media/base/audio_buffer.h

Issue 251893002: Support start trimming post-decoding. Use it with FFmpegDemuxer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments. Created 6 years, 8 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
« no previous file with comments | « no previous file | media/base/audio_buffer.cc » ('j') | media/base/audio_buffer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_buffer.h
diff --git a/media/base/audio_buffer.h b/media/base/audio_buffer.h
index 2401ed81dd5bdb85a3763b93d9397f1074475be6..a6a0ddc278c9e9bad1f4b7fe1105f9993ebac0c8 100644
--- a/media/base/audio_buffer.h
+++ b/media/base/audio_buffer.h
@@ -85,6 +85,10 @@ class MEDIA_EXPORT AudioBuffer
// Duration is adjusted to reflect the fewer frames.
void TrimEnd(int frames_to_trim);
+ // Trim an AudioBuffer by removing |end - start| frames from [|start|, |end|).
+ // Even if |start| is zero, timestamp() is not adjusted, only duration().
+ void TrimRange(int start, int end);
+
// Return the number of channels.
int channel_count() const { return channel_count_; }
« no previous file with comments | « no previous file | media/base/audio_buffer.cc » ('j') | media/base/audio_buffer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698