nal_hevc_write_pps(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ nal_hevc_write_pps β€” PPS NAL unit, but make it RBSP ✨

okay so this is a page from the Kernel API Manual, and it's about nal_hevc_write_pps β€” yes bestie, we're in kernel driver territory, put your hair up πŸ’…


🌸 SYNOPSIS 🌸

ssize_t nal_hevc_write_pps (const struct device *dev , void *dest ,
       size_t n , struct nal_hevc_pps *pps );

literally the whole function signature, character for character, no cap 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” device pointer. the lil handle to the device, she's just there living her life
  • dest β€” the buffer that is filled with RBSP data. this is where the magic goes ✨
  • n β€” maximum size of dest in bytes. the vibes have a limit, and this is it
  • pps β€” the struct nal_hevc_pps to convert to RBSP. this is our main character, we're turning her into RBSP data

πŸ”₯ DESCRIPTION πŸ”₯

Convert pps to RBSP data and write it into dest. that's the whole job, she's a converter, she's iconic πŸ‘‘

now here's the tea though: the size of the PPS NAL unit is not known in advance, and this function will fail if dest does not hold sufficient space for the PPS NAL unit. so like… give her room, bestie. no guessing-and-squeezing, she needs the full fit or it's a wrap 😭

fr fr, do not skimp on the buffer. she is not doing overflow math for you, she's just gonna fail and you'll be sad. πŸ’€

🌈 RETURN 🌈

number of bytes written to dest β€” or a negative error code if things went sideways πŸ™ˆ


πŸ’œ SEE ALSO πŸ’œ

the kernel file lives right here: ./drivers/media/platform/allegro-dvt/nal-hevc.c β€” go read it, it's giving lore πŸ¦‹

and the whole NAL squad, all of them, no one left out:

like a little family of functions, obsessed 🫢


okay and finally, the cute sign-off: this page came from ./drivers/media/platform/alleg... (the source path got a lil clipped in the footer, that's just how she came out the box) and she's dated October 2026 🌸 and yes, the header and footer both say nal_hevc_write_pps(9) because she's consistent like that. periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from