[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1538222432-25894-5-git-send-email-sgorle@codeaurora.org>
Date: Sat, 29 Sep 2018 17:30:31 +0530
From: Srinu Gorle <sgorle@...eaurora.org>
To: stanimir.varbanov@...aro.org, hverkuil@...all.nl,
mchehab@...nel.org, linux-media@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-msm@...r.kernel.org,
sgorle@...eaurora.org
Cc: acourbot@...omium.org, vgarodia@...eaurora.org
Subject: [PATCH v1 4/5] media: venus: video decoder drop frames handling
- when drop frame flag received from venus h/w, reset buffer
parameters and update v4l2 buffer flags as error buffer.
Signed-off-by: Srinu Gorle <sgorle@...eaurora.org>
---
drivers/media/platform/qcom/venus/vdec.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/media/platform/qcom/venus/vdec.c b/drivers/media/platform/qcom/venus/vdec.c
index 0035cf2..311f209 100644
--- a/drivers/media/platform/qcom/venus/vdec.c
+++ b/drivers/media/platform/qcom/venus/vdec.c
@@ -991,6 +991,12 @@ static void vdec_buf_done(struct venus_inst *inst, unsigned int buf_type,
if (hfi_flags & HFI_BUFFERFLAG_DATACORRUPT)
state = VB2_BUF_STATE_ERROR;
+ if (hfi_flags & HFI_BUFFERFLAG_DROP_FRAME) {
+ vb->planes[0].bytesused = 0;
+ vb->timestamp = 0;
+ state = VB2_BUF_STATE_ERROR;
+ }
+
v4l2_m2m_buf_done(vbuf, state);
}
--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
Powered by blists - more mailing lists