STRUCT HVA_ENC(9)
π struct hva_enc(9) π
okay so bestie, welcome to the Kernel API Manual β this is the page for struct hva_enc, aka the hva encoder. it's giving "the blueprint every encoder has to fill out" energy, and honestly? iconic. let's get into it π
β¨ NAME β¨
struct hva_enc β hva encoder
like, literally the struct that is an encoder. no cap π«Ά
πΈ SYNOPSIS πΈ
struct hva_enc {
const char *name;
u32 streamformat;
u32 pixelformat;
u32 max_width;
u32 max_height;
int (*open)(struct hva_ctx *ctx);
int (*close)(struct hva_ctx *ctx);
int (*encode)(struct hva_ctx *ctx, struct hva_frame *frame, struct hva_stream *stream);
};
look at her. main character struct. every field is a whole personality trait π
π¦ Members π¦
okay so let's go member by member, bestie, because each one matters:
nameβ the encoder name. it's her name. her whole identity. say it with your chest β¨streamformatβ fourcc code for compressed video format (H.264...). yes, the compressed one, the squeezed one πpixelformatβ fourcc code for uncompressed video format. the raw, unbothered, unfiltered version πmax_widthβ maximum width of frame for this encoder. she has limits, and that's healthy πΈmax_heightβ maximum height of frame for this encoder. same vibe, vertical edition πopenβ open encoder. wake her up, do her hair πcloseβ close encoder. nap time, she earned it πencodeβ encode a frame (struct hva_frame) in a stream (struct hva_stream). this is the moment, this is the whole point, this is when she slays π₯π
π SEE ALSO π
Kernel file ./drivers/media/platform/st/sti/hva/hva.h β go read it, iykyk π β plus these absolute besties:
struct hva_frameinfo(9)struct hva_streaminfo(9)struct hva_controls(9)struct hva_frame(9)struct hva_stream(9)struct hva_ctx_dbg(9)struct hva_ctx(9)struct hva_dev_dbg(9)struct hva_dev(9)
bestie. read them in order. the lore goes deep and you will be obsessed π§π
and that's the page!! sourced straight from ./drivers/media/platform/st/st... and dated October 2026 β so yes, she's from the future, and yes, she ate πβπ
mwah, go write some encoders, ily π«Άπ
π¦ 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