* media: i2c: mt9p031: HFLIP/VFLIP changes format
@ 2013-06-21 15:48 Florian Neuhaus
2013-06-21 23:32 ` Laurent Pinchart
0 siblings, 1 reply; 2+ messages in thread
From: Florian Neuhaus @ 2013-06-21 15:48 UTC (permalink / raw)
To: Laurent Pinchart; +Cc: linux-media@vger.kernel.org
Hi Laurent
In the mt9p031 driver, the picture can be flipped either horizontally
or vertically by using the according V4L2 controls. This can be done
at runtime.
I have noticed, that flipping the picture will change the bayer-pattern.
So if I flip horizontally and vertically to get a 180 degree rotation
the bayer pattern changes from
V4L2_MBUS_FMT_SGRBG12_1X12
to
V4L2_MBUS_FMT_SGBRG12_1X12
I'm not sure how the patch should look like...
The format code could be adapted accordingly to the flipping, but
how does the userspace notices this change? The user could issue
another get_format. But what about the omap3isp-pipe?
Concrete:
What should I do to configure a streaming pipe with a flipped image?
Flip the image on the v4l-subdev and then build the pipe?
Is there a chance to propagate the format change through the pipe
during streaming?
Thanks for your clarification!
Regards,
Florian
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: media: i2c: mt9p031: HFLIP/VFLIP changes format
2013-06-21 15:48 media: i2c: mt9p031: HFLIP/VFLIP changes format Florian Neuhaus
@ 2013-06-21 23:32 ` Laurent Pinchart
0 siblings, 0 replies; 2+ messages in thread
From: Laurent Pinchart @ 2013-06-21 23:32 UTC (permalink / raw)
To: Florian Neuhaus; +Cc: linux-media@vger.kernel.org
Hi Florian,
On Friday 21 June 2013 15:48:25 Florian Neuhaus wrote:
> Hi Laurent
>
> In the mt9p031 driver, the picture can be flipped either horizontally or
> vertically by using the according V4L2 controls. This can be done at
> runtime.
> I have noticed, that flipping the picture will change the bayer-pattern.
> So if I flip horizontally and vertically to get a 180 degree rotation
> the bayer pattern changes from
> V4L2_MBUS_FMT_SGRBG12_1X12
> to
> V4L2_MBUS_FMT_SGBRG12_1X12
> I'm not sure how the patch should look like...
> The format code could be adapted accordingly to the flipping, but
> how does the userspace notices this change? The user could issue
> another get_format. But what about the omap3isp-pipe?
> Concrete:
> What should I do to configure a streaming pipe with a flipped image?
> Flip the image on the v4l-subdev and then build the pipe?
> Is there a chance to propagate the format change through the pipe
> during streaming?
There are two ways to handle this situation. You could modify the output
format, which would then bring format propagation issues, or you could offset
the sensor crop rectangle by one pixel. The second option is probably easier
to implement as it's local to the sensor, without any need to propagate format
changes.
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-06-21 23:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-21 15:48 media: i2c: mt9p031: HFLIP/VFLIP changes format Florian Neuhaus
2013-06-21 23:32 ` Laurent Pinchart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox