STRUCT GC2145_FORMAT(9)
β¨ struct gc2145_format(9) β¨
okay bestie, welcome to the Kernel API Manual π this little page is literally all about struct gc2145_format β it's the GC2145 pixel format description, and honestly? it's giving "small struct, big responsibilities" π
πΈ NAME πΈ
struct gc2145_format β the GC2145 pixel format description, no cap π
π¦ SYNOPSIS π¦
struct gc2145_format {
unsigned int code;
unsigned int colorspace;
unsigned char datatype;
unsigned char output_fmt;
bool switch_bit;
unsigned char row_col_switch;
};
likeβ¦ look at her. six fields. immaculate vibes. π
π Members π
codeβ the media bus (MBUS) associated code π§ literally the MBUS code, that's the whole jobcolorspaceβ V4L2 colorspace πΈ yes, V4L2, you already knowdatatypeβ MIPI CSI2 data type β the MIPI CSI2 oneoutput_fmtβ GC2145 output format π it's the GC2145 output format, periodtswitch_bitβ GC2145 first/second switch π₯ the first/second switch situationrow_col_switchβ GC2145 switch row and/or column π note the "and/or" β rows, columns, or honestly both, it's flexible like that
π SEE ALSO π
- Kernel file
./drivers/media/i2c/gc2145.c struct gc2145_mode(9)π«Ά go read that one next, iykyk
ngl bestie, if you're poking at GC2145 pixel formats, you're already deep in the ./drivers/media/i2c trenches and i respect it ππ
and that's the whole page, bestie!! sourced straight from ./drivers/media/i2c, dated October 2026 β she's fresh, she's iconic, she's canon π
β¨ mwah π
π¦ 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