vpif_s_fmt_vid_cap(9)
π vpif_s_fmt_vid_cap β the Kernel API Manual, bestie edition π
okay so real talk, we're in the Kernel API Manual today and the main character is vpif_s_fmt_vid_cap β¨
πΈ NAME πΈ
vpif_s_fmt_vid_cap β the Set FMT handler. that's it, that's the whole vibe. it's the one that handles setting your format for video capture, and honestly? she's serving.
π¦ SYNOPSIS π¦
int vpif_s_fmt_vid_cap (struct file *file , void *priv , struct
v4l2_format *fmt );
like, she takes three things and gives you back an int. no cap, that's the whole signature π
π ARGUMENTS π
fileβ a file ptr. yep, just a file pointer, she's not complicated π«Άprivβ the file handle. it's giving "you already know what this is" energy π₯fmtβ a ptr to av4l2_formatstructure. this is the actual format tea, the whole reason we're here β
β SEE ALSO β
the kernel file lives at ./drivers/media/platform/ti/davinci/vpif_capture.c β go read it, it's iconic.
and here's the whole friend group, all the sibling functions, not me listing every single one because I would never skip anyone π:
vpif_buffer_prepare(9)vpif_buffer_queue_setup(9)vpif_buffer_queue(9)vpif_start_streaming(9)vpif_stop_streaming(9)vpif_process_buffer_complete(9)vpif_schedule_next_buffer(9)vpif_channel_isr(9)vpif_update_std_info(9)vpif_calculate_offsets(9)vpif_config_addr(9)vpif_input_to_subdev(9)vpif_set_input(9)vpif_querystd(9)vpif_g_std(9)vpif_s_std(9)vpif_enum_input(9)vpif_g_input(9)vpif_s_input(9)vpif_enum_fmt_vid_cap(9)vpif_try_fmt_vid_cap(9)vpif_g_fmt_vid_cap(9)vpif_querycap(9)vpif_enum_dv_timings(9)vpif_query_dv_timings(9)vpif_s_dv_timings(9)vpif_g_dv_timings(9)initialize_vpif(9)vpif_probe(9)vpif_remove(9)vpif_suspend(9)
the whole squad, assembled. iykyk π
also note the s in the name versus the g and try versions β they are not interchangeable, bestie, don't come for me π
and that's the page! this little slice of the manual is from the source ./drivers/media/platform/ti/da... (yes it's truncated, she's mysterious like that π) and it's dated October 2026 π bye bestie, go set some formats πβ¨
π¦ 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