aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/platform/amphion/vpu.h
diff options
context:
space:
mode:
authorMing Qian <ming.qian@nxp.com>2024-05-06 17:49:18 +0900
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2024-06-10 10:24:30 +0200
commit1034ead1a7333e65e516c583f757717f461eba43 (patch)
treef25cf3ae260c7eb1dbf3d389bdbc9e041f26e887 /drivers/media/platform/amphion/vpu.h
parent065927b51eb1f042c3e026cebfd55e72ccc26093 (diff)
media: amphion: Report the average QP of current encoded frame
Report the average QP value of the current encoded frame via the V4L2_CID_MPEG_VIDEO_AVERAGE_QP control, the value applies to the last dequeued capture buffer. Signed-off-by: Ming Qian <ming.qian@nxp.com> Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'drivers/media/platform/amphion/vpu.h')
-rw-r--r--drivers/media/platform/amphion/vpu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/amphion/vpu.h b/drivers/media/platform/amphion/vpu.h
index 0246cf0ac3a8..22f0da26ccec 100644
--- a/drivers/media/platform/amphion/vpu.h
+++ b/drivers/media/platform/amphion/vpu.h
@@ -306,6 +306,7 @@ struct vpu_vb2_buffer {
dma_addr_t chroma_v;
unsigned int state;
u32 tag;
+ u32 average_qp;
};
void vpu_writel(struct vpu_dev *vpu, u32 reg, u32 val);