mirror of
https://github.com/followmsi/android_hardware_qcom_media.git
synced 2024-10-31 22:47:35 +00:00
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:
commit
e5aec16e13
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue