STRUCT HANTRO_FMT(9)
π 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 atV4L2_PIX_FMT_*if you wanna see the whole family β¨codec_modeβ which codec mode this format is related to. seeenum hantro_codec_modefor 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
- 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