From: Wangao Wang <wangao.wang@oss.qualcomm.com>
To: Vikash Garodia <vikash.garodia@oss.qualcomm.com>,
Dikshita Agarwal <dikshita.agarwal@oss.qualcomm.com>,
Abhinav Kumar <abhinav.kumar@linux.dev>,
Bryan O'Donoghue <bod@kernel.org>,
Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: wangao.wang@oss.qualcomm.com, quic_qiweil@quicinc.com,
Renjiang Han <renjiang.han@oss.qualcomm.com>,
linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 4/6] media: qcom: iris: Add hierarchical coding support for encoder
Date: Fri, 6 Feb 2026 10:42:04 +0800 [thread overview]
Message-ID: <a0436a80-9080-4a6d-9fad-d319efdf498f@oss.qualcomm.com> (raw)
In-Reply-To: <22af9d61-fdbe-4347-a1b0-1f8696a77f38@oss.qualcomm.com>
On 2026/1/29 19:37, Vikash Garodia wrote:
>> +
>> + if (inst->codec == V4L2_PIX_FMT_HEVC)
>> + max_bitrate = CABAC_MAX_BITRATE;
>> +
>> + if (entropy_mode == V4L2_MPEG_VIDEO_H264_ENTROPY_MODE_CABAC)
>> + max_bitrate = CABAC_MAX_BITRATE;
>> + else
>> + max_bitrate = CAVLC_MAX_BITRATE;
>
> check this logic, for hevc, its reassiging
>
This is a bug and will be fixed in v5.
>> +int iris_set_layer_count_gen1(struct iris_inst *inst, enum
>> platform_inst_fw_cap_type cap_id)
>> +{
>> + const struct iris_hfi_command_ops *hfi_ops = inst->core->hfi_ops;
>> + struct vb2_queue *sq = v4l2_m2m_get_src_vq(inst->m2m_ctx);
>> + struct vb2_queue *dq = v4l2_m2m_get_dst_vq(inst->m2m_ctx);
>> + u32 layer_enable = inst->fw_caps[LAYER_ENABLE].value;
>> + u32 layer_count = inst->fw_caps[cap_id].value;
>> + u32 hfi_id, ret;
>> +
>> + if (!layer_enable || !layer_count)
>> + return -EINVAL;
>> +
>> + inst->hfi_layer_count = layer_count;
>
> does it include base layer as well ? It does for gen2, so keep the
> uniformity.
>
This API is designed for Gen1. The description below is taken from the
HFI definition.
The parameter ( N enh layers ) conveyed through this property specifies
the number of enhancement layers to be encoded.
N: base layer + N enhancement layers
Layer ids: 0 for base layer, 1 for 1st enh layer and so on.
>> + {
>> + .cap_id = LAYER_TYPE_H264,
>> + .min = V4L2_MPEG_VIDEO_H264_HIERARCHICAL_CODING_B,
>> + .max = V4L2_MPEG_VIDEO_H264_HIERARCHICAL_CODING_P,
>> + .step_or_mask =
>> BIT(V4L2_MPEG_VIDEO_H264_HIERARCHICAL_CODING_B) |
>> + BIT(V4L2_MPEG_VIDEO_H264_HIERARCHICAL_CODING_P),
>> + .value = V4L2_MPEG_VIDEO_H264_HIERARCHICAL_CODING_P,
>> + .hfi_id = HFI_PROP_LAYER_ENCODING_TYPE,
>> + .flags = CAP_FLAG_OUTPUT_PORT | CAP_FLAG_MENU,
>
> no setter for h264 ?
>
will be added in v5.
>> + {
>> + .cap_id = LAYER5_BITRATE_HEVC,
>> + .min = 1,
>> + .max = BITRATE_MAX,
>> + .step_or_mask = 1,
>> + .value = BITRATE_DEFAULT,
>> + .hfi_id = HFI_PROP_BITRATE_LAYER5,
>
> HFI_PROP_BITRATE_LAYER6 ?
>
This is a bug and will be fixed in v5.
--
Best Regards,
Wangao
next prev parent reply other threads:[~2026-02-06 2:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-29 7:48 [PATCH v4 0/6] media: qcom: iris: encoder feature enhancements batch2 Wangao Wang
2026-01-29 7:48 ` [PATCH v4 1/6] media: qcom: iris: Add intra refresh support for gen1 encoder Wangao Wang
2026-01-29 7:48 ` [PATCH v4 2/6] media: qcom: iris: Add Long-Term Reference support for encoder Wangao Wang
2026-01-29 7:48 ` [PATCH v4 3/6] media: qcom: iris: Add B frames " Wangao Wang
2026-01-29 7:48 ` [PATCH v4 4/6] media: qcom: iris: Add hierarchical coding " Wangao Wang
2026-01-29 11:37 ` Vikash Garodia
2026-02-06 2:42 ` Wangao Wang [this message]
2026-01-29 7:48 ` [PATCH v4 5/6] media: qcom: iris: Optimize iris_hfi_gen1_packet_session_set_property Wangao Wang
2026-01-29 7:48 ` [PATCH v4 6/6] media: qcom: iris: Simplify COMV size calculation Wangao Wang
2026-01-31 8:41 ` [PATCH v4 0/6] media: qcom: iris: encoder feature enhancements batch2 Dmitry Baryshkov
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=a0436a80-9080-4a6d-9fad-d319efdf498f@oss.qualcomm.com \
--to=wangao.wang@oss.qualcomm.com \
--cc=abhinav.kumar@linux.dev \
--cc=bod@kernel.org \
--cc=dikshita.agarwal@oss.qualcomm.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=quic_qiweil@quicinc.com \
--cc=renjiang.han@oss.qualcomm.com \
--cc=vikash.garodia@oss.qualcomm.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox