STRUCT BDISP_FRAME(9)
π struct bdisp_frame(9) π
ok so this is a page from the Kernel API Manual, bestie, and it's literally all about struct bdisp_frame β aka the vibe check container for frame properties π. Yes we're in the kernel, yes we're in the media platform layer, yes it's giving main character energy. Let's go π¦
β¨ NAME β¨
struct bdisp_frame β frame properties πΈ
π«Ά SYNOPSIS π«Ά
struct bdisp_frame {
u32 width;
u32 height;
const struct bdisp_fmt *fmt;
enum v4l2_field field;
u32 bytesperline;
u32 sizeimage;
enum v4l2_colorspace colorspace;
struct v4l2_rect crop;
dma_addr_t paddr[4];
};
no cap, that's the whole struct, copy it exactly, don't be weird about it π
π§ Members π§
okay so let's meet the squad, one field at a time π
widthβ the frame width (including padding!). padding is invited to the party too, okurrr πheightβ the frame height, and yes, padding counts here as well. she's tall, she's padded, she's iconic π₯fmtβ a pointer to the frame format descriptor. all the format lore lives over there, this is just the little arrow pointing at it πfieldβ the frame / field type.enum v4l2_fieldjust so we're clear about which one she is πbytesperlineβ the stride of the 1st plane. one plane, one stride, no notes β¨sizeimageβ the image size in bytes. the byte count baby, that's the whole deal πΈcolorspaceβ the colorspace.enum v4l2_colorspacesaid what she said πcropβ the crop area.struct v4l2_rectshaped, naturally π¦paddrβ the image physical addresses per plane, and the mapping is lowkey specific so pay attention:[0]=RGB/Yand[1]=Cb/Cr, then...because there's more to the story and the page just trails off into the[4]of it all ππ«Ά
fr fr, paddr[4] means four slots, and slot zero and slot one have very specific jobs. don't shuffle them, bestie π
π SEE ALSO π
- Kernel file
./drivers/media/platform/st/sti/bdisp/bdisp.hstructbdisp_fmt(9) struct bdisp_request(9)struct bdisp_ctx(9)struct bdisp_m2m_device(9)struct bdisp_dbg(9)struct bdisp_dev(9)
that's the whole friend group, go read all of them, iykyk πβ¨
okay that's the page, and for the cute sign-off: this one's source lives at ./drivers/media/platform/st/st..., it's stamped October 2026, and it's filed under struct bdisp_frame(9) β periodt, slay, go touch some registers π§π
π¦ 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