STRUCT FIMC_SCALER(9)
π 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 factorvfactorβ vertical shift factorpre_hratioβ horizontal ratio of the prescalerpre_vratioβ vertical ratio of the prescalerpre_dst_widthβ the prescaler's destination widthpre_dst_heightβ the prescaler's destination heightmain_hratioβ the main scaler's horizontal ratiomain_vratioβ the main scaler's vertical ratioreal_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:
struct fimc_dma_offset(9)struct fimc_effect(9)struct fimc_addr(9)struct fimc_vid_buffer(9)struct fimc_frame(9)struct fimc_m2m_device(9)struct fimc_vid_cap(9)struct fimc_pix_limit(9)struct fimc_variant(9)struct fimc_drvdata(9)struct fimc_dev(9)struct fimc_ctrls(9)struct fimc_ctx(9)fimc_active_queue_add(9)fimc_active_queue_pop(9)fimc_pending_queue_add(9)fimc_pending_queue_pop(9)
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
- 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