mm-video: vidc: Enable frame by frame mode
Enabling the previously disable frame by frame mode. As a part of this
change, pass in the CODEC_CONFIG flag to driver if SPS or PPS is given
to component
Change-Id: Iaf5e169e13bd3c20c615ad6c271c1ac44bf1ff41
diff --git a/mm-video/vidc/vdec/src/omx_vdec_msm8974.cpp b/mm-video/vidc/vdec/src/omx_vdec_msm8974.cpp
index 8f55cc5..775b324 100755
--- a/mm-video/vidc/vdec/src/omx_vdec_msm8974.cpp
+++ b/mm-video/vidc/vdec/src/omx_vdec_msm8974.cpp
@@ -3112,11 +3112,7 @@
else if (portFmt->nFramePackingFormat ==
OMX_QCOM_FramePacking_OnlyOneCompleteFrame)
{
- DEBUG_PRINT_ERROR("setparameter: cannot set to frame by frame mode (disabled temporarily)");
- eRet = OMX_ErrorUnsupportedSetting;
-#if 0
arbitrary_bytes = false;
-#endif
}
else
{
@@ -5567,6 +5563,8 @@
//assumption is that timestamp is in milliseconds
buf.timestamp.tv_sec = frameinfo.timestamp / 1000000;
buf.timestamp.tv_usec = (frameinfo.timestamp % 1000000);
+ buf.flags |= (buffer->nFlags & OMX_BUFFERFLAG_CODECCONFIG) ? V4L2_QCOM_BUF_FLAG_CODECCONFIG: 0;
+
rc = ioctl(drv_ctx.video_driver_fd, VIDIOC_QBUF, &buf);
if(!streaming[OUTPUT_PORT])
{