STRUCT VDEC_H264_DEC_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct vdec_h264_dec_info(9) πŸ’…

okay bestie, welcome to the Kernel API Manual entry for struct vdec_h264_dec_info β€” literally the little info packet that tells the H.264 decoder what's up. she's not flashy, she's just carrying the decode information and doing it flawlessly. no cap. 🌸


✨ NAME ✨

struct vdec_h264_dec_info β€” decode information πŸŽ€

like, the name is the whole vibe: it's the info. about the decode. periodt.


πŸ¦‹ SYNOPSIS πŸ¦‹

struct vdec_h264_dec_info {
    u32 dpb_sz;
    u32 resolution_changed;
    u32 realloc_mv_buf;
    u32 cap_num_planes;
    u64 bs_dma;
    u64 y_fb_dma;
    u64 c_fb_dma;
    u64 vdec_fb_va;
 };

she's got eight members and every single one is pulling her weight. look at that struct. ate. πŸ’…


πŸ‘‘ Members πŸ‘‘

πŸ“ dpb_sz

decoding picture buffer size β€” literally the size of the DPB, that's it, that's the whole job 🫢

πŸŽ€ resolution_changed

a flag that notifies you that a resolution change happened πŸ‘€ so like, the picture size switched up mid-stream. flags don't lie.

🌈 realloc_mv_buf

a flag that notifies the driver to re-allocate the mv buffer ✨ yes bestie, the driver β€” this one's a little todo note addressed to the driver, not to you.

🧚 cap_num_planes

the number of planes of the capture buffer πŸ¦‹ counting planes like it's an airport, iconic behaviour honestly.

⭐ bs_dma

Input bit-stream buffer dma address β€” the dma address of the input bit-stream buffer, capital I in "Input" and all πŸ’œ

πŸ’– y_fb_dma

Y frame buffer dma address β€” the dma address of the Y frame buffer, serving luma realness.

πŸ’œ c_fb_dma

C frame buffer dma address β€” the dma address of the C frame buffer. chroma said hi 🌸

πŸ”₯ vdec_fb_va

VDEC frame buffer struct virtual address β€” the virtual address of the VDEC frame buffer struct. virtual, not physical, don't get it twisted πŸ’€


πŸ” SEE ALSO πŸ”

  • the Kernel file ./drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_h264_req_if.c β€” go read the source bestie, it's giving main character file 🌟
  • struct vdec_h264_vsi(9) β€” her sister struct, also slaying
  • struct vdec_h264_slice_inst(9) β€” and her other sister struct, also slaying

if you're deep in the vcodec decoder lore, you already know β€” iykyk 🀫


bestie reminder: resolution_changed and realloc_mv_buf are notification flags, so they exist to tell somebody something. don't just set them and ghost. πŸ™ˆ

okay that's the whole page, no notes, she's perfect πŸ’…βœ¨ source/version is that ./drivers/media/platform/media... situation (yes, it's literally abbreviated like that in the manual, we don't gatekeep) and it's dated October 2026 β€” future girl summer πŸ¦‹πŸ’– bye bestie!! πŸŽ€

πŸ“¦ where this page comes from