nal_hevc_write_filler(9)
π nal_hevc_write_filler(9) π
okay bestie, welcome to the Kernel API Manual β this one's short but it's lowkey iconic. we're writing filler data, and yes, filler can slay. β¨
β¨ NAME β¨
nal_hevc_write_filler β write filler data RBSP π
πΈ SYNOPSIS πΈ
ssize_t nal_hevc_write_filler (const struct device *dev , void *dest ,
size_t n );
π¦ ARGUMENTS π¦
devβ device pointer. yeah, the device. it's giving "who am I? the device." πdestβ buffer to fill with filler data. this is where the filler goes, bestie π«Άnβ size of the buffer to fill with filler data. how many bytes of filler we're serving up π
π DESCRIPTION π
so what this does: it writes a filler data RBSP to dest with a size of n bytes, then returns the number of written filler data bytes. literally that simple, no cap β¨
Use this function to generate dummy data in an RBSP data stream that can be safely ignored by hevc decoders. not me writing data that everyone just agrees to ignore π it's giving "background character energy" but honestly? needed. the stream stays valid, the decoders stay unbothered, everyone wins π
The RBSP format of the filler data is specified in Rec. ITU-T H.265 (02/2018) 7.3.2.8 Filler data RBSP syntax β so if you wanna get into the nitty-gritty of the format, that's your reference, iykyk π
π§ RETURN π§
number of filler data bytes (including marker) or negative error. so either you get your byte count β marker included, don't forget the marker!! β or you get a negative error and it's giving ππ
π SEE ALSO π
- Kernel file
./drivers/media/platform/allegro-dvt/nal-hevc.cβ the source itself, go read it bestie, it ate π₯ nal_hevc_write_vps(9)β write VPS πnal_hevc_read_vps(9)β read VPS πnal_hevc_write_sps(9)β write SPS β¨nal_hevc_read_sps(9)β read SPS πΈnal_hevc_write_pps(9)β write PPS πnal_hevc_read_pps(9)β read PPS π¦nal_hevc_read_filler(9)β read filler, the mirror of this whole vibe π«Ά
lowkey reminder: n is the size of the buffer, and the return is the number of bytes written including the marker β don't mix those up, bestie, fr fr π
that's the whole page!! brought to you by ./drivers/media/platform/alleg... (yes it's truncated in the footer, she's mysterious like that π), October 2026 era β and the page name itself is nal_hevc_write_filler(9), so you always know exactly where you are π mwah, go write some filler, periodt π
β¨
π¦ 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