V4L2 Media Bus functions and data structures
enum v4l2_mbus_csi2_cphy_line_orders_type #
CSI-2 C-PHY line order
Constants
V4L2_MBUS_CSI2_CPHY_LINE_ORDER_ABC: C-PHY line order ABC (default)V4L2_MBUS_CSI2_CPHY_LINE_ORDER_ACB: C-PHY line order ACBV4L2_MBUS_CSI2_CPHY_LINE_ORDER_BAC: C-PHY line order BACV4L2_MBUS_CSI2_CPHY_LINE_ORDER_BCA: C-PHY line order BCAV4L2_MBUS_CSI2_CPHY_LINE_ORDER_CAB: C-PHY line order CABV4L2_MBUS_CSI2_CPHY_LINE_ORDER_CBA: C-PHY line order CBA
struct v4l2_mbus_config_mipi_csi2 #
MIPI CSI-2 data bus configuration
Definition
;
Members
flags: media bus (V4L2_MBUS_*) flagsdata_lanes: an array of physical data lane indexesclock_lane: physical lane index of the clock lanenum_data_lanes: number of data laneslane_polarities: polarity of the lanes. The order is the same of the physical lanes.line_orders: line order of the data lanes. The order is the same of the physical lanes.
struct v4l2_mbus_config_parallel #
parallel data bus configuration
Definition
;
Members
flags: media bus (V4L2_MBUS_*) flagsbus_width: bus width in bitsdata_shift: data shift in bits
struct v4l2_mbus_config_mipi_csi1 #
CSI-1/CCP2 data bus configuration
Definition
;
Members
clock_inv: polarity of clock/strobe signal false - not inverted, true - invertedstrobe: false - data/clock, true - data/strobelane_polarity: the polarities of the clock (index 0) and data lanes index (1)data_lane: the number of the data laneclock_lane: the number of the clock lane
enum v4l2_mbus_type #
media bus type
Constants
V4L2_MBUS_UNKNOWN: unknown bus type, no V4L2 mediabus configurationV4L2_MBUS_PARALLEL: parallel interface with hsync and vsyncV4L2_MBUS_BT656: parallel interface with embedded synchronisation, can also be used for BT.1120V4L2_MBUS_CSI1: MIPI CSI-1 serial interfaceV4L2_MBUS_CCP2: CCP2 (Compact Camera Port 2)V4L2_MBUS_CSI2_DPHY: MIPI CSI-2 serial interface, with D-PHYV4L2_MBUS_CSI2_CPHY: MIPI CSI-2 serial interface, with C-PHYV4L2_MBUS_DPI: MIPI VIDEO DPI interfaceV4L2_MBUS_INVALID: invalid bus type (keep as last)
struct v4l2_mbus_config #
media bus configuration
Definition
;
Members
type: interface typelink_freq: The link frequency. See also V4L2_CID_LINK_FREQ control.bus: bus configuration data structurebus.parallel: embeddedstruct v4l2_mbus_config_parallel. Used if the bus is parallel or BT.656.bus.mipi_csi1: embeddedstruct v4l2_mbus_config_mipi_csi1. Used if the bus is MIPI Alliance's Camera Serial Interface version 1 (MIPI CSI1) or Standard Mobile Imaging Architecture's Compact Camera Port 2 (SMIA CCP2).bus.mipi_csi2: embeddedstruct v4l2_mbus_config_mipi_csi2. Used if the bus is MIPI Alliance's Camera Serial Interface version 2 (MIPI CSI2).
v4l2_fill_pix_format() #
void Ancillary routine that fills a struct v4l2_pix_format fields from a struct v4l2_mbus_framefmt.
Parameters
struct v4l2_pix_format *pix_fmt: pointer tostruct v4l2_pix_formatto be filledconst struct v4l2_mbus_framefmt *mbus_fmt: pointer tostruct v4l2_mbus_framefmtto be used as model
v4l2_fill_mbus_format() #
void Ancillary routine that fills a struct v4l2_mbus_framefmt from a struct v4l2_pix_format and a data format code.
Parameters
struct v4l2_mbus_framefmt *mbus_fmt: pointer tostruct v4l2_mbus_framefmtto be filledconst struct v4l2_pix_format *pix_fmt: pointer tostruct v4l2_pix_formatto be used as modelu32 code: data format code (fromenum v4l2_mbus_pixelcode)
v4l2_fill_pix_format_mplane() #
void 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 tostruct v4l2_pix_format_mplaneto be filledconst struct v4l2_mbus_framefmt *mbus_fmt: pointer tostruct v4l2_mbus_framefmtto be used as model
v4l2_fill_mbus_format_mplane() #
void Ancillary routine that fills a struct v4l2_mbus_framefmt from a struct v4l2_pix_format_mplane.
Parameters
struct v4l2_mbus_framefmt *mbus_fmt: pointer tostruct v4l2_mbus_framefmtto be filledconst struct v4l2_pix_format_mplane *pix_mp_fmt: pointer tostruct v4l2_pix_format_mplaneto be used as model