STRUCT VIDTV_S302M_ENCODER_INIT_ARGS(9)
π 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 isNULL, 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 notNULL. so if you hand her a video encoder, she's gonna try to sync up. if it'sNULL, 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 au32 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
- 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