summaryrefslogtreecommitdiffstats
path: root/include/media/IStreamSource.h
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2011-11-29 11:57:35 -0800
committerAndreas Huber <andih@google.com>2011-11-29 11:59:10 -0800
commitbfcc8d8ab7c56bc013bd221a29e1ecf3a6390813 (patch)
tree0469bc8cc740ad84a42b502ba57e02b3e520748a /include/media/IStreamSource.h
parent7cafbb32999049873d4746ba83bd20c88abe6ce6 (diff)
downloadframeworks_av-bfcc8d8ab7c56bc013bd221a29e1ecf3a6390813.zip
frameworks_av-bfcc8d8ab7c56bc013bd221a29e1ecf3a6390813.tar.gz
frameworks_av-bfcc8d8ab7c56bc013bd221a29e1ecf3a6390813.tar.bz2
Updated (internal) API for IStreamSource to signal discontinuities
Change-Id: Idd4b9d8e7cec16b3e3c91c70e75144d42be30f96 related-to-bug: 5553055
Diffstat (limited to 'include/media/IStreamSource.h')
-rw-r--r--include/media/IStreamSource.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/include/media/IStreamSource.h b/include/media/IStreamSource.h
index cc63356..19646b0 100644
--- a/include/media/IStreamSource.h
+++ b/include/media/IStreamSource.h
@@ -52,15 +52,20 @@ struct IStreamListener : public IInterface {
static const char *const kKeyResumeAtPTS;
// When signalling a discontinuity you can optionally
- // signal that this is a "hard" discontinuity, i.e. the format
- // or configuration of subsequent stream data differs from that
- // currently active. To do so, include a non-zero int32_t value
- // under the key "kKeyFormatChange" when issuing the DISCONTINUITY
+ // specify the type(s) of discontinuity, i.e. if the
+ // audio format has changed, the video format has changed,
+ // time has jumped or any combination thereof.
+ // To do so, include a non-zero int32_t value
+ // under the key "kKeyDiscontinuityMask" when issuing the DISCONTINUITY
// command.
- // The new logical stream must start with proper codec initialization
+ // If there is a change in audio/video format, The new logical stream
+ // must start with proper codec initialization
// information for playback to continue, i.e. SPS and PPS in the case
// of AVC video etc.
- static const char *const kKeyFormatChange;
+ // If this key is not present, only a time discontinuity is assumed.
+ // The value should be a bitmask of values from
+ // ATSParser::DiscontinuityType.
+ static const char *const kKeyDiscontinuityMask;
virtual void issueCommand(
Command cmd, bool synchronous, const sp<AMessage> &msg = NULL) = 0;