STRUCT VDEC_HEVC_SLICE_INST(9)
π 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 tomtk_vcodec_dec_ctx. your context bestie, holding it down πmv_bufβ the HW working motion vector buffer. hardware's lil mv workspace β¨vpuβ avdec_vpu_inst, aka the VPU instance πvsiβ thevsiused for lat πΈvsi_coreβ thevsiused for core π¦wrap_addrβ the wrap address used for hevc πhevc_slice_paramβ the parameters that hardware use to decode. this is thestruct vdec_hevc_slice_lat_dec_paramdoing 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
- 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