summaryrefslogtreecommitdiffstats
path: root/include/media/MediaMetadataRetrieverInterface.h
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2009-09-06 14:29:45 -0700
committerJames Dong <jdong@google.com>2009-09-08 11:04:53 -0700
commit148c1a2a96774517407717b61e5bc9cb08be8806 (patch)
treec6c4a5aff75009eddb3f89dfe7ba5f4ed9f75d40 /include/media/MediaMetadataRetrieverInterface.h
parente07db23c4935e47ecedfec7537ba95163e5836e5 (diff)
downloadframeworks_av-148c1a2a96774517407717b61e5bc9cb08be8806.zip
frameworks_av-148c1a2a96774517407717b61e5bc9cb08be8806.tar.gz
frameworks_av-148c1a2a96774517407717b61e5bc9cb08be8806.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.h22
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