STRUCT VIDTV_S302M_CTX(9)
π
struct vidtv_s302m_ctx(9) β Kernel API Manual β¨
okay so bestie, welcome to the manual page for struct vidtv_s302m_ctx(9), and honestly? it's giving "tiny backstage pass for the s302m encoder" π no cap, it's just the context struct, but she's iconic in her own lowkey way. let's get into it π¦
πΈ NAME πΈ
struct vidtv_s302m_ctx β s302m encoder context. that's the whole vibe π
β¨ SYNOPSIS β¨
struct vidtv_s302m_ctx {
struct vidtv_encoder *enc;
u32 frame_index;
u32 au_count;
int last_duration;
unsigned int note_offset;
enum musical_notes last_tone;
};
look at her. six members, zero notes, all business π₯ (ok maybe a little note, keep reading)
π Members π
encβ a pointer to the containing encoder structure. like, the struct that's literally holding this context π«Ά main character energy fr.frame_indexβ the current frame in a block. she knows exactly where she is in the block, not me tho π.au_countβ the total number of access units encoded up to now. it's a running tally, bestie, and it does not miss π―.last_durationβ duration of the tone that's currently being played. how long the note sticks around, basically πΆ.note_offsetβ position at the music tone array. yes queen, know your index π.last_toneβ the tone currently being played. the moment. the note. the vibe check π₯.
π¦ SEE ALSO π¦
- Kernel file
./drivers/media/test-drivers/vidtv/vidtv_s302m.h - struct
vidtv_s302m_encoder_init_args(9)
go read those too, iykyk π§
ngl, all the important stuff is in that header file, so if you're lost, that's your next stop. no cap π
mwah π that's the page! this one's from ./drivers/media/test-drivers/v... and it's dated October 2026 β so like, future-core of the kernel docs, 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