1.20. V4L2 Media Bus functions and data structures¶
-
enum
v4l2_mbus_type¶ media bus type
Constants
V4L2_MBUS_UNKNOWNunknown bus type, no V4L2 mediabus configuration
V4L2_MBUS_PARALLELparallel interface with hsync and vsync
V4L2_MBUS_BT656parallel interface with embedded synchronisation, can also be used for BT.1120
V4L2_MBUS_CSI1MIPI CSI-1 serial interface
V4L2_MBUS_CCP2CCP2 (Compact Camera Port 2)
V4L2_MBUS_CSI2_DPHYMIPI CSI-2 serial interface, with D-PHY
V4L2_MBUS_CSI2_CPHYMIPI CSI-2 serial interface, with C-PHY
V4L2_MBUS_INVALIDinvalid 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
typein: interface type
flagsin / 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_formatfields from astruct v4l2_mbus_framefmt.
Parameters
struct v4l2_pix_format *pix_fmtpointer to
struct v4l2_pix_formatto be filledconst struct v4l2_mbus_framefmt *mbus_fmtpointer to
struct v4l2_mbus_framefmtto 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_framefmtfrom astruct v4l2_pix_formatand a data format code.
Parameters
struct v4l2_mbus_framefmt *mbus_fmtpointer to
struct v4l2_mbus_framefmtto be filledconst struct v4l2_pix_format *pix_fmtpointer to
struct v4l2_pix_formatto be used as modelu32 codedata 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_mplanefields from a media bus structure.
Parameters
struct v4l2_pix_format_mplane *pix_mp_fmtpointer to
struct v4l2_pix_format_mplaneto be filledconst struct v4l2_mbus_framefmt *mbus_fmtpointer to
struct v4l2_mbus_framefmtto 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_framefmtfrom astruct v4l2_pix_format_mplane.
Parameters
struct v4l2_mbus_framefmt *mbus_fmtpointer to
struct v4l2_mbus_framefmtto be filledconst struct v4l2_pix_format_mplane *pix_mp_fmtpointer to
struct v4l2_pix_format_mplaneto be used as model