How to express planar formats with mediabus format code?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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!
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux