From: Luca Ceresoli <luca@lucaceresoli.net>
To: linux-media@vger.kernel.org
Cc: Luca Ceresoli <luca@lucaceresoli.net>,
Sakari Ailus <sakari.ailus@linux.intel.com>,
Leon Luo <leonl@leopardimaging.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
linux-kernel@vger.kernel.org
Subject: [PATCH v6 0/2] media: imx274: cleanups, improvements and SELECTION API support
Date: Wed, 25 Jul 2018 18:24:53 +0200 [thread overview]
Message-ID: <20180725162455.31381-1-luca@lucaceresoli.net> (raw)
Hi,
this patchset introduces cropping support for the Sony IMX274 sensor
using the SELECTION API.
Changes since v5 are only minor fixes and cleanups.
Patch 1 introduces a helper to greatly simplify the code to write a
multibyte register.
Patch 2 implements the set_selection pad operation for cropping
(V4L2_SEL_TGT_CROP) and binning (V4L2_SEL_TGT_COMPOSE).
Usage examples:
* Capture the entire 4K area, downscaled to 1080p with 2:1 binning:
media-ctl -V '"IMX274":0[crop:(0,0)/3840x2160]'
media-ctl -V '"IMX274":0[compose:(0,0)/1920x1080]'
* Capture the central 1080p area (no binning):
media-ctl -V '"IMX274":0[crop:(960,540)/1920x1080]'
(this also sets the compose and fmt rects to 1920x1080)
Regards,
Luca
Luca Ceresoli (2):
media: imx274: use regmap_bulk_write to write multybyte registers
media: imx274: add cropping support via SELECTION API
drivers/media/i2c/imx274.c | 566 +++++++++++++++++++++++++++----------
1 file changed, 412 insertions(+), 154 deletions(-)
--
2.17.1
next reply other threads:[~2018-07-25 16:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-25 16:24 Luca Ceresoli [this message]
2018-07-25 16:24 ` [PATCH v6 1/2] media: imx274: use regmap_bulk_write to write multybyte registers Luca Ceresoli
2018-08-28 9:03 ` Philippe De Muyter
2018-08-28 9:14 ` Luca Ceresoli
2018-07-25 16:24 ` [PATCH v6 2/2] media: imx274: add cropping support via SELECTION API Luca Ceresoli
2018-07-27 10:50 ` 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=20180725162455.31381-1-luca@lucaceresoli.net \
--to=luca@lucaceresoli.net \
--cc=leonl@leopardimaging.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=sakari.ailus@linux.intel.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®