mtk_vdec_h2...aling_matrix(9)
πΈ mtk_vdec_h2...aling_matrix(9) β from the Kernel API Manual, bestie π
okay so picture this: you're deep in the kernel docs, the page header is all truncated and mysterious like mtk_vdec_h2...aling_matrix(9), and the manual it lives in is just called the Kernel API Manual. iconic honestly. anyway, this little cutie of a function is the whole main character here, so let's get into it β¨
π NAME π
mtk_vdec_h264_copy_scaling_matrix β literally copies a scaling matrix from a control over to the driver. that's it, that's the job, and it does it flawlessly π«Ά
β¨ SYNOPSIS β¨
void mtk_vdec_h264_copy_scaling_matrix (struct
slice_api_h264_scaling_matrix *dst_matrix , const struct
v4l2_ctrl_h264_scaling_matrix *src_matrix );
returns nothing (void), takes two pointers, no drama. periodt.
π ARGUMENTS π
dst_matrixβ the scaling list params for the HW decoder, aka where the goods are going πsrc_matrixβ the scaling list params from a V4L2 control, aka where the goods are coming from π
π¦ DESCRIPTION π¦
so what does this actually do? this function is used to copy the scaling matrix from a v4l2 control into the slice parameters for a decode. that's the whole vibe check β control in, slice params out, decode ready to slay π₯
π SEE ALSO π
the kernel file it lives in, no cap:
./drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_h264_req_common.h
and the whole squad of related functions, all linked up like a group chat π¬:
struct mtk_h264_dpb_info(9)struct h264_fb(9)mtk_vdec_h264_get_ref_list(9)mtk_vdec_h264_get_ctrl_ptr(9)mtk_vdec_h264_fill_dpb_info(9)mtk_vdec_h264_copy_sps_params(9)mtk_vdec_h264_copy_pps_params(9)mtk_vdec_h264_copy_slice_hd_params(9)mtk_vdec_h264_copy_decode_params(9)mtk_vdec_h264_update_dpb(9)mtk_vdec_h264_find_start_code(9)mtk_vdec_h264_get_mv_buf_size(9)
fr fr that's the whole page, every last flag and reference accounted for, not me being thorough or anything π
and before you go β cute little sign-off from the footer bestie: this page comes from the source/version path ./drivers/media/platform/media... and it's dated October 2026, page title mtk_vdec_h2...aling_matrix(9) and all. mwah, go decode something gorgeous ππ§ββοΈ
π¦ 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