mm-video-v4l2: vidc: venc: Mark P and B frames

- P and B type frames need to be tagged
   in 'nFlags'.

Change-Id: I4432dfab17af80f489270b60e7579ab367da98a9
This commit is contained in:
Emilian Peev 2016-11-15 14:17:11 +02:00 committed by Gerrit - the friendly Code Review server
parent 9df0885078
commit 19bbf9fd27

View file

@ -372,6 +372,12 @@ void* venc_dev::async_venc_message_thread (void *input)
if (v4l2_buf.flags & V4L2_BUF_FLAG_KEYFRAME)
venc_msg.buf.flags |= OMX_BUFFERFLAG_SYNCFRAME;
if (v4l2_buf.flags & V4L2_BUF_FLAG_PFRAME) {
venc_msg.buf.flags |= OMX_VIDEO_PictureTypeP;
} else if (v4l2_buf.flags & V4L2_BUF_FLAG_BFRAME) {
venc_msg.buf.flags |= OMX_VIDEO_PictureTypeB;
}
if (v4l2_buf.flags & V4L2_QCOM_BUF_FLAG_CODECCONFIG)
venc_msg.buf.flags |= OMX_BUFFERFLAG_CODECCONFIG;