summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/ACodec.cpp
diff options
context:
space:
mode:
authorManikanta Kanamarlapudi <kmanikan@codeaurora.org>2015-09-28 16:03:17 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2015-10-07 10:40:35 -0700
commita9961f6786d048c247cd41363e2b784e1a5aeab4 (patch)
treeeedcde0f3c776a49b360ed4c674db5ec3ac633bf /media/libstagefright/ACodec.cpp
parentb3f0834aa448d6b4bf8dbddaff4fbcefa3ede422 (diff)
downloadframeworks_av-a9961f6786d048c247cd41363e2b784e1a5aeab4.zip
frameworks_av-a9961f6786d048c247cd41363e2b784e1a5aeab4.tar.gz
frameworks_av-a9961f6786d048c247cd41363e2b784e1a5aeab4.tar.bz2
libstagefright: Set Intra period
set intra period for HEVC encoder Change-Id: Id2b3e71b746eaaed76118126d44ad83458d68520
Diffstat (limited to 'media/libstagefright/ACodec.cpp')
-rw-r--r--media/libstagefright/ACodec.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/media/libstagefright/ACodec.cpp b/media/libstagefright/ACodec.cpp
index 43006f3..78ab3db 100644
--- a/media/libstagefright/ACodec.cpp
+++ b/media/libstagefright/ACodec.cpp
@@ -54,6 +54,8 @@
#include "include/avc_utils.h"
+#include <stagefright/AVExtensions.h>
+
namespace android {
// OMX errors are directly mapped into status_t range if
@@ -3510,6 +3512,8 @@ status_t ACodec::setupHEVCEncoderParameters(const sp<AMessage> &msg) {
frameRate = (float)tmp;
}
+ AVUtils::get()->setIntraPeriod(setPFramesSpacing(iFrameInterval, frameRate), 0, mOMX, mNode);
+
OMX_VIDEO_PARAM_HEVCTYPE hevcType;
InitOMXParams(&hevcType);
hevcType.nPortIndex = kPortIndexOutput;