public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* How to express planar formats with mediabus format code?
@ 2013-08-04  2:32 Su Jiaquan
  2013-08-04 21:02 ` Guennadi Liakhovetski
  0 siblings, 1 reply; 12+ messages in thread
From: Su Jiaquan @ 2013-08-04  2:32 UTC (permalink / raw)
  To: linux-media, jqsu, xzhao10

Hi,

I know the title looks crazy, but here is our problem:

In our SoC based ISP, the hardware can be divide to several blocks.
Some blocks can do color space conversion(raw to YUV
interleave/planar), others can do the pixel
re-order(interleave/planar/semi-planar conversion, UV planar switch).
We use one subdev to describe each of them, then came the problem: How
can we express the planar formats with mediabus format code?

I understand at beginning, media-bus was designed to describe the data
link between camera sensor and camera controller, where sensor is
described in subdev. So interleave formats looks good enough at that
time. But now as Media-controller is introduced, subdev can describe a
much wider range of hardware, which is not limited to camera sensor.
So now planar formats are possible to be passed between subdevs.

I think the problem we meet can be very common for SoC based ISP
solutions, what do you think about it?

there are many possible solution for it:

1> change the definition of v4l2_subdev_format::format, use v4l2_format;

2> extend the mediabus format code, add planar format code;

3> use a extra bit to tell the meaning of v4l2_mbus_framefmt::code, is
it in mediabus-format or in fourcc

 Do you have any suggestions?

 Thanks a lot!

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2013-09-01 14:31 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-04  2:32 How to express planar formats with mediabus format code? Su Jiaquan
2013-08-04 21:02 ` Guennadi Liakhovetski
2013-08-06  9:18   ` Su Jiaquan
2013-08-06  9:40     ` Guennadi Liakhovetski
2013-08-08 21:12     ` Laurent Pinchart
2013-08-09 17:06       ` Su Jiaquan
2013-08-15  8:27         ` Su Jiaquan
2013-08-20 12:53           ` Laurent Pinchart
2013-08-21 10:14             ` Su Jiaquan
2013-08-22 11:29               ` Laurent Pinchart
2013-08-30  7:57                 ` Su Jiaquan
2013-09-01 14:38                   ` Sakari Ailus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox