STRUCT MDP_CONFIG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct mdp_config(9)

okay so bestie, welcome to the Kernel API Manual, section 9 β€” yes, the big-kid kernel section πŸŽ€. This page is all about struct mdp_config, and it's literally the struct that holds the configuration for your source/destination image. Think of it as the little info card your image walks around with so the hardware knows where it lives, how big it is, and what its vibe (color format) is. πŸ¦‹


✨ SYNOPSIS ✨

struct mdp_config {
    int32_t x;
    int32_t y;
    int32_t w;
    int32_t h;
    int32_t w_stride;
    int32_t h_stride;
    int32_t crop_x;
    int32_t crop_y;
    int32_t crop_w;
    int32_t crop_h;
    int32_t format;
 };

that's the whole struct, no cap πŸ’― β€” every field is an int32_t, and yes there's a tiny extra space before that closing brace, we keep it exactly as-is because we don't do the original dirty like that πŸ™ˆ.


🌸 Members (the whole cast, main character energy each one) 🌸

  • x β€” left. that's the horizontal starting point, bestie πŸ“
  • y β€” top. the vertical starting point, hugging the ceiling 🫢
  • w β€” width. how wide we're going horizontally ✨
  • h β€” height. how tall we're going vertically πŸ“
  • w_stride β€” bytes in horizontal. the horizontal byte stride, slay πŸ’…
  • h_stride β€” bytes in vertical. the vertical byte stride, also slay πŸ’…
  • crop_x β€” cropped left. left edge of the crop window βœ‚οΈ
  • crop_y β€” cropped top. top edge of the crop window βœ‚οΈ
  • crop_w β€” cropped width. how wide the crop is πŸŽ€
  • crop_h β€” cropped height. how tall the crop is πŸŽ€
  • format β€” color format. the color format, aka the ~aesthetic~ of your pixels 🌈
ngl each one of these is just one int32_t, so the struct is basically a cute little lineup of eleven signed 32-bit integers. lowkey iconic πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

  • Kernel file ./drivers/media/platform/mediatek/mdp/mtk_mdp_ipi.h β€” that's where this whole thing lives, go say hi 🧚
  • struct mdp_ipi_init(9)
  • struct mdp_ipi_comm(9)
  • struct mdp_ipi_comm_ack(9)

those three are the IPI besties β€” init, comm, and comm_ack β€” go read them next, iykyk πŸ”₯


okay that's the whole page, you ate that πŸ’–. this little beauty comes to you from ./drivers/media/platform/media... and it's dated October 2026 β€” so like, remember the source and the date, mwah, bye bestie! πŸ«Άβœ¨πŸŽ€

πŸ“¦ where this page comes from