STRUCT VIMC_PIX_MAP(9)
π struct vimc_pix_map(9)
okay so welcome to the Kernel API Manual bestie, we're doing struct docs today and honestly this one is a little cutie π
β¨ NAME β¨
struct vimc_pix_map β literally the thing that maps a media bus code to a v4l2 pixel format π¦
πΈ SYNOPSIS πΈ
struct vimc_pix_map {
unsigned int code[VIMC_PIX_FMT_MAX_CODES];
unsigned int bpp;
u32 pixelformat;
bool bayer;
};
π Members π
codeβ the media bus format code, and it's defined by theMEDIA_BUS_FMT_*macros π«bppβ number of bytes each pixel occupies, yes that's the bytes-per-pixel count, no cap π§pixelformatβ the pixel format, defined by theV4L2_PIX_FMT_*macros π₯bayerβtrueif this is a bayer format π
π Description π
So this struct is the matchmaker π«Ά it takes the MEDIA_BUS_FMT_* codes and matches them up with the corresponding V4L2_PIX_FMT_* fourcc pixelformat plus its bytes per pixel (bpp). it's giving matchmaker energy fr fr, iconic behavior π
π SEE ALSO π
Kernel file ./drivers/media/test-drivers/vimc/vimc-common.h β go read it, iykyk β¨
vimc_colorimetry_clamp(9), struct vimc_ent_device(9), struct vimc_device(9), struct vimc_ent_type(9), struct vimc_ent_config(9), vimc_is_source(9), vimc_pix_map_by_index(9), vimc_mbus_code_by_index(9), vimc_pix_map_by_code(9), vimc_pix_map_by_pixelformat(9), vimc_ent_sd_register(9), vimc_vdev_link_validate(9) β
and that's the whole page bestie, you ate that ππ
mwah, this came straight out of ./drivers/media/test-drivers/vimc, dated October 2026 β slay, periodt ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms