From: Hans Verkuil <hverkuil@xs4all.nl>
To: Smitha T Murthy <smitha.t@samsung.com>,
linux-arm-kernel@lists.infradead.org,
linux-media@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: kyungmin.park@samsung.com, kamil@wypas.org, jtp.park@samsung.com,
a.hajda@samsung.com, mchehab@kernel.org,
pankaj.dubey@samsung.com, krzk@kernel.org,
m.szyprowski@samsung.com, s.nawrocki@samsung.com
Subject: Re: [Patch v8 11/12] [media] s5p-mfc: Add support for HEVC encoder
Date: Fri, 2 Feb 2018 15:09:19 +0100 [thread overview]
Message-ID: <37e3531b-b677-9d3c-e954-25d8f989e774@xs4all.nl> (raw)
In-Reply-To: <1517574348-22111-12-git-send-email-smitha.t@samsung.com>
On 02/02/18 13:25, Smitha T Murthy wrote:
> Add HEVC encoder support and necessary registers, V4L2 CIDs,
> and hevc encoder parameters
>
> Signed-off-by: Smitha T Murthy <smitha.t@samsung.com>
> Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Not quite, one last comment:
> ---
> drivers/media/platform/s5p-mfc/regs-mfc-v10.h | 28 +-
> drivers/media/platform/s5p-mfc/s5p_mfc.c | 1 +
> drivers/media/platform/s5p-mfc/s5p_mfc_cmd_v6.c | 3 +
> drivers/media/platform/s5p-mfc/s5p_mfc_common.h | 54 ++-
> drivers/media/platform/s5p-mfc/s5p_mfc_enc.c | 536 ++++++++++++++++++++++++
> drivers/media/platform/s5p-mfc/s5p_mfc_opr.h | 8 +
> drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c | 182 ++++++++
> drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.h | 8 +
> 8 files changed, 818 insertions(+), 2 deletions(-)
>
<snip>
> static inline int vui_sar_idc(enum v4l2_mpeg_video_h264_vui_sar_idc sar)
> {
> static unsigned int t[V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_EXTENDED + 1] = {
> @@ -1635,6 +2024,153 @@ static int s5p_mfc_enc_s_ctrl(struct v4l2_ctrl *ctrl)
> case V4L2_CID_MPEG_VIDEO_VPX_PROFILE:
> p->codec.vp8.profile = ctrl->val;
> break;
> + case V4L2_CID_MPEG_VIDEO_HEVC_I_FRAME_QP:
> + p->codec.hevc.rc_frame_qp = ctrl->val;
> + break;
> + case V4L2_CID_MPEG_VIDEO_HEVC_P_FRAME_QP:
> + p->codec.hevc.rc_p_frame_qp = ctrl->val;
> + break;
> + case V4L2_CID_MPEG_VIDEO_HEVC_B_FRAME_QP:
> + p->codec.hevc.rc_b_frame_qp = ctrl->val;
> + break;
> + case V4L2_CID_MPEG_VIDEO_HEVC_FRAME_RATE_RESOLUTION:
> + p->codec.hevc.rc_framerate = ctrl->val;
> + break;
> + case V4L2_CID_MPEG_VIDEO_HEVC_MIN_QP:
> + p->codec.hevc.rc_min_qp = ctrl->val;
> + break;
> + case V4L2_CID_MPEG_VIDEO_HEVC_MAX_QP:
> + p->codec.hevc.rc_max_qp = ctrl->val;
> + break;
When you change this, you should call __v4l2_ctrl_modify_range to modify the
range of the controls that depend on this.
You can make a patch '13/12' for this or post a v9 for this patch. I would like to
see this implemented. It's one of those things that never gets implemented if you
don't address this now.
It shouldn't be difficult to do.
Regards,
Hans
next prev parent reply other threads:[~2018-02-02 14:09 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20180202124952epcas1p4735e31b16819111d6d906711e0935231@epcas1p4.samsung.com>
2018-02-02 12:25 ` [Patch v8 00/12] Add MFC v10.10 support Smitha T Murthy
[not found] ` <CGME20180202124954epcas2p479ba74d07199308f7b3bcc90f87354d5@epcas2p4.samsung.com>
2018-02-02 12:25 ` [Patch v8 01/12] [media] s5p-mfc: Rename IS_MFCV8 macro Smitha T Murthy
[not found] ` <CGME20180202124957epcas1p113a37a3e452574ca8e5233caf04e18a1@epcas1p1.samsung.com>
2018-02-02 12:25 ` [Patch v8 02/12] [media] s5p-mfc: Adding initial support for MFC v10.10 Smitha T Murthy
[not found] ` <CGME20180202124959epcas1p4549075c36dc15a2313daaf3da730ecbc@epcas1p4.samsung.com>
2018-02-02 12:25 ` [Patch v8 03/12] [media] s5p-mfc: Use min scratch buffer size as provided by F/W Smitha T Murthy
[not found] ` <CGME20180202125001epcas2p26be1dff64a11627b9dbafc3be1a939d8@epcas2p2.samsung.com>
2018-02-02 12:25 ` [Patch v8 04/12] [media] s5p-mfc: Support MFCv10.10 buffer requirements Smitha T Murthy
[not found] ` <CGME20180202125003epcas1p46bd17cbd13b0431d7680e72f4c2be057@epcas1p4.samsung.com>
2018-02-02 12:25 ` [Patch v8 05/12] [media] videodev2.h: Add v4l2 definition for HEVC Smitha T Murthy
[not found] ` <CGME20180202125006epcas1p13a8617e0ba18fde93d1eca712a398a2e@epcas1p1.samsung.com>
2018-02-02 12:25 ` [Patch v8 06/12] [media] v4l2-ioctl: add HEVC format description Smitha T Murthy
[not found] ` <CGME20180202125008epcas1p1a99fa5b76765a1328147ffda49e56879@epcas1p1.samsung.com>
2018-02-02 12:25 ` [Patch v8 07/12] Documentation: v4l: Documentation for HEVC v4l2 definition Smitha T Murthy
[not found] ` <CGME20180202125011epcas2p4d3ebb811e9bb44f761732ea97fc888e2@epcas2p4.samsung.com>
2018-02-02 12:25 ` [Patch v8 08/12] [media] s5p-mfc: Add support for HEVC decoder Smitha T Murthy
[not found] ` <CGME20180202125013epcas1p239ac7641020120b789fcc976ca37d1a1@epcas1p2.samsung.com>
2018-02-02 12:25 ` [Patch v8 09/12] [media] s5p-mfc: Add VP9 decoder support Smitha T Murthy
[not found] ` <CGME20180202125016epcas1p2520700ff715e471eb949509d80f00211@epcas1p2.samsung.com>
2018-02-02 12:25 ` [Patch v8 10/12] [media] v4l2: Add v4l2 control IDs for HEVC encoder Smitha T Murthy
[not found] ` <CGME20180202125018epcas1p31771ade936e0290e579b8e0805f3f0a1@epcas1p3.samsung.com>
2018-02-02 12:25 ` [Patch v8 11/12] [media] s5p-mfc: Add support " Smitha T Murthy
2018-02-02 14:09 ` Hans Verkuil [this message]
[not found] ` <CGME20180202125020epcas2p2052bfe072a33069cffd3d9bfe7856ae5@epcas2p2.samsung.com>
2018-02-02 12:25 ` [Patch v8 12/12] Documention: v4l: Documentation for HEVC CIDs Smitha T Murthy
2018-02-02 14:03 ` Hans Verkuil
2018-02-27 15:17 ` Nicolas Dufresne
2018-02-27 15:18 ` Nicolas Dufresne
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=37e3531b-b677-9d3c-e954-25d8f989e774@xs4all.nl \
--to=hverkuil@xs4all.nl \
--cc=a.hajda@samsung.com \
--cc=jtp.park@samsung.com \
--cc=kamil@wypas.org \
--cc=krzk@kernel.org \
--cc=kyungmin.park@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=mchehab@kernel.org \
--cc=pankaj.dubey@samsung.com \
--cc=s.nawrocki@samsung.com \
--cc=smitha.t@samsung.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
all inboxes | Powered by JetHome®