STRUCT HVA_CONTROLS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 a bool, 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