STRUCT GSC_FMT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ struct gsc_fmt(9) πŸŽ€

okay so bestie, welcome to the Kernel API Manual ✨ β€” this little page is all about struct gsc_fmt, which is literally the driver's own internal color format data. no cap, it's the glow-up blueprint the driver keeps for itself πŸ’…


πŸ’– NAME πŸ’–

struct gsc_fmt β€” the driver's internal color format data πŸŽ¨πŸ¦‹


✨ SYNOPSIS ✨

here's the whole struct, character for character, don't touch a thing:

struct gsc_fmt {
    u32 mbus_code;
    u32 pixelformat;
    u32 color;
    u32 yorder;
    u32 corder;
    u16 num_planes;
    u16 num_comp;
    u8 depth[VIDEO_MAX_PLANES];
    u32 flags;
 };

like… she's giving main character energy, honestly πŸ‘‘


🌸 Members 🌸

okay so let's meet the cast, one field at a time 🫢

  • mbus_code β€” the Media Bus pixel code πŸŽ€. it's -1 if it's not applicable, so if you see -1 just know she's sitting this one out.
  • pixelformat β€” the fourcc code for this format, and it's 0 if not applicable πŸ™ˆ.
  • color β€” the color encoding 🌈.
  • yorder β€” the Y/C order ⭐.
  • corder β€” the Chrominance order control 🎚️.
  • num_planes β€” how many data planes are physically non-contiguous (yes, the scattered girlies) πŸ’€.
  • num_comp β€” how many data planes are physically contiguous 🧚.
  • depth β€” per-plane, a driver's private "number of bits per pixel" πŸ‘‘. it's an array, VIDEO_MAX_PLANES of them, so it's per plane, iykyk.
  • flags β€” the flags saying which operation mode this format applies to 🚩.

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/media/platform/samsung/exynos-gsc/gsc-core.h β€” and the whole friend group is here too, go say hi πŸ’œ:

  • enum gsc_datapath(9)
  • struct gsc_input_buf(9)
  • struct gsc_addr(9)
  • struct gsc_scaler(9)
  • struct gsc_frame(9)
  • struct gsc_m2m_device(9)
  • struct gsc_pix_max(9)
  • struct gsc_pix_min(9)
  • struct gsc_driverdata(9)
  • struct gsc_dev(9)
  • struct gsc_ctx(9)

and that's the whole vibe check, bestie πŸ“ this came from ./drivers/media/platform/samsu... and it's dated October 2026, so mark your calendar and slay the day πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from