STRUCT MTK_ENC_PARAMS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct mtk_enc_params(9) πŸ’…

okay bestie, welcome to the Kernel API Manual β€” this page is literally all about struct mtk_enc_params, no cap ✨


🌸 NAME 🌸

struct mtk_enc_params β€” the general encoding parameters, aka the whole vibe sheet for your encoder πŸŽ€


✨ SYNOPSIS ✨

struct mtk_enc_params {
    unsigned int    bitrate;
    unsigned int    num_b_frame;
    unsigned int    rc_frame;
    unsigned int    rc_mb;
    unsigned int    seq_hdr_mode;
    unsigned int    intra_period;
    unsigned int    gop_size;
    unsigned int    framerate_num;
    unsigned int    framerate_denom;
    unsigned int    h264_max_qp;
    unsigned int    h264_profile;
    unsigned int    h264_level;
    unsigned int    force_intra;
};

look at her. thirteen unsigned ints. main character energy fr fr πŸ‘‘


πŸ¦‹ Members πŸ¦‹

  • bitrate β€” the target bitrate, measured in bits per second. that's the goal, the dream, the number we're chasing πŸ’–
  • num_b_frame β€” how many b frames sit between p-frames. that's it, that's the field 🫢
  • rc_frame β€” frame based rate control. rate control, but make it per-frame ✨
  • rc_mb β€” macroblock based rate control. same energy, way finer granularity, we're zooming in πŸ”
  • seq_hdr_mode β€” decides whether the H.264 sequence header gets encoded separately or joined with the first frame. two paths, one field, iykyk πŸ’…
  • intra_period β€” the I frame period. how often we drop an intra frame, basically 🌈
  • gop_size β€” group of picture size, and bestie it's used as the intra frame period. yes she's doing double duty, we love a multitasker πŸ‘‘
  • framerate_num β€” frame rate numerator. example time: framerate_num=30 and framerate_denom=1 means FPS is 30 πŸ“
  • framerate_denom β€” frame rate denominator. same example, same energy: framerate_num=30 and framerate_denom=1 means FPS is 30 🧚
  • h264_max_qp β€” max value for the H.264 quantization parameter. it's giving ceiling πŸ”₯
  • h264_profile β€” the H.264 profile, as defined by V4L2 ⭐
  • h264_level β€” the H.264 level, as defined by V4L2 ⭐
  • force_intra β€” force or insert an intra frame. yes ma'am, on demand πŸ’€

πŸ’œ SEE ALSO πŸ’œ

  • the kernel file: ./drivers/media/platform/mediatek/vcodec/encoder/mtk_vcodec_enc_drv.h β€” go read it, the lore is in there πŸ“–
  • struct mtk_vcodec_enc_pdata(9)
  • struct mtk_vcodec_enc_ctx(9)
  • struct mtk_vcodec_enc_dev(9)

that's the whole page, you ate that 🫢 this little writeup came from ./drivers/media/platform/media..., dated October 2026, and it's filed under struct mtk_enc_params(9) β€” mwah, go forth and encode πŸ’…πŸŽ€

πŸ“¦ where this page comes from