STRUCT PES_WRITE_ARGS(9)
struct pes_write_args(9) πβ¨
okay bestie, welcome to the Kernel API Manual page for struct pes_write_args(9) β yes, manual name folded in right here, no boring header repeat. This is the packetizer-args struct, and it's giving organized little data bundle. π
πΈ NAME πΈ
struct pes_write_args β Arguments for the packetizer. That's the whole name, no cap. π«Ά
β¨ SYNOPSIS β¨
struct pes_write_args {
void *dest_buf;
void *from;
u32 access_unit_len;
u32 dest_offset;
u32 dest_buf_sz;
u16 pid;
u32 encoder_id;
u8 *continuity_counter;
u16 stream_id;
bool send_pts;
u64 pts;
bool send_dts;
u64 dts;
u32 n_pes_h_s_bytes;
u64 pcr;
};
fields in order, exactly as they are β that's the vibe check passed. π
π Members π
Member-by-member, here's the tea:
dest_bufβ the buffer we're writing into. π«Άfromβ a pointer to the encoder buffer that's holding one access unit. β¨access_unit_lenβ the size of one access unit (plus any headers it might need). πdest_offsetβ where to start writing in thedest_buffer. π¦dest_buf_szβ the size of thedest_buffer. πΈpidβ the PID to use for the TS packets. πencoder_idβ encoder id (seevidtv_encoder.h). πcontinuity_counterβ incremented on every new TS packet. π₯stream_idβ the stream id to use. Ex: Audio streams (0xc0-0xdf), Video streams (0xe0-0xef). πsend_ptsβ should we send PTS? πptsβ the PTS value to send. πsend_dtsβ should we send DTS? βdtsβ the DTS value to send. πn_pes_h_s_bytesβ padding bytes β an encoder might use them if needed, and the decoder discards them. πpcrβ a counter driven by a27Mhzclock. π
π 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)vidtv_pes_write_into(9)
go peep those if you want the full see-also cluster β all present and accounted for, fr fr. π§
mwah, bye bestie π β source/version: ./drivers/media/test-drivers/v... Β· date: October 2026 Β· struct pes_write_args(9) out. β¨π
π¦ 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