STRUCT GC2145_FORMAT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 job
  • colorspace β€” V4L2 colorspace 🌸 yes, V4L2, you already know
  • datatype β€” MIPI CSI2 data type ⭐ the MIPI CSI2 one
  • output_fmt β€” GC2145 output format πŸ‘‘ it's the GC2145 output format, periodt
  • switch_bit β€” GC2145 first/second switch πŸ”₯ the first/second switch situation
  • row_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