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

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: Fixed AdvanceAccessUnitQueue() 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') | no next file with comments »
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..d6ea33d74a99643fc91d6cd99bccd2f490fd240f 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 units (total_length) and the number of
+ // units 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698