nal_hevc_write_vps(9)
π 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 ofdest, in bytes. it's giving "how much room do we actually have" πvpsβ thestruct nal_hevc_vpsyou 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 π
- Kernel file
./drivers/media/platform/allegro-dvt/nal-hevc.cπ§ nal_hevc_read_vps(9)nal_hevc_write_sps(9)nal_hevc_read_sps(9)nal_hevc_write_pps(9)nal_hevc_read_pps(9)nal_hevc_write_filler(9)nal_hevc_read_filler(9)
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
- 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