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 | d332a72e8f71caea0d3dc898db6a9d7a929fad32 (patch) | |
tree | d8250911f351adab3d7d1826c0b737fe4fe6c6a6 /include | |
parent | 1104688c53b1815b543dbe1ef1ca56c7a77f241c (diff) | |
download | frameworks_av-d332a72e8f71caea0d3dc898db6a9d7a929fad32.zip frameworks_av-d332a72e8f71caea0d3dc898db6a9d7a929fad32.tar.gz frameworks_av-d332a72e8f71caea0d3dc898db6a9d7a929fad32.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, |