STRUCT MTK_MDP_VARIANT(9)
π struct mtk_mdp_variant(9) β the Kernel API Manual glow-up
okay bestie, welcome to the struct mtk_mdp_variant(9) page β¨ this is straight out of the Kernel API Manual and it's literally the little info card that tells you what a MediaTek image processor variant can and can't do. no cap, it's small but it ate. π
πΈ NAME πΈ
struct mtk_mdp_variant β image processor variant information π
like, it's the descriptor for one specific flavour of the image processor. which limits does this variant have? it's all in here, bestie. π¦
β¨ SYNOPSIS β¨
struct mtk_mdp_variant {
struct mtk_mdp_pix_limit *pix_max;
struct mtk_mdp_pix_limit *pix_min;
struct mtk_mdp_pix_align *pix_align;
u16 h_scale_up_max;
u16 v_scale_up_max;
u16 h_scale_down_max;
u16 v_scale_down_max;
};
look at her. seven fields, every single one iconic. π
π«Ά Members π«Ά
pix_maxβ the maximum limit of image size π₯ like the ceiling, the biggest pic this variant will handle.pix_minβ the minimum limit of image size πΈ the floor, the tiniest pic it'll deal with.pix_alignβ alignment of image π how the image gotta line up, yk?h_scale_up_maxβ maximum scale-up in horizontal π the most you can stretch it horizontally.v_scale_up_maxβ maximum scale-up in vertical π same energy but vertical, periodt.h_scale_down_maxβ maximum scale-down in horizontal π how much you can shrink it horizontally.v_scale_down_maxβ maximum scale-down in vertical π and the vertical shrink limit, fr fr.
ngl each of these is just a number or a pointer, but together they're the whole vibe check for what a variant can do. don't sleep on the small structs. π
π SEE ALSO π
- Kernel file
./drivers/media/platform/mediatek/mdp/mtk_mdp_core.hπ (that's where she lives, bestie) struct mtk_mdp_pix_align(9)struct mtk_mdp_fmt(9)struct mtk_mdp_addr(9)struct mtk_mdp_frame(9)struct mtk_mdp_dev(9)struct mtk_mdp_ctx(9)
the whole friend group, honestly. go read them all, iykyk π§π
ok that's the page!! π this came from ./drivers/media/platform/media... and it's dated October 2026 β yes, future vibes, main character energy, we love to see it. bye bestie, go read the kernel source, mwah πβ¨πΈ
π¦ 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