diff options
| author | 2009-11-15 12:06:20 -0800 | |
|---|---|---|
| committer | 2009-11-15 12:06:23 -0800 | |
| commit | 478de466ce0504b9af639c3338b883893670a8e8 (patch) | |
| tree | 61aba455baf06a4821a65b82d1115929619b49bd /include/media/MediaMetadataRetrieverInterface.h | |
| parent | 2b63ff51d5202eb2b458e937d4b65b326238733e (diff) | |
| parent | 9db3d07b9620b4269ab33f78604a36327e536ce1 (diff) | |
merge from eclair
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 b178836d85a7..e2283578d5a6 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 |