STRUCT VDEC_H264_DEC_INFO(9)
π 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 slayingstruct 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_changedandrealloc_mv_bufare 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
- 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