STRUCT MTK_VCODEC_ENC_PDATA(9)
๐ฆ 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 abool, 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 capturenum_capture_formatsโ number of entries incapture_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 outnum_output_formatsโ number of entries inoutput_formatsโ again, headcount, no cap ๐งฎcore_idโ stand for h264 or vp8 encode index ๐ท๏ธ like a name tag at the encode partyuses_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
- 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