STRUCT MTK_MDP_VARIANT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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