STRUCT MTK_VCODEC_ENC_PDATA(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿฆ‹ struct mtk_vcodec_enc_pdata(9) ๐Ÿฆ‹

okay so bestie, welcome to the Kernel API Manual โ€” this is the page for struct mtk_vcodec_enc_pdata, and honestly? it's giving "little struct, big responsibilities" โœจ


๐ŸŒธ NAME ๐ŸŒธ

struct mtk_vcodec_enc_pdata โ€” compatible data for each IC ๐Ÿ’–

like, every chip gets its own little personality card, and this is it ๐ŸŽ€


โœจ SYNOPSIS โœจ

struct mtk_vcodec_enc_pdata {
    bool uses_ext;
    u64 min_bitrate;
    u64 max_bitrate;
    const struct mtk_video_fmt *capture_formats;
    size_t num_capture_formats;
    const struct mtk_video_fmt *output_formats;
    size_t num_output_formats;
    u8 core_id;
    bool uses_34bit;
 };

look at her. ten fields. no notes. ๐Ÿ’…


๐Ÿซถ Members ๐Ÿซถ

  • uses_ext โ€” tells you whether the encoder uses the extended firmware messaging format ๐Ÿ“จ (yes it's a bool, yes it matters, periodt)
  • min_bitrate โ€” the minimum supported encoding bitrate, the floor, the "don't go below this" energy ๐ŸŒŠ
  • max_bitrate โ€” the maximum supported encoding bitrate, aka the ceiling, the "don't come for her" limit ๐Ÿ”ฅ
  • capture_formats โ€” array of supported capture formats ๐ŸŽ€ like a little lineup of what she can capture
  • num_capture_formats โ€” number of entries in capture_formats โ€” literally just the headcount for that array ๐Ÿ‘‘
  • output_formats โ€” array of supported output formats ๐ŸŒˆ the other lineup, this one's for what she puts out
  • num_output_formats โ€” number of entries in output_formats โ€” again, headcount, no cap ๐Ÿงฎ
  • core_id โ€” stand for h264 or vp8 encode index ๐Ÿท๏ธ like a name tag at the encode party
  • uses_34bit โ€” whether the encoder uses 34-bit iova ๐Ÿงš a whole extra bit situation, iconic
ngl bestie, this is the struct you fill in per-IC so the encoder driver knows what the hardware in front of it can actually do. it's the vibe check for the silicon ๐Ÿ’€

๐Ÿ’œ SEE ALSO ๐Ÿ’œ

  • Kernel file ./drivers/media/platform/mediatek/vcodec/encoder/mtk_vcodec_enc_drv.h ๐Ÿ“
  • struct mtk_enc_params(9) ๐Ÿ“
  • struct mtk_vcodec_enc_ctx(9) ๐Ÿฆ‹
  • struct mtk_vcodec_enc_dev(9) โญ

and that's the whole page bestie, you ate that ๐Ÿซถ source/version is ./drivers/media/platform/media... and the date is October 2026 โ€” so mark your calendar, she's from the future, main character energy fr fr ๐Ÿ’–โœจ๐ŸŽ€

๐Ÿ“ฆ where this page comes from