[RFC/WIP,v2,5/6] venus: hfi: Add hfi property for enable grid
Commit Message
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(+)
@@ -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);
}
@@ -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;