STRUCT PES_HEADER_WRITE_ARGS(9)
π struct pes_header_write_args(9) π
ok so this is a page from the Kernel API Manual, and bestie, we're about to get into it β this struct is literally the little β¨gift bagβ¨ of arguments you hand over when you want a PES header written. think of it as the packing list before the write happens. no cap, every field matters. π
β¨ NAME β¨
struct pes_header_write_args β the arguments you pass in to write a PES header. that's it, that's the vibe. π¦
πΈ SYNOPSIS πΈ
struct pes_header_write_args {
void *dest_buf;
u32 dest_offset;
u32 dest_buf_sz;
u32 encoder_id;
bool send_pts;
u64 pts;
bool send_dts;
u64 dts;
u16 stream_id;
u32 n_pes_h_s_bytes;
u32 access_unit_len;
};
like, look at her. eleven fields. main character struct energy fr fr. π
π«Ά Members π«Ά
ok boom, field-by-field breakdown, i got you:
dest_bufβ the buffer you're writing into. the canvas. the destination. the place where the bytes go to live. πdest_offsetβ where you start writing inside thedest_buffer. not the beginning, the starting point β offset girlies rise. β¨dest_buf_szβ the size of thedest_buffer. know your limits bestie, respect the size. πencoder_idβ the encoder id (peepvidtv_encoder.hfor the deets π). this is how we know which encoder we're dealing with.send_ptsβ abool: are we sending PTS or not? yes/no, in or out, no in-between. π¦ptsβ the actual PTS value to send. the number itself. iconic. βsend_dtsβ aboolagain: should we send DTS? another vibe check, another yes/no. πΈdtsβ the DTS value to send. matching set withpts, we love a duo. πstream_idβ the stream id to use. for example: Audio streams (0xc0-0xdf), Video streams (0xe0-0xef). pick your lane, pick your id. π―n_pes_h_s_bytesβ padding bytes π. an encoder might use them if it needs to, and the decoder just throws them away β discarded, gone, not invited to the afterparty. πaccess_unit_lenβ the size of one access unit (including any headers it might need). note the emphasis on _one_ β singular. one unit. one vibe. π₯
π SEE ALSO π
- Kernel file
./drivers/media/test-drivers/vidtv/vidtv_pes.h struct pes_ts_header_write_args(9)struct pes_write_args(9)vidtv_pes_write_into(9)
go read those next, i promise they're worth it π§
ok that's the whole page!! mwah π this was brought to you by ./drivers/media/test-drivers/v..., dated October 2026, and no i will not be normal about a kernel struct. slay, periodt, see you in the next manpage bestie ππ
π¦ 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