linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jacob Chen <jacobchen110@gmail.com>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: "Shunqian Zheng" <zhengsq@rock-chips.com>,
	"open list:ARM/Rockchip SoC..."
	<linux-rockchip@lists.infradead.org>,
	"Linux Media Mailing List" <linux-media@vger.kernel.org>,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	"Mauro Carvalho Chehab" <mchehab@kernel.org>,
	"Sakari Ailus" <sakari.ailus@linux.intel.com>,
	"Hans Verkuil" <hans.verkuil@cisco.com>,
	"Tomasz Figa" <tfiga@chromium.org>,
	"Laurent Pinchart" <laurent.pinchart@ideasonboard.com>,
	钟以崇 <zyc@rock-chips.com>, "Eddie Cai" <eddie.cai.linux@gmail.com>,
	"Jeffy Chen" <jeffy.chen@rock-chips.com>,
	"Allon Huang" <allon.huang@rock-chips.com>,
	devicetree@vger.kernel.org, "Heiko Stuebner" <heiko@sntech.de>,
	robh+dt@kernel.org, "Joao Pinto" <Joao.Pinto@synopsys.com>,
	"Luis Oliveira" <Luis.Oliveira@synopsys.com>,
	"Jose Abreu" <Jose.Abreu@synopsys.com>,
	"Jacob Chen" <jacob-chen@rock-chips.com>
Subject: Re: [PATCH v5 02/16] media: doc: add document for rkisp1 meta buffer format
Date: Thu, 8 Mar 2018 17:59:44 +0800	[thread overview]
Message-ID: <CAFLEztSPXP6DsyZAiwS8j4-g4Qxjuku_9wfrOYs1o-0w=s5Wpg@mail.gmail.com> (raw)
In-Reply-To: <CAFLEztR1XyFMS_Gf-qT7vs9OHipeBfuXQ7mXJoCBDyBSvTWUag@mail.gmail.com>

Hi Hans,

2018-02-06 22:27 GMT+08:00 Hans Verkuil <hverkuil@xs4all.nl>:
> On 12/29/17 08:52, Shunqian Zheng wrote:
>> From: Jacob Chen <jacob2.chen@rock-chips.com>
>>
>> This commit add docuemnt for rkisp1 meta buffer format
>>
>> Signed-off-by: Jacob Chen <jacob-chen@rock-chips.com>
>> ---
>>  Documentation/media/uapi/v4l/meta-formats.rst          |  2 ++
>>  .../media/uapi/v4l/pixfmt-meta-rkisp1-params.rst       | 17 +++++++++++++++++
>>  .../media/uapi/v4l/pixfmt-meta-rkisp1-stat.rst         | 18 ++++++++++++++++++
>>  3 files changed, 37 insertions(+)
>>  create mode 100644 Documentation/media/uapi/v4l/pixfmt-meta-rkisp1-params.rst
>>  create mode 100644 Documentation/media/uapi/v4l/pixfmt-meta-rkisp1-stat.rst
>>
>> diff --git a/Documentation/media/uapi/v4l/meta-formats.rst b/Documentation/media/uapi/v4l/meta-formats.rst
>> index 01e24e3..1b82814 100644
>> --- a/Documentation/media/uapi/v4l/meta-formats.rst
>> +++ b/Documentation/media/uapi/v4l/meta-formats.rst
>> @@ -14,3 +14,5 @@ These formats are used for the :ref:`metadata` interface only.
>>
>>      pixfmt-meta-vsp1-hgo
>>      pixfmt-meta-vsp1-hgt
>> +    pixfmt-meta-rkisp1-params
>> +    pixfmt-meta-rkisp1-stat
>> diff --git a/Documentation/media/uapi/v4l/pixfmt-meta-rkisp1-params.rst b/Documentation/media/uapi/v4l/pixfmt-meta-rkisp1-params.rst
>> new file mode 100644
>> index 0000000..ed344d4
>> --- /dev/null
>> +++ b/Documentation/media/uapi/v4l/pixfmt-meta-rkisp1-params.rst
>> @@ -0,0 +1,17 @@
>> +.. -*- coding: utf-8; mode: rst -*-
>> +
>> +.. _v4l2-meta-fmt-rkisp1-params:
>> +
>> +*******************************
>> +V4L2_META_FMT_RK_ISP1_PARAMS
>> +*******************************
>> +
>> +Rockchip ISP1 Parameters Data
>> +
>> +Description
>> +===========
>> +
>> +This format describes input parameters for the Rockchip ISP1.
>> +
>> +The data use c-struct :c:type:`rkisp1_isp_params_cfg`, which is defined in
>> +the ``linux/rkisp1-config.h`` header file, See it for details.
>
> One more question: does the ISP produce a reasonable picture if it doesn't
> receive these params? If not (i.e. you always need to provide params), then
> I think you should provide a default rkisp1_isp_params_cfg struct that
> can be used as a template for application writers.
>
> Perhaps it can be part of the driver as the initial params config.
>
> I think even if the ISP does work without params it is still worthwhile
> doing this. The params are complex and having an example on how to initialize
> it would be helpful.
>

The ISP don't need a default rkisp1_isp_params_cfg to produce picture,
those params just effect image quality and stats data.

The params are not very complex.
They consist of multiple modules and each of modules can be
enabled/disable/updated individually.

> Regards,
>
>         Hans
>
>> diff --git a/Documentation/media/uapi/v4l/pixfmt-meta-rkisp1-stat.rst b/Documentation/media/uapi/v4l/pixfmt-meta-rkisp1-stat.rst
>> new file mode 100644
>> index 0000000..5ecc403
>> --- /dev/null
>> +++ b/Documentation/media/uapi/v4l/pixfmt-meta-rkisp1-stat.rst
>> @@ -0,0 +1,18 @@
>> +.. -*- coding: utf-8; mode: rst -*-
>> +
>> +.. _v4l2-meta-fmt-rkisp1-stat:
>> +
>> +*******************************
>> +V4L2_META_FMT_RK_ISP1_STAT_3A
>> +*******************************
>> +
>> +Rockchip ISP1 Statistics Data
>> +
>> +Description
>> +===========
>> +
>> +This format describes image color statistics information generated by the Rockchip
>> +ISP1.
>> +
>> +The data use c-struct :c:type:`rkisp1_stat_buffer`, which is defined in
>> +the ``linux/cifisp_stat.h`` header file, See it for details.
>>
>

  parent reply	other threads:[~2018-03-08  9:59 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-29  7:52 [PATCH v5 00/16] Rockchip ISP1 Driver Shunqian Zheng
2017-12-29  7:52 ` [PATCH v5 01/16] media: videodev2.h, v4l2-ioctl: add rkisp1 meta buffer format Shunqian Zheng
2018-02-06 12:54   ` Hans Verkuil
2017-12-29  7:52 ` [PATCH v5 02/16] media: doc: add document for " Shunqian Zheng
2018-02-06 12:55   ` Hans Verkuil
2018-02-06 14:27   ` Hans Verkuil
     [not found]     ` <CAFLEztR1XyFMS_Gf-qT7vs9OHipeBfuXQ7mXJoCBDyBSvTWUag@mail.gmail.com>
2018-03-08  9:59       ` Jacob Chen [this message]
2017-12-29  7:52 ` [PATCH v5 03/16] media: rkisp1: Add user space ABI definitions Shunqian Zheng
2018-02-06 13:14   ` Hans Verkuil
2018-02-07 12:38     ` Robin Murphy
2018-02-07 12:00   ` Hans Verkuil
2018-02-07 16:31   ` Hans Verkuil
2018-03-08 10:00     ` Jacob Chen
2018-03-09 13:14       ` Hans Verkuil
2017-12-29  7:52 ` [PATCH v5 04/16] media: rkisp1: add Rockchip MIPI Synopsys DPHY driver Shunqian Zheng
2018-02-06 13:19   ` Hans Verkuil
2018-02-06 13:21   ` Hans Verkuil
2018-02-08  9:54     ` Jacob Chen
2017-12-29  7:52 ` [PATCH v5 05/16] media: rkisp1: add Rockchip ISP1 subdev driver Shunqian Zheng
2017-12-29 12:45   ` Philippe Ombredanne
2018-02-06 13:27   ` Hans Verkuil
2017-12-29  7:52 ` [PATCH v5 06/16] media: rkisp1: add ISP1 statistics driver Shunqian Zheng
2018-02-06 13:31   ` Hans Verkuil
2017-12-29  7:52 ` [PATCH v5 07/16] media: rkisp1: add ISP1 params driver Shunqian Zheng
2018-02-06 13:39   ` Hans Verkuil
2017-12-29  7:52 ` [PATCH v5 08/16] media: rkisp1: add capture device driver Shunqian Zheng
2018-02-06 13:53   ` Hans Verkuil
2017-12-29  7:52 ` [PATCH v5 09/16] media: rkisp1: add rockchip isp1 core driver Shunqian Zheng
2018-02-06 13:56   ` Hans Verkuil
2017-12-29  7:52 ` [PATCH v5 10/16] dt-bindings: Document the Rockchip ISP1 bindings Shunqian Zheng
2017-12-29  7:52 ` [PATCH v5 11/16] dt-bindings: Document the Rockchip MIPI RX D-PHY bindings Shunqian Zheng
2017-12-29  7:52 ` [PATCH v5 12/16] ARM: dts: rockchip: add isp node for rk3288 Shunqian Zheng
2017-12-29  7:52 ` [PATCH v5 13/16] ARM: dts: rockchip: add rx0 mipi-phy " Shunqian Zheng
2017-12-29  7:52 ` [PATCH v5 14/16] arm64: dts: rockchip: add isp0 node for rk3399 Shunqian Zheng
2017-12-29  7:52 ` [PATCH v5 15/16] arm64: dts: rockchip: add rx0 mipi-phy " Shunqian Zheng
2017-12-29  7:52 ` [PATCH v5 16/16] MAINTAINERS: add entry for Rockchip ISP1 driver Shunqian Zheng
2018-02-06 14:10 ` [PATCH v5 00/16] Rockchip ISP1 Driver Hans Verkuil

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='CAFLEztSPXP6DsyZAiwS8j4-g4Qxjuku_9wfrOYs1o-0w=s5Wpg@mail.gmail.com' \
    --to=jacobchen110@gmail.com \
    --cc=Joao.Pinto@synopsys.com \
    --cc=Jose.Abreu@synopsys.com \
    --cc=Luis.Oliveira@synopsys.com \
    --cc=allon.huang@rock-chips.com \
    --cc=devicetree@vger.kernel.org \
    --cc=eddie.cai.linux@gmail.com \
    --cc=hans.verkuil@cisco.com \
    --cc=heiko@sntech.de \
    --cc=hverkuil@xs4all.nl \
    --cc=jacob-chen@rock-chips.com \
    --cc=jeffy.chen@rock-chips.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=mchehab@kernel.org \
    --cc=robh+dt@kernel.org \
    --cc=sakari.ailus@linux.intel.com \
    --cc=tfiga@chromium.org \
    --cc=zhengsq@rock-chips.com \
    --cc=zyc@rock-chips.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;
as well as URLs for NNTP newsgroup(s).