summaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorLajos Molnar <lajos@google.com>2015-01-30 14:07:25 -0800
committerLajos Molnar <lajos@google.com>2015-02-04 00:02:58 -0800
commit0d09182a1dde960f7acda1c28469e5deead1b996 (patch)
treeccbf3a9429264d06cb957f2664ae47fef80e3646 /include/media
parentefbb61950db36a5eb789be83f077246172507c67 (diff)
downloadframeworks_av-0d09182a1dde960f7acda1c28469e5deead1b996.zip
frameworks_av-0d09182a1dde960f7acda1c28469e5deead1b996.tar.gz
frameworks_av-0d09182a1dde960f7acda1c28469e5deead1b996.tar.bz2
stagefright: add support for native flex-YUV formats
Bug: 17906609 Change-Id: I14116796eaa94aa8ae62dcc29f67cb7d2c060d34
Diffstat (limited to 'include/media')
-rw-r--r--include/media/stagefright/ACodec.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/media/stagefright/ACodec.h b/include/media/stagefright/ACodec.h
index 8509d55..595ace8 100644
--- a/include/media/stagefright/ACodec.h
+++ b/include/media/stagefright/ACodec.h
@@ -78,7 +78,7 @@ struct ACodec : public AHierarchicalStateMachine, public CodecBase {
static bool isFlexibleColorFormat(
const sp<IOMX> &omx, IOMX::node_id node,
- uint32_t colorFormat, OMX_U32 *flexibleEquivalent);
+ uint32_t colorFormat, bool usingNativeBuffers, OMX_U32 *flexibleEquivalent);
// Returns 0 if configuration is not supported. NOTE: this is treated by
// some OMX components as auto level, and by others as invalid level.
@@ -251,12 +251,13 @@ private:
status_t setVideoPortFormatType(
OMX_U32 portIndex,
OMX_VIDEO_CODINGTYPE compressionFormat,
- OMX_COLOR_FORMATTYPE colorFormat);
+ OMX_COLOR_FORMATTYPE colorFormat,
+ bool usingNativeBuffers = false);
- status_t setSupportedOutputFormat();
+ status_t setSupportedOutputFormat(bool getLegacyFlexibleFormat);
status_t setupVideoDecoder(
- const char *mime, const sp<AMessage> &msg);
+ const char *mime, const sp<AMessage> &msg, bool usingNativeBuffers);
status_t setupVideoEncoder(
const char *mime, const sp<AMessage> &msg);