v4l2_h264_build_p_ref_list(9)
π 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 av4l2_h264_referencestructure. 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
- 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