diff options
author | James Dong <jdong@google.com> | 2010-10-22 17:28:15 -0700 |
---|---|---|
committer | James Dong <jdong@google.com> | 2010-10-25 18:21:55 -0700 |
commit | 170a929648b9f5c6efbf6dcbec4f1bc73593cbde (patch) | |
tree | 59a0780c0c0ac6dbbdb1cf0ce03be8d6dc40c33b /include | |
parent | fc6d54ea074aa1f6a177b031e6b2814368ac7583 (diff) | |
download | frameworks_base-170a929648b9f5c6efbf6dcbec4f1bc73593cbde.zip frameworks_base-170a929648b9f5c6efbf6dcbec4f1bc73593cbde.tar.gz frameworks_base-170a929648b9f5c6efbf6dcbec4f1bc73593cbde.tar.bz2 |
Add two creation flags to OMXCodec::Create()
o This allows to force to use software codecs or hardware codecs
o If request cannot be fullfilled, Create() returns NULL.
Change-Id: I02b56a9229abb56d49703fe80ac18571d33f3748
Diffstat (limited to 'include')
-rw-r--r-- | include/media/stagefright/OMXCodec.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/media/stagefright/OMXCodec.h b/include/media/stagefright/OMXCodec.h index 6fef2e7..0f4fbfb 100644 --- a/include/media/stagefright/OMXCodec.h +++ b/include/media/stagefright/OMXCodec.h @@ -39,6 +39,11 @@ struct OMXCodec : public MediaSource, // The client wants to access the output buffer's video // data for example for thumbnail extraction. kClientNeedsFramebuffer = 4, + + // Request for software or hardware codecs. If request + // can not be fullfilled, Create() returns NULL. + kSoftwareCodecsOnly = 8, + kHardwareCodecsOnly = 16, }; static sp<MediaSource> Create( const sp<IOMX> &omx, |