STRUCT VDEC_HEVC_SLICE_VSI(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ struct vdec_hevc_slice_vsi(9) πŸŽ€

okay bestie, welcome to the Kernel API Manual page for struct vdec_hevc_slice_vsi β€” it's giving "shared memory queen" and honestly? icon behavior. Let's get into it πŸ’…


✨ NAME ✨

struct vdec_hevc_slice_vsi β€” the shared memory situation for decode information exchange between SCP and Host. that's it, that's the vibe. two worlds, one buffer, no cap 🫢


🌸 SYNOPSIS 🌸

okay so here's the literal shape of it, unchanged, copy-paste energy (but like, the accurate kind):

struct vdec_hevc_slice_vsi {
    struct vdec_hevc_slice_mem bs;
    struct vdec_hevc_slice_mem ube;
    struct vdec_hevc_slice_mem trans;
    struct vdec_hevc_slice_mem err_map;
    struct vdec_hevc_slice_mem slice_bc;
    struct vdec_hevc_slice_mem wrap;
    struct vdec_hevc_slice_fb fb;
    struct vdec_hevc_slice_mem mv_buf_dma[HEVC_MAX_MV_NUM];
    struct vdec_hevc_slice_info dec;
    struct vdec_hevc_slice_lat_dec_param hevc_slice_params;
 };

πŸ¦‹ Members πŸ¦‹

okay, member-by-member breakdown, let's go β€” every single one, no skipping, we don't do that here πŸ’–

  • bs β€” input buffer info πŸ“₯ like, the incoming data's whole personality.
  • ube β€” the ube buffer. yes, that's its name, iconic, moving on ✨
  • trans β€” transcoded buffer πŸŒ€ stuff that got transcoded lives here.
  • err_map β€” err map buffer 😭 the error map, so you know where things went wrong. very main character of it.
  • slice_bc β€” slice bc buffer πŸŽ€
  • wrap β€” temp buffer ⏳ temporary! don't get attached.
  • fb β€” current y/c buffer 🌈 y/c, as in the components, you know the ones.
  • mv_buf_dma β€” HW working motion vector buffer πŸ”₯ it's an array, mv_buf_dma[HEVC_MAX_MV_NUM], so she's plural, she's HEVC_MAX_MV_NUM of them, HW is doing the work.
  • dec β€” decode information (AP-R, VPU-W) πŸ‘‘ AP-R, VPU-W, both noted, both important.
  • hevc_slice_params β€” decode parameters for hw used πŸ› οΈ the params the hardware actually consumes.

πŸ’€ 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_share_info(9)
  • struct vdec_hevc_slice_inst(9)

like, read them all, iykyk 🧚


ngl, if you're poking at this struct you're probably deep in mediatek vcodec decoder land β€” go read that kernel file, it's right there, slay 🫢

and that's the page!! source: ./drivers/media/platform/media..., Kernel API Manual, dated October 2026 β€” mwah, bye bestie, go decode something gorgeous πŸ’œπŸŽ€πŸŒŸ

πŸ“¦ where this page comes from