Promotion of video-userspace.lnx.2.1-00055.

CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1084745   I4432dfab17af80f489270b60e7579ab367da98a9   mm-video-v4l2: vidc: venc: Mark P and B frames

Change-Id: I51a88e56cf8a20a46466a97ddd3ec4cc963b8387
CRs-Fixed: 1084745
This commit is contained in:
Linux Build Service Account 2017-01-02 08:44:18 -07:00
commit e5aec16e13

View file

@ -372,6 +372,12 @@ void* venc_dev::async_venc_message_thread (void *input)
if (v4l2_buf.flags & V4L2_BUF_FLAG_KEYFRAME) if (v4l2_buf.flags & V4L2_BUF_FLAG_KEYFRAME)
venc_msg.buf.flags |= OMX_BUFFERFLAG_SYNCFRAME; 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) if (v4l2_buf.flags & V4L2_QCOM_BUF_FLAG_CODECCONFIG)
venc_msg.buf.flags |= OMX_BUFFERFLAG_CODECCONFIG; venc_msg.buf.flags |= OMX_BUFFERFLAG_CODECCONFIG;