diff options
author | Lajos Molnar <lajos@google.com> | 2014-08-07 14:16:23 -0700 |
---|---|---|
committer | Lajos Molnar <lajos@google.com> | 2014-08-07 17:49:38 -0700 |
commit | 229d242665c612fd97431d1e7ac004823b47f181 (patch) | |
tree | 956d290a0474e80a9d58572f8e5b92ad373558b1 /include | |
parent | 1381d4b5c0385aec3741073e5998773b064c1fb0 (diff) | |
download | frameworks_av-229d242665c612fd97431d1e7ac004823b47f181.zip frameworks_av-229d242665c612fd97431d1e7ac004823b47f181.tar.gz frameworks_av-229d242665c612fd97431d1e7ac004823b47f181.tar.bz2 |
stagefright: support flexible YUV format
- Report flexible format for standard OMX formats that are flexible.
- Accept flexible format when specifying video port formats.
Bug: 10706245
Change-Id: I9e82bc895bb0d5d606eb05fdf83bec766eaa2046
Diffstat (limited to 'include')
-rw-r--r-- | include/media/stagefright/ACodec.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/media/stagefright/ACodec.h b/include/media/stagefright/ACodec.h index a68adea..3dd34ce 100644 --- a/include/media/stagefright/ACodec.h +++ b/include/media/stagefright/ACodec.h @@ -76,6 +76,10 @@ struct ACodec : public AHierarchicalStateMachine, public CodecBase { DISALLOW_EVIL_CONSTRUCTORS(PortDescription); }; + static bool isFlexibleColorFormat( + const sp<IOMX> &omx, IOMX::node_id node, + uint32_t colorFormat, OMX_U32 *flexibleEquivalent); + protected: virtual ~ACodec(); @@ -307,7 +311,10 @@ private: OMX_ERRORTYPE error = OMX_ErrorUndefined, status_t internalError = UNKNOWN_ERROR); - static void describeDefaultColorFormat(DescribeColorFormatParams &describeParams); + static bool describeDefaultColorFormat(DescribeColorFormatParams &describeParams); + static bool describeColorFormat( + const sp<IOMX> &omx, IOMX::node_id node, + DescribeColorFormatParams &describeParams); status_t requestIDRFrame(); status_t setParameters(const sp<AMessage> ¶ms); |