media: i2c: mt9p031: HFLIP/VFLIP changes format

Florian Neuhaus
2013-06-21T15:48:42Z

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