STRUCT VDEC_PIC_INFO(9)
π 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 ispic_wrounded 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'spic_haligned up to 64 too. same energy π«Άfb_szβ bitstream size of each plane. it's an array,VIDEO_MAX_PLANESof them, iykyk. example time: suppose the picture size is176x144β then the buffer size gets aligned to176x160. the way that 144 just becomes 160 π iconic behavior honestlycap_fourccβ the fourcc number. and lowkey important: it may change on a resolution change π so don't go assuming it's frozen foreverreservedβ 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
- 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