STRUCT V4L2_H264_REFLIST_BUILDER(9)
π struct v4l2_...list_builder(9) β Kernel API Manual π
okay so bestie, you're reading the manual page for struct v4l2_...list_builder(9) from the Kernel API Manual, and it's literally the reference list builder object. no cap, this is the struct that handles all the H.264 reference list vibes. π
β¨ NAME β¨
struct v4l2_h264_reflist_builder β Reference list builder object
πΈ SYNOPSIS πΈ
struct v4l2_h264_reflist_builder {
struct {
s32 top_field_order_cnt;
s32 bottom_field_order_cnt;
int frame_num;
u16 longterm : 1;
} refs[V4L2_H264_NUM_DPB_ENTRIES];
s32 cur_pic_order_count;
u8 cur_pic_fields;
struct v4l2_h264_reference
unordered_reflist[V4L2_H264_REF_LIST_LEN];
u8 num_valid;
};
π Members π
refsβ array of references. the whole squad of reference pics, lowkey.refs.top_field_order_cntβ top field order count. it's giving top-field energy.refs.bottom_field_order_cntβ bottom field order count. bottom-field vibes fr fr.refs.frame_numβ reference frame number. the number that identifies the frame, no cap.refs.longtermβ set to true for a long term reference. when it's true, that's a long-term relationship with this reference, periodt.cur_pic_order_countβ picture order count of the frame being decoded. the POC of the frame you're decoding rn.cur_pic_fieldsβ fields present in the frame being decoded. which fields are showing up in the frame being decoded.unordered_reflistβ unordered list of references. Will be used to generate ordered P/B0/B1 lists. it's the chaotic group chat before someone makes the ordered list.num_validβ number of valid references in therefsarray. how many of the refs are actually valid, bestie.
π₯ Description π₯
okay so this object is literally storing the context of the P/B0/B1 reference list builder. the way it works is described in section '8.2.4 Decoding process for reference picture lists construction' of the H264 spec β iykyk. π§
π SEE ALSO π
- Kernel file
./include/media/v4l2-h264.h v4l2_h264_build_b_ref_lists(9)v4l2_h264_build_p_ref_list(9)
source: ./include/media Β· date: October 2026 Β· that's the tea, 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