mirror of
https://github.com/followmsi/android_hardware_qcom_media.git
synced 2024-10-31 22:47:35 +00:00
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:
parent
9df0885078
commit
19bbf9fd27
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)
|
||||
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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue