diff options
author | Ronghua Wu <ronghuawu@google.com> | 2015-04-09 13:54:27 -0700 |
---|---|---|
committer | Ronghua Wu <ronghuawu@google.com> | 2015-04-09 14:56:47 -0700 |
commit | ea20d117ef9b4e867ec3982c7d070e719617ba2f (patch) | |
tree | 3a573f404a1fdbc793aa659ea2cfe63403f4adb4 /include | |
parent | 31ffe45a22b72ee5d25bb4932d0525e90dbc19fe (diff) | |
download | frameworks_av-ea20d117ef9b4e867ec3982c7d070e719617ba2f.zip frameworks_av-ea20d117ef9b4e867ec3982c7d070e719617ba2f.tar.gz frameworks_av-ea20d117ef9b4e867ec3982c7d070e719617ba2f.tar.bz2 |
stagefright: define CB_CODEC_RELEASED and ReleaseReason enum.
Bug: 19620911
Change-Id: I95e257c8aea2ef218f27ffaa2e62a8f12554d824
Diffstat (limited to 'include')
-rw-r--r-- | include/media/stagefright/MediaCodec.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/media/stagefright/MediaCodec.h b/include/media/stagefright/MediaCodec.h index d055341..4ddb8d4 100644 --- a/include/media/stagefright/MediaCodec.h +++ b/include/media/stagefright/MediaCodec.h @@ -51,7 +51,13 @@ struct MediaCodec : public AHandler { CB_OUTPUT_AVAILABLE = 2, CB_ERROR = 3, CB_OUTPUT_FORMAT_CHANGED = 4, - CB_RESOURCE_RECLAIMED = 5, + CB_CODEC_RELEASED = 5, + }; + + // used by CB_CODEC_RELEASED to tell the upper layer the cause of the release. + enum ReleaseReason { + REASON_UNKNOWN = 0, + REASON_RECLAIMED, // resources reclaimed by resource manager }; struct BatteryNotifier; |