diff options
author | James Dong <jdong@google.com> | 2010-12-02 17:42:08 -0800 |
---|---|---|
committer | James Dong <jdong@google.com> | 2010-12-03 15:32:47 -0800 |
commit | 16afe2fb439cab6125bb46a07a8078d4ce1c1ea5 (patch) | |
tree | 146e5ad9abfa370d35b2a8912a4887356764b1e2 /cmds | |
parent | 1cc73922339a110d7ffc47e8842f958492dd85bf (diff) | |
download | frameworks_av-16afe2fb439cab6125bb46a07a8078d4ce1c1ea5.zip frameworks_av-16afe2fb439cab6125bb46a07a8078d4ce1c1ea5.tar.gz frameworks_av-16afe2fb439cab6125bb46a07a8078d4ce1c1ea5.tar.bz2 |
Prepare for publishing MediaMetadataRetriever as public API
step one:
o replaced captureFrame with getFrameAtTime
o removed getMode
bug - 2433195
Change-Id: I38a8cecef29014692f0b08b8818326e3ebb40a12
Diffstat (limited to 'cmds')
-rw-r--r-- | cmds/stagefright/stagefright.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cmds/stagefright/stagefright.cpp b/cmds/stagefright/stagefright.cpp index 7e7f6d1..07e506a 100644 --- a/cmds/stagefright/stagefright.cpp +++ b/cmds/stagefright/stagefright.cpp @@ -681,10 +681,12 @@ int main(int argc, char **argv) { METADATA_MODE_FRAME_CAPTURE_AND_METADATA_RETRIEVAL), (status_t)OK); - sp<IMemory> mem = retriever->captureFrame(); + sp<IMemory> mem = + retriever->getFrameAtTime(-1, + MediaSource::ReadOptions::SEEK_PREVIOUS_SYNC); if (mem != NULL) { - printf("captureFrame(%s) => OK\n", filename); + printf("getFrameAtTime(%s) => OK\n", filename); VideoFrame *frame = (VideoFrame *)mem->pointer(); @@ -704,7 +706,7 @@ int main(int argc, char **argv) { if (mem != NULL) { printf("extractAlbumArt(%s) => OK\n", filename); } else { - printf("both captureFrame and extractAlbumArt " + printf("both getFrameAtTime and extractAlbumArt " "failed on file '%s'.\n", filename); } } |