STRUCT V4L2_H264_REFLIST_BUILDER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 the refs array. 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 πŸ‘‘


source: ./include/media Β· date: October 2026 Β· that's the tea, bestie πŸ“πŸ’–

πŸ“¦ where this page comes from