STRUCT MTK_VIDEO_ENC_BUF(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct mtk_video_enc_buf(9) πŸ’–

okay so bestie, welcome to the kernel API manual ✨ β€” this one lives in section 9 of the man pages and it's literally all about struct mtk_video_enc_buf, no cap. grab a strawberry πŸ“ and let's get into it.


🌸 NAME 🌸

struct mtk_video_enc_buf β€” the private data that's attached to each and every VB2 buffer 🫢

like, every VB2 buffer gets its own little stash of private stuff, and this struct is that stash. iconic behaviour honestly.


πŸ¦‹ SYNOPSIS πŸ¦‹

struct mtk_video_enc_buf {
    struct v4l2_m2m_buffer m2m_buf;
    u32 param_change;
    struct mtk_enc_params enc_params;
 };

three members, one struct, zero drama πŸ’…


πŸŽ€ Members πŸŽ€

  • m2m_buf β€” the M2M buffer πŸ‘‘ that's it, that's the whole vibe.
  • param_change β€” tells you the types of encode parameter change that happened before this buffer got encoded πŸ”₯ a u32 holding the deets.
  • enc_params β€” the actual encode parameters that changed before this buffer gets encoded 🌈 the real ones.

⭐ SEE ALSO ⭐

  • Kernel file πŸ“ ./drivers/media/platform/mediatek/vcodec/encoder/mtk_vcodec_enc.h

go read the source bestie, iykyk 🧚


aaaaand that's the whole page πŸŽ‰ no filler, no fluff, just a struct with three members living its main character life. mwah πŸ’‹

this lil gem is from source/version ./drivers/media/platform/media..., dated October 2026, and it's the struct mtk_video_enc_buf(9) page β€” periodt. πŸ’œ

πŸ“¦ where this page comes from