STRUCT MTK_MDP_FRAME(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ struct mtk_mdp_frame(9) πŸ¦‹

okay bestie, welcome to the Kernel API Manual page for struct mtk_mdp_frame(9) β€” it's giving source/target frame properties, and every single field is lowkey doing main character work. no cap, this is the struct blueprint. πŸ’–


πŸŽ€ NAME πŸŽ€

struct mtk_mdp_frame β€” source/target frame properties ✨

πŸ¦‹ SYNOPSIS πŸ¦‹

struct mtk_mdp_frame {
    u32 width;
    u32 height;
    struct v4l2_rect                crop;
    unsigned long                   payload[VIDEO_MAX_PLANES];
    unsigned int                    pitch[VIDEO_MAX_PLANES];
    struct mtk_mdp_addr             addr;
    const struct mtk_mdp_fmt        *fmt;
    u8 alpha;
 };

that's the whole shape of it, bestie β€” literally every field right there, no edits, no skipping 🫢

🌸 Members 🌸

  • width β€” SRC : SRCIMG_WIDTH, DST : OUTPUTDMA_WHOLE_IMG_WIDTH β€” yes bestie, width is out here knowing both sides of the story ✨
  • height β€” SRC : SRCIMG_HEIGHT, DST : OUTPUTDMA_WHOLE_IMG_HEIGHT β€” same energy, but vertical πŸ’…
  • crop β€” cropped(source)/scaled(destination) size 🌈
  • payload β€” image size in bytes (w x h x bpp) πŸŽ€
  • pitch β€” bytes per line of image in memory πŸ¦‹
  • addr β€” image frame buffer physical addresses πŸ”₯
  • fmt β€” color format pointer πŸ’–
  • alpha β€” frame's alpha value πŸ‘‘

πŸ’œ SEE ALSO πŸ’œ

  • Kernel file ./drivers/media/platform/mediatek/mdp/mtk_mdp_core.h
  • struct mtk_mdp_pix_align(9), struct mtk_mdp_fmt(9), struct mtk_mdp_addr(9), struct mtk_mdp_variant(9), struct mtk_mdp_dev(9), struct mtk_mdp_ctx(9) β€” go read these too, iykyk πŸ’œ

signed off with source/version ./drivers/media/platform/media... and date October 2026 β€” bye bestie, go slay those frames πŸ’…βœ¨

πŸ“¦ where this page comes from