Re: [PATCH 0/2] media: imx: add capture support for RGB565_2X8 on parallel bus

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

 



Hi Steve,

thanks for reviewing!

On Sat, 2018-05-05 at 15:22 -0700, Steve Longerbeam wrote:
> I reviewed this patch series, and while I don't have any
> objections to the code-level changes, but my question
> is more specifically about how the IPU/CSI deals with
> receiving RGB565 over a parallel bus.
> 
> My understanding was that if the CSI receives RGB565
> over a parallel 8-bit sensor bus, the CSI_SENS_DATA_FORMAT
> register field is programmed to RGB565, and the CSI outputs
> ARGB8888. Then IDMAC component packing can be setup to
> write pixels to memory as RGB565. Does that not work?

This was our first thought too. As far as we can see in our
experiments, that mode doesn't actually work for the parallel bus.
Philipp's interpretation is that this mode is only intended for use
with the MIPI-CSI2 input.

> Assuming that above does not work (and indeed parallel RGB565
> must be handled as pass-through), then I think support for capturing
> parallel RGB555 as pass-through should be added to this series as
> well.

I don't have a sensor which produces RGB555, so it wouldn't be able to
test it.

> Also what about RGB565 over a 16-bit parallel sensor bus? The
> reference manual hints that perhaps this could be treated as
> non-passthrough ("on the fly processing"), e.g. could be passed
> on to the IC pre-processor:
> 
>      16 bit RGB565
>          This is the only mode that allows on the fly processing of 16 bit data. In this mode the
>          CSI is programmed to receive 16 bit generic data. In this mode the interface is
>          restricted to be in "non-gated mode" and the CSI#_DATA_SOURCE bit has to be set
>          If the external device is 24bit - the user can connect a 16 bit sample of it (RGB565
>          format). The IPU has to be configured in the same way as the case of
>          CSI#_SENS_DATA_FORMAT=RGB565

I've not looked at this case, as I don't have a sensor with that format
either. :/

Thanks,
Jan
-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



[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