diff options
author | James Dong <jdong@google.com> | 2009-09-06 14:29:45 -0700 |
---|---|---|
committer | James Dong <jdong@google.com> | 2009-09-08 11:04:53 -0700 |
commit | 392ff3b5296e0cee8d5db386d2ef72e2719890c8 (patch) | |
tree | 5d533efc93f3d87e62beb4eea7a5d0eff66dc338 /include/media/MediaMetadataRetrieverInterface.h | |
parent | 0b98c944c6bac98d95c93916cde31f841b44d9aa (diff) | |
download | frameworks_base-392ff3b5296e0cee8d5db386d2ef72e2719890c8.zip frameworks_base-392ff3b5296e0cee8d5db386d2ef72e2719890c8.tar.gz frameworks_base-392ff3b5296e0cee8d5db386d2ef72e2719890c8.tar.bz2 |
Add basic metadata retrieval support for midi, ogg, etc.
Bug 2050320
Diffstat (limited to 'include/media/MediaMetadataRetrieverInterface.h')
-rw-r--r-- | include/media/MediaMetadataRetrieverInterface.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/media/MediaMetadataRetrieverInterface.h b/include/media/MediaMetadataRetrieverInterface.h index b178836..e228357 100644 --- a/include/media/MediaMetadataRetrieverInterface.h +++ b/include/media/MediaMetadataRetrieverInterface.h @@ -44,6 +44,28 @@ class MediaMetadataRetrieverInterface : public MediaMetadataRetrieverBase { public: virtual ~MediaMetadataRetrieverInterface() {} + + // @param mode The intended mode of operations: + // can be any of the following: + // METADATA_MODE_NOOP: Experimental - just add and remove data source. + // METADATA_MODE_FRAME_CAPTURE_ONLY: For capture frame/thumbnail only. + // METADATA_MODE_METADATA_RETRIEVAL_ONLY: For meta data retrieval only. + // METADATA_MODE_FRAME_CAPTURE_AND_METADATA_RETRIEVAL: For both frame + // capture and meta data retrieval. + virtual status_t setMode(int mode) { + if (mode < METADATA_MODE_NOOP || + mode > METADATA_MODE_FRAME_CAPTURE_AND_METADATA_RETRIEVAL) { + return BAD_VALUE; + } + return NO_ERROR; + } + + virtual status_t getMode(int* mode) const { *mode = mMode; return NO_ERROR; } + virtual VideoFrame* captureFrame() { return NULL; } + virtual MediaAlbumArt* extractAlbumArt() { return NULL; } + virtual const char* extractMetadata(int keyCode) { return NULL; } + + uint32_t mMode; }; }; // namespace android |