diff options
author | Andreas Huber <andih@google.com> | 2010-03-16 11:44:07 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2010-03-16 11:44:07 -0700 |
commit | 2a3847ee1cbdaa8a65eee397a0173bb02211c459 (patch) | |
tree | 66bbd3c45c87e2e5f4aa473d37d06fff4fb3ffa9 /include/media/stagefright/OMXCodec.h | |
parent | 16aec9057ca888cad57404747a842b5ded3fe29f (diff) | |
download | frameworks_av-2a3847ee1cbdaa8a65eee397a0173bb02211c459.zip frameworks_av-2a3847ee1cbdaa8a65eee397a0173bb02211c459.tar.gz frameworks_av-2a3847ee1cbdaa8a65eee397a0173bb02211c459.tar.bz2 |
Properly handle errors during the codec configuration phase, attempt to revert to next available (likely software-) codec if configuration fails.
Change-Id: Id1c699711e30139c9cc29df972254b5ba026e6fb
related-to-bug: 2517098
Diffstat (limited to 'include/media/stagefright/OMXCodec.h')
-rw-r--r-- | include/media/stagefright/OMXCodec.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/media/stagefright/OMXCodec.h b/include/media/stagefright/OMXCodec.h index 24c2f46..d58c711 100644 --- a/include/media/stagefright/OMXCodec.h +++ b/include/media/stagefright/OMXCodec.h @@ -167,7 +167,7 @@ private: status_t setupMPEG4EncoderParameters(); status_t setupAVCEncoderParameters(); - void setVideoOutputFormat( + status_t setVideoOutputFormat( const char *mime, OMX_U32 width, OMX_U32 height); void setImageOutputFormat( @@ -220,6 +220,8 @@ private: void dumpPortStatus(OMX_U32 portIndex); + status_t configureCodec(const sp<MetaData> &meta); + static uint32_t getComponentQuirks(const char *componentName); static void findMatchingCodecs( |