summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/mpeg2ts/ESQueue.h
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2012-08-31 10:36:25 -0700
committerAndreas Huber <andih@google.com>2012-08-31 13:47:48 -0700
commitf56afa4878694803a44d1b0e9a54762d1d5ab652 (patch)
treedef3c51c4c88e7c416f9f4b42992de78b17fc630 /media/libstagefright/mpeg2ts/ESQueue.h
parentdc91c885f267005e06f439a3bd592b3d8706bb50 (diff)
downloadframeworks_av-f56afa4878694803a44d1b0e9a54762d1d5ab652.zip
frameworks_av-f56afa4878694803a44d1b0e9a54762d1d5ab652.tar.gz
frameworks_av-f56afa4878694803a44d1b0e9a54762d1d5ab652.tar.bz2
Special mode for ESQueue that allows for earlier dequeuing of access units
if it's know beforehand that each PES packet contains exactly one access unit. Currently this optimization is only supported for H.264 video. Change-Id: I0888027cc7e9850307484b11dba1191cf6bfac83
Diffstat (limited to 'media/libstagefright/mpeg2ts/ESQueue.h')
-rw-r--r--media/libstagefright/mpeg2ts/ESQueue.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/media/libstagefright/mpeg2ts/ESQueue.h b/media/libstagefright/mpeg2ts/ESQueue.h
index 4035ed3..72aa2e7 100644
--- a/media/libstagefright/mpeg2ts/ESQueue.h
+++ b/media/libstagefright/mpeg2ts/ESQueue.h
@@ -36,7 +36,12 @@ struct ElementaryStreamQueue {
MPEG_VIDEO,
MPEG4_VIDEO,
};
- ElementaryStreamQueue(Mode mode);
+
+ enum Flags {
+ // Data appended to the queue is always at access unit boundaries.
+ kFlag_AlignedData = 1,
+ };
+ ElementaryStreamQueue(Mode mode, uint32_t flags = 0);
status_t appendData(const void *data, size_t size, int64_t timeUs);
void clear(bool clearFormat);
@@ -52,6 +57,7 @@ private:
};
Mode mMode;
+ uint32_t mFlags;
sp<ABuffer> mBuffer;
List<RangeInfo> mRangeInfos;