29 (DMX_PES_SUBTITLE0)(DMX_PES_PCR0)(DMX_PES_AUDIO1)(DMX_PES_VIDEO1)(DMX_PES_TELETEXT1)
30 (DMX_PES_SUBTITLE1)(DMX_PES_PCR1)(DMX_PES_AUDIO2)(DMX_PES_VIDEO2)(DMX_PES_TELETEXT2)
31 (DMX_PES_SUBTITLE2)(DMX_PES_PCR2)(DMX_PES_AUDIO3)(DMX_PES_VIDEO3)(DMX_PES_TELETEXT3)
32 (DMX_PES_SUBTITLE3)(DMX_PES_PCR3)(DMX_PES_OTHER));
36 (CHECK_CRC)(ONESHOT)(IMMEDIATE_START));
39 (CHECK_CRC)(ONESHOT)(IMMEDIATE_START));
43 : protocol(sh.protocol())
45 namespace kw = console::kw;
46 namespace fty = console::factory;
49 .doc(
"Set the size of the circular buffer used for filtered data.")
50 .arg(
"size",
"in byte") );
53 .doc(
"Starts filtering") );
56 .doc(
"Stops filtering") );
59 fty::Command<
void (
unsigned short int,
66 .arg(
"pid",
"pid to filter")
67 .arg(
"filter",
"filter",
68 kw::default_value = 62,
69 kw::default_doc =
"0x3e")
70 .arg(
"flags",
"or-able: CHECK_CRC, ONESHOT, IMMEDIATE_START",
71 kw::default_value = DMX_IMMEDIATE_START | DMX_CHECK_CRC,
72 kw::default_doc =
"(IMMEDIATE_START CHECK_CRC)")
74 kw::default_value = 0xff,
75 kw::default_doc =
"0xff")
77 kw::default_value = 0,
78 kw::default_doc =
"0x00")
79 .arg(
"timeout",
"timeout",
80 kw::default_value = 0,
81 kw::default_doc =
"0x00")
82 .doc(
"Sets parameters for section filter.") );
85 .doc(
"Stops filtering") );
90 : protocol(sh.protocol())
92 namespace kw = console::kw;
93 namespace fty = console::factory;
95 fty::Command<
void (
unsigned short int,
101 .arg(
"pid",
"pid to filter")
102 .arg(
"input",
"input-filter: DMX_IN_FRONTEND DMX_IN_DVR ")
103 .arg(
"output",
"output-filter: DMX_OUT_DECODER DMX_OUT_TAP DMX_OUT_TS_TAP ")
104 .arg(
"pesType",
"PES type: DMX_PES_AUDIO[0-3] DMX_PES_VIDEO[0-3] " 105 "DMX_PES_TELETEXT[0-3], DMX_PES_SUBTITLE[0-3], DMX_PES_PCR[0-3], " 107 .arg(
"flags",
"or-able: CHECK_CRC, ONESHOT, IMMEDIATE_START",
108 kw::default_value = DMX_IMMEDIATE_START | DMX_CHECK_CRC,
109 kw::default_doc =
"(IMMEDIATE_START CHECK_CRC)")
110 .doc(
"Sets parameters for PES filter.") );
113 .doc(
"Starts filtering") );
116 .doc(
"Stops filtering") );
void stopFiltering()
Stops filtering.
void setBufferSize(unsigned long size)
Set the size of the circular buffer used for filtered data.
senf::console::ScopedDirectory dir
void startFiltering()
Starts filtering.
void setPESFilter(unsigned short int pid, dmx_input_t input, dmx_output_t output, dmx_pes_type_t pesType, unsigned int flags)
DVBPESProtocolWrapper(senf::DVBDemuxPESHandle sh)
Protocol specific socket handle (client interface)
SENF_CONSOLE_REGISTER_ENUM(dmx_input_t,(DMX_IN_FRONTEND)(DMX_IN_DVR))
void setSectionFilter(unsigned short int pid, uint8_t filter, unsigned int flags, uint8_t mask, uint8_t mode, unsigned int timeout)
SENF_CONSOLE_REGISTER_ENUM_MEMBER(DVBSectionProtocolWrapper, Flags,(CHECK_CRC)(ONESHOT)(IMMEDIATE_START))
senf::console::ScopedDirectory dir
DVBSectionProtocolWrapper(senf::DVBDemuxSectionHandle sh)
void startFiltering()
Starts filtering.
NodeType & add(std::string const &name, boost::shared_ptr< NodeType > node)