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

Unified Diff: media/base/android/access_unit_queue.h

Issue 1287423004: MediaCodecPlayer implementation (stage 5 - reconfiguration) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mtplayer-cleanuptest
Patch Set: Avoid potential frame skipping after decoder drain with a new prerolling mode Created 5 years, 4 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/android/access_unit_queue.cc » ('j') | media/base/android/media_codec_decoder.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/android/access_unit_queue.h
diff --git a/media/base/android/access_unit_queue.h b/media/base/android/access_unit_queue.h
index 9fae42000f4924ae59e3f532ac92abd49fe31e2a..54a5a944b2a156d0e8758df55930b27dd6ed2233 100644
--- a/media/base/android/access_unit_queue.h
+++ b/media/base/android/access_unit_queue.h
@@ -40,6 +40,9 @@ class AccessUnitQueue {
// Number of access units in the queue.
int length;
+ // Number of access units in the queue excluding config units.
+ int data_length;
+
// Whether End Of Stream has been added to the queue. Cleared by Flush().
bool has_eos;
@@ -75,9 +78,11 @@ class AccessUnitQueue {
void SetHistorySizeForTesting(size_t number_of_history_chunks);
private:
- // Returns the amount of access units between the current one and the end,
- // incuding current. Logically these are units that have not been consumed.
- int GetUnconsumedAccessUnitLength() const;
+ // Returns the total number of access (total_length) and the number of units
qinmin 2015/08/27 19:38:42 s/access/access units/
Tima Vaisburd 2015/08/27 20:39:47 Done.
+ // excluding configiration change requests (data_length). The number is
+ // calculated between the current one and the end, incuding the current.
+ // Logically these are units that have not been consumed.
+ void GetUnconsumedAccessUnitLength(int* total_length, int* data_length) const;
// The queue of data chunks. It owns the chunks.
typedef std::list<DemuxerData*> DataChunkQueue;
« no previous file with comments | « no previous file | media/base/android/access_unit_queue.cc » ('j') | media/base/android/media_codec_decoder.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698