From: Stanimir Varbanov <stanimir.varbanov@linaro.org>
To: linux-media@vger.kernel.org
Cc: Hans Verkuil <hverkuil-cisco@xs4all.nl>,
Nicolas Dufresne <nicolas@ndufresne.ca>,
Stanimir Varbanov <stanimir.varbanov@linaro.org>
Subject: [RFC/WIP v2 5/6] venus: hfi: Add hfi property for enable grid
Date: Thu, 3 Mar 2022 16:10:09 +0200 [thread overview]
Message-ID: <20220303141010.573408-6-stanimir.varbanov@linaro.org> (raw)
In-Reply-To: <20220303141010.573408-1-stanimir.varbanov@linaro.org>
Add HFI property to enable grid encoding.
Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
---
drivers/media/platform/qcom/venus/hfi_cmds.c | 7 +++++++
drivers/media/platform/qcom/venus/hfi_helper.h | 5 +++++
2 files changed, 12 insertions(+)
diff --git a/drivers/media/platform/qcom/venus/hfi_cmds.c b/drivers/media/platform/qcom/venus/hfi_cmds.c
index 4ecd444050bb..4e9c1ad64976 100644
--- a/drivers/media/platform/qcom/venus/hfi_cmds.c
+++ b/drivers/media/platform/qcom/venus/hfi_cmds.c
@@ -1308,6 +1308,13 @@ pkt_session_set_property_6xx(struct hfi_session_set_property_pkt *pkt,
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*wr);
break;
}
+ case HFI_PROPERTY_CONFIG_HEIC_GRID_ENABLE: {
+ struct hfi_heic_grid_enable *in = pdata, *grid = prop_data;
+
+ grid->grid_enable = in->grid_enable;
+ pkt->shdr.hdr.size += sizeof(u32) + sizeof(*grid);
+ break;
+ }
default:
return pkt_session_set_property_4xx(pkt, cookie, ptype, pdata);
}
diff --git a/drivers/media/platform/qcom/venus/hfi_helper.h b/drivers/media/platform/qcom/venus/hfi_helper.h
index 2daa88e3df9f..fec4d2bd6a74 100644
--- a/drivers/media/platform/qcom/venus/hfi_helper.h
+++ b/drivers/media/platform/qcom/venus/hfi_helper.h
@@ -535,6 +535,7 @@
#define HFI_PROPERTY_CONFIG_VENC_LTRPERIOD 0x200600c
#define HFI_PROPERTY_CONFIG_VENC_PERF_MODE 0x200600e
#define HFI_PROPERTY_CONFIG_HEIC_FRAME_QUALITY 0x2006014
+#define HFI_PROPERTY_CONFIG_HEIC_GRID_ENABLE 0x2006015
/*
* HFI_PROPERTY_PARAM_VPE_COMMON_START
@@ -794,6 +795,10 @@ struct hfi_quantization {
u32 layer_id;
};
+struct hfi_heic_grid_enable {
+ u32 grid_enable;
+};
+
struct hfi_initial_quantization {
u32 qp_i;
u32 qp_p;
--
2.25.1
next prev parent reply other threads:[~2022-03-03 14:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-03 14:10 [RFC/WIP v2 0/6] HEIC image encoder Stanimir Varbanov
2022-03-03 14:10 ` [RFC/WIP v2 1/6] media: Add HEIF HEVC compressed pixel format Stanimir Varbanov
2022-03-03 14:10 ` [RFC/WIP v2 2/6] v4l: Add HEIF control class and control IDs Stanimir Varbanov
2022-03-03 14:10 ` [RFC/WIP v2 3/6] docs: dev-encoder: Add additional steps for image encoding Stanimir Varbanov
2022-03-03 14:10 ` [RFC/WIP v2 4/6] venus: helpers: Add a new helper for buffer processing Stanimir Varbanov
2022-03-03 14:10 ` Stanimir Varbanov [this message]
2022-03-03 14:10 ` [RFC/WIP v2 6/6] venus: Add HEIC image encoder Stanimir Varbanov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220303141010.573408-6-stanimir.varbanov@linaro.org \
--to=stanimir.varbanov@linaro.org \
--cc=hverkuil-cisco@xs4all.nl \
--cc=linux-media@vger.kernel.org \
--cc=nicolas@ndufresne.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.