diff options
author | Marco Nelissen <marcone@google.com> | 2013-04-08 14:30:57 -0700 |
---|---|---|
committer | Marco Nelissen <marcone@google.com> | 2013-04-08 16:34:27 -0700 |
commit | ec77122351b4e78c1fe5b60a208f76baf8c67591 (patch) | |
tree | 98e93cfa582e1ebe7fa27dadacb2ce9d01f5d28c /include/media | |
parent | b3a95a56f0adaf2b60ff164275487d1870442734 (diff) | |
download | frameworks_av-ec77122351b4e78c1fe5b60a208f76baf8c67591.zip frameworks_av-ec77122351b4e78c1fe5b60a208f76baf8c67591.tar.gz frameworks_av-ec77122351b4e78c1fe5b60a208f76baf8c67591.tar.bz2 |
Add support for common encryption
b/7465749
Change-Id: I5403b74a5ae428ad28b382863a09daafc400b137
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/stagefright/DataSource.h | 1 | ||||
-rw-r--r-- | include/media/stagefright/MetaData.h | 4 | ||||
-rw-r--r-- | include/media/stagefright/NuMediaExtractor.h | 2 |
3 files changed, 7 insertions, 0 deletions
diff --git a/include/media/stagefright/DataSource.h b/include/media/stagefright/DataSource.h index b0c1b34..742bc0e 100644 --- a/include/media/stagefright/DataSource.h +++ b/include/media/stagefright/DataSource.h @@ -54,6 +54,7 @@ public: // Convenience methods: bool getUInt16(off64_t offset, uint16_t *x); + bool getUInt24(off64_t offset, uint32_t *x); // 3 byte int, returned as a 32-bit int bool getUInt32(off64_t offset, uint32_t *x); bool getUInt64(off64_t offset, uint64_t *x); diff --git a/include/media/stagefright/MetaData.h b/include/media/stagefright/MetaData.h index be08c19..9ab3edc 100644 --- a/include/media/stagefright/MetaData.h +++ b/include/media/stagefright/MetaData.h @@ -157,6 +157,10 @@ enum { kKeyCryptoKey = 'cryK', // uint8_t[16] kKeyCryptoIV = 'cryI', // uint8_t[16] kKeyCryptoMode = 'cryM', // int32_t + + kKeyCryptoDefaultIVSize = 'cryS', // int32_t + + kKeyPssh = 'pssh', // raw data }; enum { diff --git a/include/media/stagefright/NuMediaExtractor.h b/include/media/stagefright/NuMediaExtractor.h index 0833110..5ae6f6b 100644 --- a/include/media/stagefright/NuMediaExtractor.h +++ b/include/media/stagefright/NuMediaExtractor.h @@ -55,6 +55,8 @@ struct NuMediaExtractor : public RefBase { size_t countTracks() const; status_t getTrackFormat(size_t index, sp<AMessage> *format) const; + status_t getFileFormat(sp<AMessage> *format) const; + status_t selectTrack(size_t index); status_t unselectTrack(size_t index); |