ipu_image_convert_prepare(9)
β¨ ipu_image_convert_prepare(9) β¨
okay so real talk, bestie β this is a page straight out of the Kernel API Manual, and it's about ipu_image_convert_prepare. It's a kernel function, it's giving β¨serious businessβ¨, and you're gonna understand it. let's go π
πΈ NAME πΈ
ipu_image_convert_prepare β literally just: prepare a conversion context. that's the whole vibe. you're setting things up before the actual converting happens π
π¦ SYNOPSIS π¦
struct ipu_image_convert_ctx * ipu_image_convert_prepare (struct ipu_soc
*ipu , enum ipu_ic_task ic_task , struct ipu_image *in , struct
ipu_image *out , enum ipu_rotate_mode rot_mode , ipu_image_convert_cb_t
complete , void *complete_context );
she's long, she takes seven arguments, and yes you're gonna need all of them π«Ά no cap, do not skip a parameter, the compiler WILL notice.
π ARGUMENTS π
ipuβ the IPU handle you're using for all these conversions. your main character device, basically.ic_taskβ the IC task to use for the conversions. important! pick the right one bestie πinβ the input image format.outβ the output image format.rot_modeβ rotation mode. yes, rotating. spin that image πcompleteβ the run completion callback. she gets called when the work is done, iconic behaviour honestly.complete_contextβ a context pointer that gets handed to the completion callback. it's the little bag of stuff you send along with her π
β¨ DESCRIPTION β¨
In V4L2, drivers should call ipu_image_convert_prepare at streamon. that's it, that's the rule. streamon time = prepare time. not earlier, not randomly, at streamon π
π₯ RETURN π₯
on success you get an opaque conversion context pointer back. on failure you get an error pointer. simple as that π
β οΈ heads up bestie: the input/output formats and the rotation mode must already meet IPU retrictions before you call this. already. like, pre-checked. don't come crying to her about it after π
π SEE ALSO π
- Kernel file
./include/video/imx-ipu-image-convert.hstruct ipu_image_convert_run(9)ipu_image_convert_cb_t(9)ipu_image_convert_adjust(9)ipu_image_convert_verify(9)ipu_image_convert_unprepare(9)ipu_image_convert_queue(9)ipu_image_convert_abort(9)ipu_image_convert(9)
read them all, they're the whole friend group honestly π«Ά
so that's the page!! this one lives in ./include/video, version dated October 2026 β mwah, go prepare some conversion contexts, bestie πβ¨
π¦ 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