ENUM HANTRO_CODEC_MODE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… enum hantro_codec_mode(9) β€” the Kernel API Manual, bestie edition ✨

okay so this is a page straight out of the Kernel API Manual (the enum hantro_codec_mode(9) one, yes that one πŸŽ€) and it's literally about one thing: which operating mode a Hantro codec is in. that's it. that's the whole vibe. let's get into it πŸ¦‹


✨ NAME ✨

enum hantro_codec_mode β€” codec operating mode. periodt. πŸ’…


🌸 SYNOPSIS 🌸

here's the whole enum, copy-pasted exactly because we do not mess with the source:

enum hantro_codec_mode {
    HANTRO_MODE_NONE ,
    HANTRO_MODE_JPEG_ENC ,
    HANTRO_MODE_H264_DEC ,
    HANTRO_MODE_MPEG2_DEC ,
    HANTRO_MODE_VP8_DEC ,
    HANTRO_MODE_HEVC_DEC ,
    HANTRO_MODE_VP9_DEC ,
    HANTRO_MODE_AV1_DEC

};

like, look at her. eight constants, zero notes, all business 🫢


πŸ‘‘ Constants πŸ‘‘

okay these are the constants and ngl each one is a whole personality:

  • HANTRO_MODE_NONE β€” no operating mode at all. she's off duty πŸ›Œ used for RAW video formats.
  • HANTRO_MODE_JPEG_ENC β€” JPEG encoder. iconic little encoder behavior πŸ’–
  • HANTRO_MODE_H264_DEC β€” H264 decoder. the classic. the main character πŸ”₯
  • HANTRO_MODE_MPEG2_DEC β€” MPEG-2 decoder. vintage queen πŸ‘‘
  • HANTRO_MODE_VP8_DEC β€” VP8 decoder. she's doing her thing ✨
  • HANTRO_MODE_HEVC_DEC β€” HEVC decoder. efficiency icon 🧚
  • HANTRO_MODE_VP9_DEC β€” VP9 decoder. slay πŸ’…
  • HANTRO_MODE_AV1_DEC β€” AV1 decoder. no period at the end in the original and I'm respecting that fr fr 🌈

🌟 SEE ALSO 🌟

go read these next, bestie, they're all in the kernel file ./drivers/media/platform/verisilicon/hantro.h:

  • struct hantro_irq(9)
  • struct hantro_variant(9)
  • struct hantro_dev(9)
  • struct hantro_ctx(9)
  • struct hantro_fmt(9)
  • hantro_debug: Module parameter to control level of debugging messages.(9)
the way that last one is a whole sentence crammed into a reference. whatever. it ate. 😭

and that's the page!! πŸŽ€ source n' version n' date moment, brought to you by ./drivers/media/platform/veris... dated October 2026 β€” enum hantro_codec_mode(9), signing off πŸ’œπŸ¦‹ mwah.

πŸ“¦ where this page comes from