STRUCT VDEC_H264_INST(9)
NAME β¨
struct vdec_h264_inst β the h264 decoder instance, bestie π (this is a page from the Kernel API Manual, and yes it's giving very niche-kernel-realness)
SYNOPSIS π¦
struct vdec_h264_inst {
unsigned int num_nalu;
struct mtk_vcodec_dec_ctx *ctx;
struct mtk_vcodec_mem pred_buf;
struct mtk_vcodec_mem mv_buf[H264_MAX_FB_NUM];
struct vdec_vpu_inst vpu;
struct vdec_h264_vsi *vsi;
};
Members πΈ
okay so this struct is literally the whole decoder's little home π here's who lives in it:
num_naluβ how many nalus be decoded, that's the count, periodt β¨ctxβ points tomtk_vcodec_dec_ctx, like its little backstage pass πpred_bufβ the HW working prediction buffer, hardware's own lil scratchpad π₯mv_bufβ the HW working motion vector buffer, motion vectors stay cozy in here π¦vpuβ the VPU instance, your icon πvsiβ VPU shared information, the group chat they all read from π¬
SEE ALSO π
- Kernel file
./drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_h264_if.cβ go read the source, iykyk π struct h264_fb(9)struct h264_ring_fb_list(9)struct vdec_h264_dec_info(9)struct vdec_h264_vsi(9)
lowkey a whole friend group of structs, ngl π«Ά go click through them, it's giving lore.
and that's the page, bestie π this was pulled from ./drivers/media/platform/media..., dated October 2026, and it's the struct vdec_h264_inst(9) manual β slay, go decode something πβ
π¦ 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