STRUCT HANTRO_FMT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

ok so struct hantro_fmt β€” literally the whole vibe check on which video formats are supported. that's it, that's the struct. bestie it's the info card for every format this thing can handle πŸŽ€

this is from the kernel API manual, page struct hantro_fmt(9), in case you were wondering where you wandered into ✨


🌸 SYNOPSIS 🌸

struct hantro_fmt {
    char *name;
    u32 fourcc;
    enum hantro_codec_mode codec_mode;
    int header_size;
    int max_depth;
    enum hantro_enc_fmt enc_fmt;
    struct v4l2_frmsize_stepwise frmsize;
    bool postprocessed;
    bool match_depth;
 };

no cap, that's the whole thing. now let's break down every single field because we are not skipping any πŸ’…


πŸ‘‘ MEMBERS πŸ‘‘

  • name β€” the human readable name of the format. like the cute label, not the nerdy code 🏷️
  • fourcc β€” the FourCC code of the format. go peek at V4L2_PIX_FMT_* if you wanna see the whole family ✨
  • codec_mode β€” which codec mode this format is related to. see enum hantro_codec_mode for the deets 🎬
  • header_size β€” optional header size. rn it's only used by the JPEG encoder, so it's giving very "only one person at this party uses me" energy πŸ™ˆ
  • max_depth β€” maximum depth, for bitstream formats. deep. literally 🌊
  • enc_fmt β€” the format identifier for encoder registers. register-coded bestie 🧚
  • frmsize β€” the supported range of frame sizes (only for bitstream formats, fyi! don't come for me) πŸ“
  • postprocessed β€” tells you if this format needs the post-processor. yes it's a whole extra step, she's high maintenance and iconic for it πŸ’…
  • match_depth β€” tells you if the format bit depth must match the video bit depth. must. it's not a suggestion fr fr ⭐

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./drivers/media/platform/verisilicon/hantro.h
  • struct hantro_irq(9)
  • struct hantro_variant(9)
  • enum hantro_codec_mode(9)
  • struct hantro_dev(9)
  • struct hantro_ctx(9)
  • hantro_debug: Module parameter to control level of debugging messages.(9)
go read those too, bestie. iykyk 🫢

🌈 that's the whole page, mwah πŸ’‹ β€” this lil number lives at ./drivers/media/platform/veris..., dated October 2026, and it's filed under struct hantro_fmt(9) in the kernel API manual. periodt. πŸ’œ

πŸ“¦ where this page comes from