STRUCT HANTRO_VP9_FRAME_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 struct hantro_vp9_frame_info(9) 🌸

okay so this is a page from the Kernel API Manual (yes, that's the manual name, we're being fancy today) and it's literally all about one lil struct, bestie. buckle up πŸŽ€


✨ NAME ✨

struct hantro_vp9_frame_info β€” and that's it. that's the whole description. the manpage really said "no thoughts, head empty" and left the dash hanging there with nothing after it πŸ’€ iconic behaviour honestly


πŸ¦‹ SYNOPSIS πŸ¦‹

here's the whole vibe, copied exactly, don't come for me:

struct hantro_vp9_frame_info {
    u32 valid : 1;
    u32 frame_context_idx : 2;
    u32 reference_mode : 2;
    u32 tx_mode : 3;
    u32 interpolation_filter : 3;
    u32 flags;
    u64 timestamp;
 };

like look at those bitfields. little tiny slivers of u32. she's compact, she's precise, she's giving main character energy πŸ‘‘


πŸ’… MEMBERS πŸ’…

one by one, no gatekeeping:

  • valid β€” the "is this frame info even valid tho" flag. it's a 1-bit u32 field, so it's literally doing the absolute most with the least 🫢
  • frame_context_idx β€” the index of the frame context. 2 bits of pure context-tracking realness ✨
  • reference_mode β€” the inter prediction type. that's the whole description, don't @ me, 2 bits wide 🌸
  • tx_mode β€” transform mode, 3 bits, lowkey the moment πŸ”₯
  • interpolation_filter β€” filter selection for inter prediction. 3 whole bits dedicated to picking your filter, we love a queen who knows what she wants πŸ’–
  • flags β€” frame flags. plain u32, no bitfield width, she's unbothered, she's free 🌈
  • timestamp β€” frame timestamp, and it's a u64 so it's got range. periodt πŸ’œ

🧚 SEE ALSO 🧚

bestie there is SO much lore here, it's all in the kernel file ./drivers/media/platform/verisilicon/hantro_hw.h and it links out to the whole friend group 😭:

  • struct hantro_aux_buf(9)
  • struct hantro_h264_dec_ctrls(9)
  • struct hantro_h264_dec_reflists(9)
  • struct hantro_h264_dec_hw_ctx(9)
  • struct hantro_hevc_dec_ctrls(9)
  • struct hantro_hevc_dec_hw_ctx(9)
  • struct hantro_mpeg2_dec_hw_ctx(9)
  • struct hantro_vp8_dec_hw_ctx(9)
  • struct hantro_vp9_dec_hw_ctx(9)
  • struct hantro_av1_dec_ctrls(9)
  • struct hantro_av1_dec_hw_ctx(9)
  • struct hantro_postproc_ctx(9)
  • struct hantro_postproc_ops(9)
  • struct hantro_codec_ops(9)
  • enum hantro_enc_fmt(9)

like that's a whole group chat of structs and enums and you're invited πŸŽ€


ngl there's no OPTIONS section, no exit statuses, no environment variables on this one β€” it's just a struct and her friends. a cozy little read, honestly πŸ“

and that's the page!! sign-off time: this one came from ./drivers/media/platform/veris... and it's dated October 2026, so go forth and read struct definitions with your whole chest πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from