From: "D. Manresa" <dmanresa@gmail.com>
To: Jakob Berg Jespersen <dev@berg.pm>
Cc: "Sakari Ailus" <sakari.ailus@linux.intel.com>,
"Mauro Carvalho Chehab" <mchehab@kernel.org>,
"Kévin L'hôpital" <kevin.lhopital@bootlin.com>,
"Paul Kocialkowski" <paul.kocialkowski@bootlin.com>,
"Daniel Scally" <dan.scally@ideasonboard.com>,
"Jean-Michel Hautbois" <jeanmichel.hautbois@yoseli.org>,
"Hans de Goede" <johannes.goede@oss.qualcomm.com>,
linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org, "D . Manresa" <dmanresa@gmail.com>
Subject: Re: [PATCH v2 1/2] media: i2c: ov8865: fix horizontal flip control polarity
Date: Sat, 29 Aug 2026 01:18:02 +0200 [thread overview]
Message-ID: <20260828231803.29776-1-dmanresa@gmail.com> (raw)
In-Reply-To: <20260729-sp7plus-ov-flips-v2-1-91884b81a8f5@berg.pm>
On Wed, 29 Jul 2026, Jakob Berg Jespersen wrote:
> The sensor's native readout is horizontally mirrored and the FORMAT2
> FLIP_HORZ bits (reg 0x3821) un-mirror it. The driver sets those bits for
> V4L2_CID_HFLIP=1, so the control is inverted: HFLIP=1 yields the
> un-mirrored image and HFLIP=0 the mirrored one, the opposite of what is
> requested.
Tested on the rear camera of a Surface Pro 7+ (OV8865 behind an IPU6,
patch applied on v6.19 sources, module built out of tree and loaded on a
linux-surface 6.19.8 kernel). Verified from raw captures at 3264x2448 and
1632x1224:
- HFLIP now toggles the horizontal mirror as requested (verified against a
fixed scene landmark and by column-profile reversal of the raw frames);
- the Bayer order stays BGGR, matching the reported SBGGR10, in every flip
state I could produce (HFLIP/VFLIP 0/0, 1/0, 0/1, 1/1, both readout
sizes) - so no phase compensation is needed on this sensor and existing
colour tunings are unaffected;
- with the fix, libcamera's HFLIP=1 + VFLIP=1 correction for the 180
degree SSDB mount now yields a true 180 degree rotation: the raw frame in
that state is an exact point rotation of the HFLIP=0/VFLIP=0 frame,
where before the series the same request produced the horizontally
mirrored image.
Tested-by: D. Manresa <dmanresa@gmail.com>
next prev parent reply other threads:[~2026-08-28 23:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-29 15:41 [PATCH v2 0/2] media: i2c: Surface Pro 7+ camera flip fixes Jakob Berg Jespersen
2026-07-29 15:41 ` [PATCH v2 1/2] media: i2c: ov8865: fix horizontal flip control polarity Jakob Berg Jespersen
2026-08-28 23:18 ` D. Manresa [this message]
2026-07-29 15:41 ` [PATCH v2 2/2] media: i2c: ov5693: fix horizontal flip polarity and Bayer phase Jakob Berg Jespersen
2026-08-28 23:18 ` D. Manresa
2026-08-29 13:21 ` Jakob Berg Jespersen
2026-09-03 12:57 ` D. Manresa
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=20260828231803.29776-1-dmanresa@gmail.com \
--to=dmanresa@gmail.com \
--cc=dan.scally@ideasonboard.com \
--cc=dev@berg.pm \
--cc=jeanmichel.hautbois@yoseli.org \
--cc=johannes.goede@oss.qualcomm.com \
--cc=kevin.lhopital@bootlin.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=paul.kocialkowski@bootlin.com \
--cc=sakari.ailus@linux.intel.com \
--cc=stable@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.