1.20. V4L2 Media Bus functions and data structures¶
-
enum
v4l2_mbus_type
¶ media bus type
Constants
V4L2_MBUS_UNKNOWN
- unknown bus type, no V4L2 mediabus configuration
V4L2_MBUS_PARALLEL
- parallel interface with hsync and vsync
V4L2_MBUS_BT656
- parallel interface with embedded synchronisation, can also be used for BT.1120
V4L2_MBUS_CSI1
- MIPI CSI-1 serial interface
V4L2_MBUS_CCP2
- CCP2 (Compact Camera Port 2)
V4L2_MBUS_CSI2_DPHY
- MIPI CSI-2 serial interface, with D-PHY
V4L2_MBUS_CSI2_CPHY
- MIPI CSI-2 serial interface, with C-PHY
V4L2_MBUS_INVALID
- invalid bus type (keep as last)
-
struct
v4l2_mbus_config
¶ media bus configuration
Definition
struct v4l2_mbus_config {
enum v4l2_mbus_type type;
unsigned int flags;
};
Members
type
- in: interface type
flags
- in / out: configuration flags, depending on type
-
void
v4l2_fill_pix_format
(struct v4l2_pix_format *pix_fmt, const struct v4l2_mbus_framefmt *mbus_fmt)¶ Ancillary routine that fills a
struct v4l2_pix_format
fields from astruct v4l2_mbus_framefmt
.
Parameters
struct v4l2_pix_format *pix_fmt
- pointer to
struct v4l2_pix_format
to be filled const struct v4l2_mbus_framefmt *mbus_fmt
- pointer to
struct v4l2_mbus_framefmt
to be used as model
-
void
v4l2_fill_mbus_format
(struct v4l2_mbus_framefmt *mbus_fmt, const struct v4l2_pix_format *pix_fmt, u32 code)¶ Ancillary routine that fills a
struct v4l2_mbus_framefmt
from astruct v4l2_pix_format
and a data format code.
Parameters
struct v4l2_mbus_framefmt *mbus_fmt
- pointer to
struct v4l2_mbus_framefmt
to be filled const struct v4l2_pix_format *pix_fmt
- pointer to
struct v4l2_pix_format
to be used as model u32 code
- data format code (from
enum v4l2_mbus_pixelcode
)
-
void
v4l2_fill_pix_format_mplane
(struct v4l2_pix_format_mplane *pix_mp_fmt, const struct v4l2_mbus_framefmt *mbus_fmt)¶ Ancillary routine that fills a
struct v4l2_pix_format_mplane
fields from a media bus structure.
Parameters
struct v4l2_pix_format_mplane *pix_mp_fmt
- pointer to
struct v4l2_pix_format_mplane
to be filled const struct v4l2_mbus_framefmt *mbus_fmt
- pointer to
struct v4l2_mbus_framefmt
to be used as model
-
void
v4l2_fill_mbus_format_mplane
(struct v4l2_mbus_framefmt *mbus_fmt, const struct v4l2_pix_format_mplane *pix_mp_fmt)¶ Ancillary routine that fills a
struct v4l2_mbus_framefmt
from astruct v4l2_pix_format_mplane
.
Parameters
struct v4l2_mbus_framefmt *mbus_fmt
- pointer to
struct v4l2_mbus_framefmt
to be filled const struct v4l2_pix_format_mplane *pix_mp_fmt
- pointer to
struct v4l2_pix_format_mplane
to be used as model