STRUCT VDEC_HEVC_SLICE_INST(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct vdec_hevc_slice_inst(9) πŸ’–

okay bestie, gather round β€” this is the manual page for struct vdec_hevc_slice_inst, straight out of the Kernel API Manual, and it's literally the hevc decoder instance. yes. that one. let's get into it 🫢


✨ NAME ✨

struct vdec_hevc_slice_inst β€” the hevc decoder instance, no cap 🌸


πŸ¦‹ SYNOPSIS πŸ¦‹

struct vdec_hevc_slice_inst {
    unsigned int slice_dec_num;
    struct mtk_vcodec_dec_ctx *ctx;
    struct mtk_vcodec_mem mv_buf[HEVC_MAX_MV_NUM];
    struct vdec_vpu_inst vpu;
    struct vdec_hevc_slice_vsi *vsi;
    struct vdec_hevc_slice_vsi *vsi_core;
    struct mtk_vcodec_mem wrap_addr;
    struct vdec_hevc_slice_lat_dec_param hevc_slice_param;
    unsigned int resolution_changed;
    unsigned int realloc_mv_buf;
    unsigned int cap_num_planes;
 };

like, that's the whole struct. every field. every type. immaculate πŸ’…


πŸŽ€ Members πŸŽ€

  • slice_dec_num β€” the number of frames to be decoded. that's it, that's the count πŸ”₯
  • ctx β€” points to mtk_vcodec_dec_ctx. your context bestie, holding it down πŸ’œ
  • mv_buf β€” the HW working motion vector buffer. hardware's lil mv workspace ✨
  • vpu β€” a vdec_vpu_inst, aka the VPU instance πŸ‘‘
  • vsi β€” the vsi used for lat 🌸
  • vsi_core β€” the vsi used for core πŸ¦‹
  • wrap_addr β€” the wrap address used for hevc πŸŽ€
  • hevc_slice_param β€” the parameters that hardware use to decode. this is the struct vdec_hevc_slice_lat_dec_param doing the actual heavy lifting fr fr πŸ’ͺ
  • resolution_changed β€” resolution changed. yes ma'am, it's giving "the video got resized" 😭
  • realloc_mv_buf β€” reallocate mv buffer. time to get a fresh one πŸ”₯
  • cap_num_planes β€” number of capture queue plane πŸ“

🌈 SEE ALSO 🌈

  • Kernel file: ./drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_hevc_req_multi_if.c
  • enum vdec_hevc_core_dec_err_type(9)
  • struct mtk_hevc_dpb_info(9)
  • struct hevc_fb(9)
  • struct vdec_hevc_slice_lat_dec_param(9)
  • struct vdec_hevc_slice_info(9)
  • struct vdec_hevc_slice_fb(9)
  • struct vdec_hevc_slice_vsi(9)
  • struct vdec_hevc_slice_share_info(9)

like, go read those too, they're all part of the same friend group iykyk πŸ’…


ngl bestie, this one's mostly a struct reference β€” every field matters, so don't be out here skipping the "boring" ones, they're literally the whole point πŸ™ˆ

and that's the tea 🍡 β€” brought to you by the source ./drivers/media/platform/media..., dated October 2026, living under the struct vdec_hevc_slice_inst(9) manual page name. periodt. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from