STRUCT VDEC_VP8_INST(9)
π NAME π
okay so bestie, welcome to struct vdec_vp8_inst β the VP8 decoder instance, brought to you by the Kernel API Manual (which is, like, the driest group chat ever, but we're making it cute). this struct is literally the whole personality of one VP8 decoder: buffers, registers, lists, the works. no cap. π¦
β¨ SYNOPSIS β¨
here's the glow-up blueprint, copy it exactly, don't @ me:
struct vdec_vp8_inst {
struct vdec_fb *cur_fb;
struct vdec_fb_node dec_fb[VP8_MAX_FRM_BUF_NODE_NUM];
struct list_head available_fb_node_list;
struct list_head fb_use_list;
struct list_head fb_free_list;
struct list_head fb_disp_list;
struct mtk_vcodec_mem working_buf;
struct vdec_vp8_hw_reg_base reg_base;
unsigned int frm_cnt;
struct mtk_vcodec_dec_ctx *ctx;
struct vdec_vpu_inst vpu;
struct vdec_vp8_vsi *vsi;
};
like, it's giving main character energy from top to bottom π
πΈ Members πΈ
okay so these are all the little besties living inside the struct, and every single one of them matters, so pay attention fr fr:
cur_fbβ current frame buffer π the one that's on stage right nowdec_fbβ decode frame buffer node π an array of them, no less (VP8_MAX_FRM_BUF_NODE_NUMof them, iykyk)available_fb_node_listβ list to store available frame buffer node β¨ the "who's free?" listfb_use_listβ list to store frame buffer in use π«Ά the "currently booked and busy" listfb_free_listβ list to store free frame buffer π the "nothing to do, just vibing" listfb_disp_listβ list to store display ready frame buffer π the "ready for their close-up" listworking_bufβ HW decoder working buffer π₯ the actual workspace, hardware stylereg_baseβ HW register base address β the address the hardware registers live atfrm_cntβ decode frame count πΈ how many frames we've decoded, literally a counterctxβ V4L2 context π¦ the V4L2 of it allvpuβ VPU instance for decoder π the VPU showing up for decoder dutyvsiβ VPU share information π§ the info the VPU is sharing
every single field accounted for β not me being thorough, just being correct π
π SEE ALSO π
- Kernel file β
./drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp8_if.c(go read it bestie, it slaps) struct vdec_vp8_dec_info(9)struct vdec_vp8_vsi(9)struct vdec_vp8_hw_reg_base(9)struct vdec_vp8_vpu_inst(9)
aaaaand that's the whole page π
sign-off time: this came from the ./drivers/media/platform/media... source, dated October 2026, and the page itself is struct vdec_vp8_inst(9). obsessed. periodt. πβ
π¦ 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