v4l2_h264_build_p_ref_list(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… v4l2_h264_build_p_ref_list β€” the Kernel API Manual, but make it cute

okay so bestie, you're in the Kernel API Manual and today's main character is v4l2_h264_build_p_ref_list(9) ✨ like literally the function that builds the P reference list. no cap, that's the whole personality.


🌸 NAME 🌸

v4l2_h264_build_p_ref_list β€” build the P reference list 🫢


✨ SYNOPSIS ✨

void v4l2_h264_build_p_ref_list (const struct v4l2_h264_reflist_builder
       *builder , struct v4l2_h264_reference *reflist );

like, that's it. that's the signature. she's simple, she's iconic πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • builder β€” the reference list builder context. it's giving "everything you need to know, pre-packaged" πŸ‘‘
  • reflist β€” a 32 sized array used to store the P reference list. each entry is a v4l2_h264_reference structure. yes bestie, thirty-two. don't @ me, that's the spec πŸ¦‹

πŸ’– DESCRIPTION πŸ’–

so this function builds the P reference lists ✨ this procedure is described in section '8.2.4 Decoding process for reference picture lists construction' of the H264 spec β€” yes, that whole long section name, iykyk 😭 that's literally the exact place it lives, no shortcuts.

this function can be used by H264 decoder drivers that need to pass a P reference list to the hardware πŸ”₯ lowkey the whole point: you build it here, you hand it to the hardware, everyone slays.


🌈 SEE ALSO 🌈

  • Kernel file ./include/media/v4l2-h264.h
  • struct v4l2_h264_reflist_builder(9)
  • v4l2_h264_build_b_ref_lists(9) β€” the B-list sibling, go say hi 🫢

ngl bestie, if you're here for the B lists, you're in the wrong function β€” but the see-also has your back 😌

and that's the tea πŸ“ this page lives in ./include/media, dated October 2026, and the whole thing is filed under v4l2_h264_build_p_ref_list(9) β€” mwah, periodt πŸ’œπŸ§š

πŸ“¦ where this page comes from