STRUCT VENC_H264_VPU_CONFIG_EXT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so this is the struct venc...u_config_ext(9) page in the Kernel API Manual, and it's literally the Structure for h264 encoder configuration. The page also drops these access hints, iykyk: AP-W/R : AP is writer/reader on this item, and VPU-W/R: VPU is write/reader on this item. πŸ’…

✨ SYNOPSIS ✨

Here's the whole struct, bestie β€” no cap, copy it exactly:

       struct venc_h264_vpu_config_ext {
           u32 input_fourcc;
           u32 bitrate;
           u32 pic_w;
           u32 pic_h;
           u32 buf_w;
           u32 buf_h;
           u32 gop_size;
           u32 intra_period;
           u32 framerate;
           u32 profile;
           u32 level;
           u32 wfd;
           u32 max_qp;
           u32 min_qp;
           u32 reserved[8];
        };

🧚 Members 🧚

vibe check the members, bestie β€” every single one is iconic in its own way:

  • input_fourcc β€” input fourcc, periodt.
  • bitrate β€” target bitrate (in bps). πŸ’Έ
  • pic_w β€” picture width. Picture size is visible stream resolution, in pixels, to be used for display purposes; must be smaller or equal to buffer size. So yes, it has to fit inside the buffer, no cap.
  • pic_h β€” picture height.
  • buf_w β€” buffer width. Buffer size is stream resolution in pixels aligned to hardware requirements.
  • buf_h β€” buffer height.
  • gop_size β€” group of picture size (idr frame).
  • intra_period β€” intra frame period.
  • framerate β€” frame rate in fps.
  • profile β€” as specified in standard.
  • level β€” as specified in standard.
  • wfd β€” WFD mode 1:on, 0:off.
  • max_qp β€” max quant parameter.
  • min_qp β€” min quant parameter.
  • reserved β€” reserved configs. (And in the synopsis it's reserved[8], just saying. πŸ’…)

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file β€” ./drivers/media/platform/mediatek/vcodec/encoder/venc/venc_h264_if.c
  • struct venc_h264_vpu_buf_34(9), struct venc_h264_vsi_34(9)

mwah πŸ’‹ source/version: ./drivers/media/platform/media... β€” date: October 2026 β€” footer title: struct venc...u_config_ext(9). byeee 🫢✨

πŸ“¦ where this page comes from