amvdec_set_canvases(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… amvdec_set_canvases(9)

okay so bestie, welcome to the Kernel API Manual ✨ and today's main character is amvdec_set_canvases β€” it's the one that maps VB2 buffers to canvases. no cap, that's literally the whole vibe of the NAME section πŸŽ€


🌸 SYNOPSIS 🌸

int amvdec_set_canvases (struct amvdec_session *sess , u32 reg_base[] ,
       u32 reg_num[] );

it's giving "returns an int, takes a session and two arrays" β€” short, sweet, iconic πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

here's the breakdown, and yes you need all of them:

  • sess β€” current session πŸ’– like, the whole session you're working with right now
  • reg_base β€” Registry bases of where to write the canvas indexes πŸ“ this is the "where do the canvas indexes go" list
  • reg_num β€” number of contiguous registers after each reg_base (including it) πŸ”’ so it counts that base register too, don't forget, iykyk

🌈 SEE ALSO 🌈

go touch grass in these, bestie:


and that's the whole page, fr fr 🫢 this gem lives in ./drivers/staging/media/meson/..., dated October 2026, and it's filed under amvdec_set_canvases(9) β€” periodt πŸ’…βœ¨

πŸ“¦ where this page comes from