STRUCT GSC_FMT(9)
π 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-1if it's not applicable, so if you see-1just know she's sitting this one out.pixelformatβ the fourcc code for this format, and it's0if 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_PLANESof 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
- 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