Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cf46c469 authored by Qiwei Liu's avatar Qiwei Liu
Browse files

msm_vidc: support eof flag for fbd



Currently eof flag from firmware fbd is not handled,
modify to propagate eof flag from firmware to v4l2_buf,
this is needed to support eof flag for only last slice
of frame in slice delivery mode.

CRs-Fixed: 2141262
Change-Id: If8fa888af2af9f895f9d1f3546d74b11b917d5fd
Signed-off-by: default avatarQiwei Liu <qiweil@codeaurora.org>
parent fc1a551e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2077,6 +2077,8 @@ static void handle_fbd(enum hal_command_response cmd, void *data)
			vb->v4l2_buf.flags |= V4L2_QCOM_BUF_FLAG_READONLY;
		if (fill_buf_done->flags1 & HAL_BUFFERFLAG_EOS)
			vb->v4l2_buf.flags |= V4L2_QCOM_BUF_FLAG_EOS;
		if (fill_buf_done->flags1 & HAL_BUFFERFLAG_ENDOFFRAME)
			vb->v4l2_buf.flags |= V4L2_QCOM_BUF_FLAG_ENDOFFRAME;
		if (fill_buf_done->flags1 & HAL_BUFFERFLAG_CODECCONFIG)
			vb->v4l2_buf.flags &= ~V4L2_QCOM_BUF_FLAG_CODECCONFIG;
		if (fill_buf_done->flags1 & HAL_BUFFERFLAG_SYNCFRAME)
+1 −0
Original line number Diff line number Diff line
@@ -772,6 +772,7 @@ struct v4l2_buffer {
#define V4L2_MSM_BUF_FLAG_YUV_601_709_CLAMP	0x10000000
#define V4L2_MSM_BUF_FLAG_MBAFF			0x20000000
#define V4L2_MSM_BUF_FLAG_DEFER			0x40000000
#define V4L2_QCOM_BUF_FLAG_ENDOFFRAME		0x80000000

/**
 * struct v4l2_exportbuffer - export of video buffer as DMABUF file descriptor