From 96076964863ee6887f0bed9d0f11f424b48ab9b9 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Thu, 1 Nov 2012 15:48:44 -0700 Subject: Make video encoders' bitrate mode (constant, variable, ...) configurable through the desired output format. Configure the video encoder to use constant bitrate mode for WFD. Change-Id: Id7bd619598153c13448a9c5acd69d80f8a01f333 related-to-bug: 7459597 --- include/media/stagefright/ACodec.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/media/stagefright/ACodec.h b/include/media/stagefright/ACodec.h index d27f463..cba8a6b 100644 --- a/include/media/stagefright/ACodec.h +++ b/include/media/stagefright/ACodec.h @@ -242,7 +242,10 @@ private: status_t setupAVCEncoderParameters(const sp &msg); status_t verifySupportForProfileAndLevel(int32_t profile, int32_t level); - status_t configureBitrate(int32_t bitrate); + + status_t configureBitrate( + int32_t bitrate, OMX_VIDEO_CONTROLRATETYPE bitrateMode); + status_t setupErrorCorrectionParameters(); status_t initNativeWindow(); -- cgit v1.1