STRUCT VDEC_H264_INST(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 to mtk_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