vidtv_pes_write_into(9)
π vidtv_pes_write_into(9) β like, the whole manual, bestie
okay so welcome to the Kernel API Manual page for vidtv_pes_write_into, bestie. this is the one. the main character of PES-to-TS packet writing. let's get into it β¨
πΈ NAME πΈ
vidtv_pes_write_into β write a PES packet as MPEG-TS packets into a buffer. that's the whole vibe. no cap.
π SYNOPSIS π
u32 vidtv_pes_write_into (struct pes_write_args *args );
literally that's the call. one function, one pointer, iconic π
π¦ ARGUMENTS π¦
argsβ the args to use when writing. yes that's the whole description, it's giving brevity, and we respect it π«Ά
β¨ DESCRIPTION β¨
so what does this function actually do? okay so. it translates the ES data for one access unit from an encoder into MPEG TS packets. how? two-step glow-up:
- first it encapsulates the data with a PES header π
- then it splits the whole thing into TS packets βοΈ
after that, the data is written into the buffer pointed to by args.buf. that's it. that's the function. slay π
π₯ RETURN π₯
it returns the number of bytes written into the buffer.
and listen β this is usually NOT equal to the size of the access unit. like, don't be shocked. we needed space for PES headers, TS headers, and padding bytes, if any. the sizes are just built different, okay? π
π SEE ALSO π
- Kernel file
./drivers/media/test-drivers/vidtv/vidtv_pes.h struct pes_header_write_args(9)struct pes_ts_header_write_args(9)struct pes_write_args(9)
go read them, iykyk π
fr fr don't assume return value == access unit size. headers and padding are eating bytes and they're not sorry. π
okay that's the page!! mwah π this was written from ./drivers/media/test-drivers/v... and it's dated October 2026 β so yeah, future-coded and flawless. bye bestie, go write some packets ππ§
π¦ 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