v4l2_subdev_state_get_crop(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… v4l2_subdev_state_get_crop(9)

okay bestie, welcome to the Kernel API Manual page for v4l2_subdev_state_get_crop(9) β€” this one is lowkey a little pointer-fetching moment and it’s iconic. ✨

🌸 NAME 🌸

v4l2_subdev_state_get_crop β€” get a pointer to a stream crop rectangle πŸ’–

✨ SYNOPSIS ✨

v4l2_subdev_state_get_crop (state , pad , ... );

πŸŽ€ ARGUMENTS πŸŽ€

  • state β€” the subdevice state, aka the state you’re working with.
  • pad β€” the pad id. yes, that pad.
  • ... β€” the stream id, and it’s optional (optional argument), bestie.

πŸ¦‹ DESCRIPTION πŸ¦‹

So this function returns a pointer to the crop rectangle for the given pad + stream in the subdev state. that’s the whole vibe.

For stream-unaware drivers, the crop rectangle for the corresponding pad is returned. If the pad does not exist, NULL is returned. no pad, no rectangle, periodt. πŸ’€

πŸ’œ SEE ALSO πŸ’œ

First up, the kernel file ./include/media/v4l2-subdev.h struct. Then all these friends:


okay that’s the whole page, bestie 🫢 source/version: ./include/media, date: October 2026, and the page is v4l2_subdev_state_get_crop(9). mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from