STRUCT GSC_SCALER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 struct gsc_scaler(9) 🌸

okay bestie, gather round, because this is a page from the Kernel API Manual, section 9 β€” the kernel API one β€” and it's all about struct gsc_scaler. Think of it as the little vibe board that holds the configuration data for the G-Scaler inetrnal scaler 🫢 (yes, that's literally how the page spells "internal", and honestly? iconic. we respect the typo era πŸ’…).


✨ NAME ✨

struct gsc_scaler β€” the configuration data for G-Scaler inetrnal scaler πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

struct gsc_scaler {
    u32 pre_shfactor;
    u32 pre_hratio;
    u32 pre_vratio;
    u32 main_hratio;
    u32 main_vratio;
 };

that's the whole struct, no cap. five u32 fields, all in a row, all vibing ✨


πŸ’– Members πŸ’–

  • pre_shfactor β€” pre sclaer shift factor 🌸 (the shift factor for the prescaler β€” and again, the page's spelling, not mine, we stan)
  • pre_hratio β€” horizontal ratio of the prescaler πŸ’«
  • pre_vratio β€” vertical ratio of the prescaler 🌈
  • main_hratio β€” the main scaler's horizontal ratio πŸ”₯
  • main_vratio β€” the main scaler's vertical ratio ⭐

so basically: prescaler gets a shift factor + an h-ratio + a v-ratio, and the main scaler gets its own h-ratio + v-ratio. two ratios for the prescaler, two for the main scaler, one shift factor, done. slay 🎯


πŸ‘‘ SEE ALSO πŸ‘‘

kernel file ./drivers/media/platform/samsung/exynos-gsc/gsc-core.h, plus the whole friend group of sibling symbols β€” these ones literally:

  • enum gsc_datapath(9)
  • struct gsc_fmt(9)
  • struct gsc_input_buf(9)
  • struct gsc_addr(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)

go read those next, bestie, iykyk πŸ“šπŸ’œ

ngl there's nothing dangerous on this page β€” it's a struct definition, the chillest kind of manpage. no undefined behaviour, no deprecation drama, just fields. main character energy but make it boring-safe 🧚

okay that's the page!! mwah πŸ’‹ this one came to you from the Kernel API Manual, section 9, source ./drivers/media/platform/samsu..., dated October 2026, and the footer was literally just struct gsc_scaler(9) again so we're bringing it full circle β€” bye bestie, go compile something πŸ¦‹πŸ’–βœ¨

πŸ“¦ where this page comes from