diff options
author | Stanimir Varbanov | 2022-09-02 12:01:58 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab | 2022-09-24 11:21:44 +0200 |
commit | f5218c71098dcf51772b6509184c02ce1cef37b8 (patch) | |
tree | d8846aa9dbf8833a9352b0c2d23932436e16c78d /drivers | |
parent | 61a70c9702da10296cebe4ab7d654da4bcb893b5 (diff) |
media: venus: venc: Set HDR10 PQ SEI property only for MAIN10 profile
The HDR10 PQ SEI should be set only when the codec is HEVC and
the profile is MAIN10, otherwise some artefacts could be produced
on the encoded bitstream.
Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/platform/qcom/venus/venc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/platform/qcom/venus/venc.c b/drivers/media/platform/qcom/venus/venc.c index cc08a3c8cd39..cdb12546c4fa 100644 --- a/drivers/media/platform/qcom/venus/venc.c +++ b/drivers/media/platform/qcom/venus/venc.c @@ -698,7 +698,8 @@ static int venc_set_properties(struct venus_inst *inst) return ret; } - if (inst->fmt_cap->pixfmt == V4L2_PIX_FMT_HEVC) { + if (inst->fmt_cap->pixfmt == V4L2_PIX_FMT_HEVC && + ctr->profile.hevc == V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10) { struct hfi_hdr10_pq_sei hdr10; unsigned int c; |