STRUCT VDEC_H264_SLICE_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

<h1>πŸ’– struct vdec_h264_slice_info(9) πŸ’–</h1>

okay so bestie, welcome to the Kernel API Manual β€” this one's a kernel struct page, and honestly? it's giving "shared custody agreement between host and firmware" ✨ because that's literally what it is. Let's get into it 🫢


✨ NAME ✨

struct vdec_h264_slice_info β€” the decode information, aka the shared data between host and firmware πŸ‘‘ like, this struct is the group chat that both sides are in, and everybody's reading the same messages. no cap.


🌸 SYNOPSIS 🌸

struct vdec_h264_slice_info {
    u16 nal_info;
    u16 timeout;
    u32 bs_buf_size;
    u64 bs_buf_addr;
    u64 y_fb_dma;
    u64 c_fb_dma;
    u64 vdec_fb_va;
    u32 crc[8];
 };

look at her πŸ’… eight fields, fully typed, doing the absolute most. we stan a well-organized struct.


πŸ’… Members πŸ’…

  • nal_info β€” the nal info of the current picture πŸŽ€ like, this is the picture's whole vibe check, packed into a u16.
  • timeout β€” the decode timeout, and it's giving boolean energy: 1 means timeout, 0 means no timeout ⏰ periodt.
  • bs_buf_size β€” the bitstream size, i.e. how big the bitstream is πŸ“
  • bs_buf_addr β€” the bitstream buffer dma address πŸ“¬ that's where the bitstream lives.
  • y_fb_dma β€” the Y frame buffer dma address 🟑 Y as in the Y one. she has her own address.
  • c_fb_dma β€” the C frame buffer dma address 🌈 and C gets its own address too, obviously.
  • vdec_fb_va β€” the VDEC frame buffer struct virtual address 🧚 a virtual address, for the frame buffer struct, VDEC flavored.
  • crc β€” used to check whether hardware's status is right βœ…πŸ” this is the literal vibe check for the hardware. if the hardware's acting sus, the crc knows.

πŸ¦‹ SEE ALSO πŸ¦‹

the source lives in the kernel file, bestie, go read it:

./drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_h264_req_multi_if.c

and the whole friend group 🫢:

  • enum vdec_h264_core_dec_err_type(9)
  • struct vdec_h264_slice_lat_dec_param(9)
  • struct vdec_h264_slice_vsi(9)
  • struct vdec_h264_slice_share_info(9)
  • struct vdec_h264_slice_fb(9)
  • struct vdec_h264_slice_info_ext(9)
  • struct vdec_h264_slice_vsi_ext(9)
  • struct vdec_h264_slice_inst(9)

and that's the page, bestie πŸ’œ this was pulled from ./drivers/media/platform/media... and dated October 2026 β€” so like, mark your calendar, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from