summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLajos Molnar <lajos@google.com>2014-10-01 21:36:51 -0700
committerLajos Molnar <lajos@google.com>2014-10-02 09:13:13 -0700
commita147b4f91143d9f2fb608e22f9fca14bbd029573 (patch)
treee8a2933109c5955906b7e5f1e61ca1a0093c5633 /include
parentc416becd966945fca5fa7fb45ac51f84d1d8cd20 (diff)
downloadframeworks_av-a147b4f91143d9f2fb608e22f9fca14bbd029573.zip
frameworks_av-a147b4f91143d9f2fb608e22f9fca14bbd029573.tar.gz
frameworks_av-a147b4f91143d9f2fb608e22f9fca14bbd029573.tar.bz2
mediarecorder: set level if setting default profile
Bug: 17676461 Change-Id: If01ccd09935945d330de0842be95c3544951b6b9
Diffstat (limited to 'include')
-rw-r--r--include/media/stagefright/ACodec.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/media/stagefright/ACodec.h b/include/media/stagefright/ACodec.h
index df0dc58..28e5c56 100644
--- a/include/media/stagefright/ACodec.h
+++ b/include/media/stagefright/ACodec.h
@@ -77,8 +77,14 @@ struct ACodec : public AHierarchicalStateMachine, public CodecBase {
};
static bool isFlexibleColorFormat(
- const sp<IOMX> &omx, IOMX::node_id node,
- uint32_t colorFormat, OMX_U32 *flexibleEquivalent);
+ const sp<IOMX> &omx, IOMX::node_id node,
+ uint32_t colorFormat, 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.
+ static int /* OMX_VIDEO_AVCLEVELTYPE */ getAVCLevelFor(
+ int width, int height, int rate, int bitrate,
+ OMX_VIDEO_AVCPROFILETYPE profile = OMX_VIDEO_AVCProfileBaseline);
protected:
virtual ~ACodec();