STRUCT VIDTV_S302M_ENCODER_INIT_ARGS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” like, the manual manual, and it's about to explain struct vidtv_s302m_encoder_init_args, which is literally just the args for the s302m encoder. that's it. that's the whole vibe. πŸŽ€


✨ SYNOPSIS ✨

here's the shape of it, no cap, copy it exactly:

struct vidtv_s302m_encoder_init_args {
    char *name;
    void *src_buf;
    u32 src_buf_sz;
    u16 es_pid;
    struct vidtv_encoder *sync;
    void (*last_sample_cb)(u32 sample_no);
    struct vidtv_encoder *head;
 };

like... look at her. main character struct energy. πŸ‘‘


🫢 Members 🫢

okay so let's go through the whole cast, one member at a time, and honestly? every single one of them ate:

  • name β€” a name to identify this particular instance. just a lil label so you know which one's which, iykyk 🏷️
  • src_buf β€” the source buffer! and here's the iconic part: if this is NULL, the encoder will default to a sine wave. so like, no buffer, no problem, she'll just sing for you 🌊🎢
  • src_buf_sz β€” the size of the source buffer. yes queen, tell us how big ✨
  • es_pid β€” the MPEG Elementary Stream PID to use. that's the PID, periodt πŸ”₯
  • sync β€” attempts to synchronize audio with this video encoder, if not NULL. so if you hand her a video encoder, she's gonna try to sync up. if it's NULL, she's not even gonna try, and honestly? valid πŸ¦‹
  • last_sample_cb β€” a callback called when the encoder runs out of data. it's a function pointer, it takes a u32 sample_no, and it's your moment to shine when the buffer's empty πŸ˜­πŸ’€
  • head β€” add to this chain. yes, we're chaining. we love a linked situation πŸ”—

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/media/test-drivers/vidtv/vidtv_s302m.h
  • struct vidtv_s302m_ctx(9) β€” go read that one next, bestie, it's giving related πŸ‘€

and that's the whole page!! mwah πŸ’– this lil gem lives over in ./drivers/media/test-drivers/v... and it's stamped October 2026 β€” so like, from the future, iconic behavior honestly. struct vidtv...er_init_args(9) out. slay πŸ§šβ€β™€οΈβœ¨

πŸ“¦ where this page comes from