STRUCT VDEC_PIC_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ struct vdec_pic_info(9) πŸ‘‘

okay so bestie, welcome to the kernel API manual β€” we're looking at struct vdec_pic_info, which is literally just... picture size information. that's the whole vibe. it's giving "small struct, big responsibility" πŸ’…


✨ NAME ✨

struct vdec_pic_info β€” picture size information πŸ–ΌοΈ


🌸 SYNOPSIS 🌸

struct vdec_pic_info {
    unsigned int pic_w;
    unsigned int pic_h;
    unsigned int buf_w;
    unsigned int buf_h;
    unsigned int fb_sz[VIDEO_MAX_PLANES];
    unsigned int cap_fourcc;
    unsigned int reserved;
 };

no cap, that's the whole struct. seven members. count 'em. πŸ”₯


πŸŽ€ Members πŸŽ€

  • pic_w β€” picture width, bestie. the actual width of the pic πŸ“
  • pic_h β€” picture height. yeah, it's the vertical one πŸ¦‹
  • buf_w β€” picture buffer width, which is pic_w rounded up to 64. so if your pic is a weird size, the buffer's gonna be a nice aligned 64-multiple, periodt ✨
  • buf_h β€” picture buffer height, and yep, it's pic_h aligned up to 64 too. same energy 🫢
  • fb_sz β€” bitstream size of each plane. it's an array, VIDEO_MAX_PLANES of them, iykyk. example time: suppose the picture size is 176x144 β€” then the buffer size gets aligned to 176x160. the way that 144 just becomes 160 😭 iconic behavior honestly
  • cap_fourcc β€” the fourcc number. and lowkey important: it may change on a resolution change πŸ‘€ so don't go assuming it's frozen forever
  • reserved β€” this one's just here to align the struct to 64-bit, so everything plays nice between 32-bit and 64-bit os. it's the peacekeeper of the group chat 🧚

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_drv.h β€” go read it, bestie πŸ“–
  • struct mtk_vcodec_dec_pdata(9)
  • struct mtk_vcodec_dec_request(9)
  • struct mtk_vcodec_dec_ctx(9)
  • struct mtk_vcodec_dec_dev(9)

like, the whole friend group. go say hi to all of them πŸ’œ


ngl this struct is tiny but she's carrying the whole picture-size situation on her back. respect her 🫑

and that's a wrap, babe! this page came from ./drivers/media/platform/media..., dated October 2026 β€” and it's the struct vdec_pic_info(9) page, so you always know where to find her again when you forget what buf_w does. mwah πŸ’‹πŸ’–

πŸ“¦ where this page comes from