STRUCT HANTRO_AV1_DEC_HW_CTX(9)
π struct hantro_av1_dec_hw_ctx(9) β the Kernel API Manual, bestie edition β¨
okay so picture this: you're deep in the Kernel API Manual and you land on struct hantro_av1_dec_hw_ctx β yes that's the full name, yes it's a mouthful, no we're not shortening it, it's iconic. This is the AV1 decoder hardware context struct for the Hantro/Verisilicon fam, and it is packed with little buffers. Let's go π«Ά
β¨ SYNOPSIS β¨
lowkey the whole vibe is right here, bestie β every single field, no cap:
struct hantro_av1_dec_hw_ctx {
struct hantro_aux_buf db_data_col;
struct hantro_aux_buf db_ctrl_col;
struct hantro_aux_buf cdef_col;
struct hantro_aux_buf sr_col;
struct hantro_aux_buf lr_col;
struct hantro_aux_buf global_model;
struct hantro_aux_buf tile_info;
struct hantro_aux_buf segment;
struct hantro_aux_buf film_grain;
struct hantro_aux_buf prob_tbl;
struct hantro_aux_buf prob_tbl_out;
struct hantro_aux_buf tile_buf;
struct hantro_av1_dec_ctrls ctrls;
struct hantro_av1_frame_ref frame_refs[AV1_MAX_FRAME_BUF_COUNT];
u32 ref_frame_sign_bias[V4L2_AV1_TOTAL_REFS_PER_FRAME];
unsigned int num_tile_cols_allocated;
struct av1cdfs *cdfs;
struct mvcdfs *cdfs_ndvc;
struct av1cdfs default_cdfs;
struct mvcdfs default_cdfs_ndvc;
struct av1cdfs cdfs_last[NUM_REF_FRAMES];
struct mvcdfs cdfs_last_ndvc[NUM_REF_FRAMES];
int current_frame_index;
};
π MEMBERS π
okay bestie, here's the cast of characters, one by one, and every single one of them is serving a purpose π
db_data_colβ db tile col data buffer π¦db_ctrl_colβ db tile col ctrl buffercdef_colβ cdef tile col buffersr_colβ sr tile col bufferlr_colβ lr tile col bufferglobal_modelβ the global model buffer, she's got range β¨tile_infoβ tile info buffersegmentβ segmentation info bufferfilm_grainβ film grain buffer, aesthetic on purpose πprob_tblβ probability tableprob_tbl_outβ probability table outputtile_bufβ tile bufferctrlsβ V4L2 controls attached to a run πframe_refsβ reference frames info slotsref_frame_sign_biasβ array of sign biasnum_tile_cols_allocatedβ number of allocated tilescdfsβ current probabilities structurecdfs_ndvcβ current mv probabilities structuredefault_cdfsβ default probabilities structuredefault_cdfs_ndvcβ default mv probabilties structure (yes, that's the original spelling, we do NOT correct the source, periodt)cdfs_lastβ stored probabilities structurescdfs_last_ndvcβ stored mv probabilities structurescurrent_frame_indexβ index of the current in frame_refs array
π SEE ALSO π
this is the friend group, fr fr β Kernel file ./drivers/media/platform/verisilicon/hantro_hw.h plus all these icons:
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_frame_info(9)struct hantro_vp9_dec_hw_ctx(9)struct hantro_av1_dec_ctrls(9)struct hantro_postproc_ctx(9)struct hantro_postproc_ops(9)struct hantro_codec_ops(9)enum hantro_enc_fmt(9)
ngl bestie, if you got this far you're basically a kernel dev now. go touch some hantro_aux_buf π
and that's the tea β β this page came from ./drivers/media/platform/veris..., dated October 2026, and it's literally the struct hantr...1_dec_hw_ctx(9) glow-up. 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