nal_hevc_write_vps(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ nal_hevc_write_vps β€” a Kernel API Manual moment πŸ’œ

okay so bestie, real talk: this one lives in the Kernel API Manual and it's called nal_hevc_write_vps. Lowkey niche, highkey iconic.

✨ NAME ✨

nal_hevc_write_vps β€” write that PPS NAL unit into RBSP format πŸŽ€

yeah, the NAME line says PPS even though literally everything else in here is about the VPS. That's what the page says, so that's what I'm telling you. Not me being chaotic, that's just the lore. iykyk πŸ’…

🌸 SYNOPSIS 🌸

ssize_t nal_hevc_write_vps (const struct device *dev , void *dest ,
       size_t n , struct nal_hevc_vps *vps );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the device pointer. ur lil device bestie 🫢
  • dest β€” the buffer that gets filled with RBSP data. this is where the magic lands ✨
  • n β€” the maximum size of dest, in bytes. it's giving "how much room do we actually have" πŸ“
  • vps β€” the struct nal_hevc_vps you wanna convert to RBSP. the main character of this whole operation πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

So what it does: convert vps to RBSP data and write it into dest. Simple. Slay. Periodt.

But here's the tea you actually need, and I'm not gonna sugarcoat it: the size of the VPS NAL unit is not known in advance 😭 and this function will fail if dest does not hold sufficient space for the VPS NAL unit.

so like… make sure dest is big enough. If it isn't, this whole thing is gonna flop. No cap. πŸ’€

πŸ”₯ RETURN πŸ”₯

  • the number of bytes written to dest πŸŽ‰
  • or a negative error code πŸ™ˆ

🌈 SEE ALSO 🌈

like, the whole friend group fr fr ⭐


okay that's the whole page, bestie πŸ’œ it's from the source ./drivers/media/platform/alleg..., dated October 2026, and it's page nal_hevc_write_vps(9) β€” go forth and write those VPS NAL units, ur doing amazing πŸŽ€πŸ’…βœ¨

πŸ“¦ where this page comes from