From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Sakari Ailus <sakari.ailus@iki.fi>
Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>,
linux-media@vger.kernel.org, riverful.kim@samsung.com,
sw0312.kim@samsung.com, g.liakhovetski@gmx.de,
kyungmin.park@samsung.com
Subject: Re: [PATCH RFC 1/4] V4L: Add V4L2_CID_FRAMESIZE image source class control
Date: Fri, 24 Aug 2012 00:41:22 +0200 [thread overview]
Message-ID: <1479692.F6ROfrmgsS@avalon> (raw)
In-Reply-To: <5036754C.4040501@iki.fi>
Hi Sylwester,
On Thursday 23 August 2012 21:24:12 Sakari Ailus wrote:
> Sylwester Nawrocki wrote:
> >> On Thu, Aug 23, 2012 at 11:51:26AM +0200, Sylwester Nawrocki wrote:
> >>> The V4L2_CID_FRAMESIZE control determines maximum number
> >>> of media bus samples transmitted within a single data frame.
> >>> It is useful for determining size of data buffer at the
> >>> receiver side.
> >>>
> >>> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
> >>> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> >>> ---
> >>>
> >>> Documentation/DocBook/media/v4l/controls.xml | 12 ++++++++++++
> >>> drivers/media/v4l2-core/v4l2-ctrls.c | 2 ++
> >>> include/linux/videodev2.h | 1 +
> >>> 3 files changed, 15 insertions(+)
> >>>
> >>> diff --git a/Documentation/DocBook/media/v4l/controls.xml
> >>> b/Documentation/DocBook/media/v4l/controls.xml index 93b9c68..ad5d4e5
> >>> 100644
> >>> --- a/Documentation/DocBook/media/v4l/controls.xml
> >>> +++ b/Documentation/DocBook/media/v4l/controls.xml
> >>> @@ -4184,6 +4184,18 @@ interface and may change in the future.</para>
> >>>
> >>> conversion.
> >>> </entry>
> >>>
> >>> </row>
> >>>
> >>> + <row>
> >>> + <entry
> >>> spanname="id"><constant>V4L2_CID_FRAMESIZE</constant></entry>
> >>> + <entry>integer</entry>
> >>> + </row>
> >>> + <row>
> >>> + <entry spanname="descr">Maximum size of a data frame in media bus
> >>> + sample units. This control determines maximum number of samples
> >>> + transmitted per single compressed data frame. For generic raw
> >>> + pixel formats the value of this control is undefined. This is
> >>> + a read-only control.
> >>> + </entry>
> >>> + </row>
> >>>
> >>> <row><entry></entry></row>
> >>>
> >>> </tbody>
> >>>
> >>> </tgroup>
> >>>
> >>> diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c
> >>> b/drivers/media/v4l2-core/v4l2-ctrls.c index b6a2ee7..0043fd2 100644
> >>> --- a/drivers/media/v4l2-core/v4l2-ctrls.c
> >>> +++ b/drivers/media/v4l2-core/v4l2-ctrls.c
> >>> @@ -727,6 +727,7 @@ const char *v4l2_ctrl_get_name(u32 id)
> >>>
> >>> case V4L2_CID_VBLANK: return "Vertical Blanking";
> >>> case V4L2_CID_HBLANK: return "Horizontal Blanking";
> >>> case V4L2_CID_ANALOGUE_GAIN: return "Analogue Gain";
> >>>
> >>> + case V4L2_CID_FRAMESIZE: return "Maximum Frame Size";
> >>
> >> I would put this to the image processing class, as the control isn't
> >> related to image capture. Jpeg encoding (or image compression in
> >> general) after all is related to image processing rather than capturing
> >> it.
> >
> > All right, might make more sense that way. Let me move it to the image
> > processing class then. It probably also makes sense to name it
> > V4L2_CID_FRAME_SIZE, rather than V4L2_CID_FRAMESIZE.
>
> Hmm. While we're at it, as the size is maximum --- it can be lower ---
> how about V4L2_CID_MAX_FRAME_SIZE or V4L2_CID_MAX_FRAME_SAMPLES, as the
> unit is samples?
>
> Does sample in this context mean pixels for uncompressed formats and
> bytes (octets) for compressed formats? It's important to define it as
> we're also using the term "sample" to refer to data units transferred
> over a parallel bus per a clock cycle.
I agree with Sakari here, I find the documentation quite vague, I wouldn't
understand what the control is meant for from the documentation only.
> On serial busses the former meaning is more obvious.
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2012-08-23 22:41 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-23 9:51 [PATCH RFC 0/4] V4L2: Vendor specific media bus formats/ frame size control Sylwester Nawrocki
2012-08-23 9:51 ` [PATCH RFC 1/4] V4L: Add V4L2_CID_FRAMESIZE image source class control Sylwester Nawrocki
2012-08-23 12:13 ` Sakari Ailus
2012-08-23 14:32 ` Sylwester Nawrocki
2012-08-23 18:24 ` Sakari Ailus
2012-08-23 22:41 ` Laurent Pinchart [this message]
2012-08-24 8:15 ` Sylwester Nawrocki
2012-08-24 22:51 ` Sakari Ailus
2012-08-26 19:22 ` Sylwester Nawrocki
2012-08-27 19:28 ` Sakari Ailus
2012-09-11 19:21 ` Sylwester Nawrocki
2012-09-12 6:48 ` Hans Verkuil
2012-08-23 9:51 ` [PATCH RFC 2/4] V4L: Add V4L2_MBUS_FMT_S5C_UYVY_JPEG_1X8 media bus format Sylwester Nawrocki
2012-08-23 9:51 ` [PATCH RFC 3/4] V4L: Add V4L2_PIX_FMT_S5C_UYVY_JPG fourcc definition Sylwester Nawrocki
2012-08-23 9:51 ` [PATCH RFC 4/4] s5p-fimc: Add support for V4L2_PIX_FMT_S5C_UYVY_JPG fourcc Sylwester Nawrocki
2012-08-27 15:48 ` [PATCH RFC 0/4] V4L2: Vendor specific media bus formats/ frame size control Nicolas THERY
2012-08-29 18:41 ` sakari.ailus
2012-08-30 8:03 ` Nicolas THERY
2012-08-29 21:51 ` Sylwester Nawrocki
2012-08-30 8:06 ` Nicolas THERY
2012-09-14 15:00 ` how to crop/scale in mono-subdev camera sensor driver? Nicolas THERY
2012-09-14 21:02 ` Sylwester Nawrocki
2012-09-15 12:21 ` Sakari Ailus
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=1479692.F6ROfrmgsS@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=g.liakhovetski@gmx.de \
--cc=kyungmin.park@samsung.com \
--cc=linux-media@vger.kernel.org \
--cc=riverful.kim@samsung.com \
--cc=s.nawrocki@samsung.com \
--cc=sakari.ailus@iki.fi \
--cc=sw0312.kim@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;
as well as URLs for NNTP newsgroup(s).