STRUCT FIMC_SCALER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct fimc_scaler(9) β€” ok so this is the Kernel API Manual, bestie


✨ NAME ✨

struct fimc_scaler β€” the configuration data for the FIMC inetrnal scaler πŸŽ€

Like, it's literally the little struct that holds all the vibes your FIMC scaler needs to know about itself. Main character energy fr.


🌸 SYNOPSIS 🌸

struct fimc_scaler {
    unsigned int scaleup_h:1;
    unsigned int scaleup_v:1;
    unsigned int copy_mode:1;
    unsigned int enabled:1;
    u32 hfactor;
    u32 vfactor;
    u32 pre_hratio;
    u32 pre_vratio;
    u32 pre_dst_width;
    u32 pre_dst_height;
    u32 main_hratio;
    u32 main_vratio;
    u32 real_width;
    u32 real_height;
 };

No cap, that's the whole struct. Four lil bitfields up top doing the flag thing, then a whole stack of u32s carrying the actual numbers. πŸ¦‹


πŸ‘‘ Members πŸ‘‘

Okay bestie, let's go member by member, because each one is doing its own lil job and we're gonna appreciate all of them:

  • scaleup_h β€” flag indicating scaling up horizontally ✨
  • scaleup_v β€” flag indicating scaling up vertically ✨
  • copy_mode β€” flag indicating transparent DMA transfer (no scaling and color format conversion) πŸ’« (so like, it just copies. no glow-up, no conversion. straight through.)
  • enabled β€” flag indicating if the scaler is used πŸ‘€
  • hfactor β€” horizontal shift factor
  • vfactor β€” vertical shift factor
  • pre_hratio β€” horizontal ratio of the prescaler
  • pre_vratio β€” vertical ratio of the prescaler
  • pre_dst_width β€” the prescaler's destination width
  • pre_dst_height β€” the prescaler's destination height
  • main_hratio β€” the main scaler's horizontal ratio
  • main_vratio β€” the main scaler's vertical ratio
  • real_width β€” source pixel (width - offset)
  • real_height β€” source pixel (height - offset)

Note the two-stage situation: there's a prescaler and a main scaler, and each one gets its own ratios. And real_width/real_height are the source pixel minus the offset β€” that math is literally right there in the description, iykyk. 🧚


πŸ’œ SEE ALSO πŸ’œ

Kernel file ./drivers/media/platform/samsung/exynos4-is/fimc-core.h β€” that's where the real thing lives, go say hi 🫢

And the whole friend group, in order:


ngl this page is from ./drivers/media/platform/samsu... and it's dated October 2026 β€” so like, future vibes. πŸ’€βœ¨

Okay that's the whole page, bestie β€” go forth and scale stuff, slay πŸ’…πŸ”₯

πŸ“¦ where this page comes from