STRUCT MDP_CONFIG(9)
π 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
- 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