fimc_lite_find_format(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… fimc_lite_find_format(9) β€” from the Kernel API Manual ✨

okay so bestie, this one lives in the Kernel API Manual, and it's basically the little matchmaker function that goes looking for a fimc color format by its fourcc or media bus code. think of it as the vibe-check bouncer for pixel formats 🫢


🌸 NAME 🌸

fimc_lite_find_format β€” lookup fimc color format by fourcc or media bus code

like, literally. it finds formats. that's the whole job. no cap. πŸ’…


✨ SYNOPSIS ✨

const struct fimc_fmt * fimc_lite_find_format (const u32 *pixelformat ,
const u32 *mbus_code , unsigned int mask , int index );

she returns a const struct fimc_fmt * and takes four args β€” we're gonna go through every single one, don't worry πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • pixelformat β€” the fourcc to match. it's a pointer, and if it's null it's just ignored, like genuinely not invited to the function's party πŸ™ˆ
  • mbus_code β€” the media bus code to match. also a pointer, also ignored if null. equal treatment, we love to see it πŸ’–
  • mask β€” the color format flags to match. this is the strictness setting, iykyk ⭐
  • index β€” index into the fimc_lite_formats array. key detail bestie: ignored if negative πŸ’€ so like, negative numbers get no say here

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/media/platform/samsung/exynos4-is/fimc-lite.c β€” that's the main character, go read it πŸ”₯


fr fr the one rule of this function: null pointer? ignored. negative index? ignored. she's very chill about it, but mask still expects an actual match, so don't get it twisted πŸ’…

and that's the whole page, bestie β€” slay 🌈

cute little sign-off sign-off: this one's sourced from <green>./drivers/media/platform/samsu...</green> and dated October 2026 πŸŽ€πŸ¦‹βœ¨

πŸ“¦ where this page comes from