dvb_dmx_swfilter_packets(9)
β¨ dvb_dmx_swfilter_packets(9) β¨
okay so bestie, welcome to the Kernel API Manual π you're about to meet dvb_dmx_swfilter_packets β the little routine that runs the DVB software filter over a whole buffer stuffed with multiple MPEG-TS packets, each one 188 bytes. yes, every single one. 188. iconic number, no notes π
πΈ SYNOPSIS πΈ
void dvb_dmx_swfilter_packets (struct dvb_demux *demux , const u8 *buf ,
size_t count );
π ARGUMENTS π
demuxβ a pointer tostruct dvb_demux. that's the demuxer bestie in question π«Άbufβ the buffer holding the data you want filtered β¨countβ how many MPEG-TS packets you've got in there, and remember each one is 188 bytes big π
π¦ DESCRIPTION π¦
so what does it actually do? the routine will discard a DVB packet that doesn't start with 0x47 π like, if the first byte isn't 0x47, it's not coming to the party. bye.
reach for this routine when the DVB demux fills MPEG-TS buffers that are already aligned β that's literally the whole vibe check here π
β NOTE β
thebufsize should have size equal tocount * 188. do the math, bestie, don't make it awkward π
π SEE ALSO π
go check out the Kernel file ./include/media/dvb_demux.h and friends:
enum dvb_dmx_filter_type(9)enum dvb_dmx_state(9)struct dvb_demux_filter(9)struct dvb_demux_feed(9)struct dvb_demux(9)dvb_dmx_init(9)dvb_dmx_release(9)dvb_dmx_swfilter(9)dvb_dmx_swfilter_204(9)dvb_dmx_swfilter_raw(9)
and that's the whole page, bestie! β brought to you from ./include/media, October 2026, as part of the Kernel API Manual π§ββοΈ thank u for reading, slay, periodt π
π¦ 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