STRUCT MTK_ENC_PARAMS(9)
π 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=30andframerate_denom=1means FPS is 30 πframerate_denomβ frame rate denominator. same example, same energy:framerate_num=30andframerate_denom=1means 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
- 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