STRUCT HVA_CONTROLS(9)
π struct hva_controls(9) β hva controls set β¨
okay bestie, welcome to the Kernel API Manual section for struct hva_controls β like, the whole entire controls set for hva. this is the glow-up doc, let's go π«Ά
πΈ SYNOPSIS πΈ
here's the struct in all its main-character glory, no cap, every field exactly as it lives:
struct hva_controls {
struct v4l2_fract
time_per_frame;
enum v4l2_mpeg_video_bitrate_mode
bitrate_mode;
u32 gop_size;
u32 bitrate;
enum v4l2_mpeg_video_aspect aspect;
enum v4l2_mpeg_video_h264_profile profile;
enum v4l2_mpeg_video_h264_level level;
enum v4l2_mpeg_video_h264_entropy_mode
entropy_mode;
u32 cpb_size;
bool dct8x8;
u32 qpmin;
u32 qpmax;
bool vui_sar;
enum v4l2_mpeg_video_h264_vui_sar_idc vui_sar_idc;
bool sei_fp;
enum v4l2_mpeg_video_h264_sei_fp_arrangement_type sei_fp_type;
};
lowkey a lot of fields but we're gonna go through every single one, periodt π
β¨ Members β¨
time_per_frameβ time per frame, measured in seconds β±οΈ like, how long each frame gets to shine.bitrate_modeβ the bitrate mode, aka constant bitrate or variable bitrate. pick your fighter πgop_sizeβ groupe of picture size. (yes, that's literally what it says, we don't edit the lore π )bitrateβ bitrate, in bps π₯aspectβ video aspect.profileβ H.264 profile, the whole personality of your encode ngl.levelβ H.264 level.entropy_modeβ H.264 entropy mode, either CABAC or CVLC πcpb_sizeβ coded picture buffer size, in kB π¦dct8x8β transform mode 8x8 enable. it's abool, so it's giving yes/no energy.qpminβ minimum quantizer βqpmaxβ maximum quantizer βvui_sarβ pixel aspect ratio enable.vui_sar_idcβ pixel aspect ratio identifier π¦sei_fpβ sei frame packing arrangement enable.sei_fp_typeβ sei frame packing arrangement type π
π SEE ALSO π
go read these next, bestie, they're all connected iykyk:
- the kernel file
./drivers/media/platform/st/sti/hva/hva.h struct hva_frameinfo(9)struct hva_streaminfo(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)struct hva_enc(9)
ngl this whole page is just a struct and its members, but that's iconic in its own way π don't skip the SEE ALSO, it's literally the friend group.
k bye ily π§π β this serve was brought to you by the source ./drivers/media/platform/st/st..., October 2026 edition, struct hva_controls(9), slay forever β¨π
π¦ 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