STRUCT PES_WRITE_ARGS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 the dest_buffer. πŸ¦‹
  • dest_buf_sz β€” the size of the dest_buffer. 🌸
  • pid β€” the PID to use for the TS packets. πŸ’…
  • encoder_id β€” encoder id (see vidtv_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 a 27Mhz clock. πŸ“

πŸ”— 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