STRUCT VIDTV_S302M_CTX(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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