* sensor driver - v4l2 - MEDIA_BUS_FMT
@ 2018-04-11 10:03 asadpt iqroot
2018-04-11 10:32 ` Sakari Ailus
0 siblings, 1 reply; 2+ messages in thread
From: asadpt iqroot @ 2018-04-11 10:03 UTC (permalink / raw)
To: linux-media
Hi All,
We are trying develop a sensor driver code for hdmi2csi adapter.
Reguired data format is RGB888. But in media format header file, we
could see three macros related to RGB888. Hardware connection is mipi
csi2.
#define MEDIA_BUS_FMT_RGB888_1X24 0x100a
#define MEDIA_BUS_FMT_RGB888_2X12_BE 0x100b
#define MEDIA_BUS_FMT_RGB888_2X12_LE 0x100c
How to decide whether we go for RGB888_1X24 or RGB888_2X12 macros.
Thanks & Regards
- Asad
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: sensor driver - v4l2 - MEDIA_BUS_FMT
2018-04-11 10:03 sensor driver - v4l2 - MEDIA_BUS_FMT asadpt iqroot
@ 2018-04-11 10:32 ` Sakari Ailus
0 siblings, 0 replies; 2+ messages in thread
From: Sakari Ailus @ 2018-04-11 10:32 UTC (permalink / raw)
To: asadpt iqroot; +Cc: linux-media
On Wed, Apr 11, 2018 at 03:33:50PM +0530, asadpt iqroot wrote:
> Hi All,
>
> We are trying develop a sensor driver code for hdmi2csi adapter.
> Reguired data format is RGB888. But in media format header file, we
> could see three macros related to RGB888. Hardware connection is mipi
> csi2.
>
> #define MEDIA_BUS_FMT_RGB888_1X24 0x100a
> #define MEDIA_BUS_FMT_RGB888_2X12_BE 0x100b
> #define MEDIA_BUS_FMT_RGB888_2X12_LE 0x100c
>
> How to decide whether we go for RGB888_1X24 or RGB888_2X12 macros.
Originally when support was added for serial busses, we did not create new
formats for these busses but instead re-used the ones intended for parallel
busses. Please use the single-sample variant of the format.
--
Sakari Ailus
e-mail: sakari.ailus@iki.fi
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-04-11 10:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-11 10:03 sensor driver - v4l2 - MEDIA_BUS_FMT asadpt iqroot
2018-04-11 10:32 ` Sakari Ailus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).