ENUM HANTRO_CODEC_MODE(9)
π 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
- 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