X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FSocket%2FProtocols%2FDVB%2FDVBProtocolWrapper.cc;h=96c172f563ea813892bcb9ba86b3f746ae624a0a;hb=ab7ff164ab5ae711ec09ce2b24228510f1ffdcff;hp=25abd610c97e9a0a323e342b530c657a4ee35eec;hpb=fde4399789762f8257f7361761bd1a798068e717;p=senf.git diff --git a/senf/Socket/Protocols/DVB/DVBProtocolWrapper.cc b/senf/Socket/Protocols/DVB/DVBProtocolWrapper.cc index 25abd61..96c172f 100644 --- a/senf/Socket/Protocols/DVB/DVBProtocolWrapper.cc +++ b/senf/Socket/Protocols/DVB/DVBProtocolWrapper.cc @@ -2,111 +2,128 @@ // // Copyright (C) 2007 // Fraunhofer Institute for Open Communication Systems (FOKUS) -// Competence Center NETwork research (NET), St. Augustin, GERMANY -// Anton Gillert // -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. +// The contents of this file are subject to the Fraunhofer FOKUS Public License +// Version 1.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// http://senf.berlios.de/license.html // -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. +// The Fraunhofer FOKUS Public License Version 1.0 is based on, +// but modifies the Mozilla Public License Version 1.1. +// See the full license text for the amendments. // -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the -// Free Software Foundation, Inc., -// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - +// Software distributed under the License is distributed on an "AS IS" basis, +// WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +// for the specific language governing rights and limitations under the License. +// +// The Original Code is Fraunhofer FOKUS code. +// +// The Initial Developer of the Original Code is Fraunhofer-Gesellschaft e.V. +// (registered association), Hansastraße 27 c, 80686 Munich, Germany. +// All Rights Reserved. +// +// Contributor(s): +// Anton Gillert /** \file \brief DVBSocketController non-inline non-template implementation */ #include "DVBProtocolWrapper.hh" // Custom includes +#include +#include #define prefix_ -///////////////////////////////cc.p//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// -prefix_ senf::DVBSectionProtocolWrapper::DVBSectionProtocolWrapper(senf::DVBDemuxSectionHandle sh) +prefix_ senf::DVBSectionProtocolWrapper::DVBSectionProtocolWrapper(senf::DVBDemuxSectionHandle sh) : protocol(sh.protocol()), dir(this) { - namespace kw = senf::console::kw; - namespace fty = senf::console::factory; + namespace kw = console::kw; + namespace fty = console::factory; dir.add("buffersize", fty::Command(&DVBSectionProtocolWrapper::setBufferSize, this) - .doc("Set the size of the circular buffer used for filtered data.") - .arg("size", "in byte") ); + .doc("Set the size of the circular buffer used for filtered data.") + .arg("size", "in byte") ); dir.add("start", fty::Command(&DVBSectionProtocolWrapper::startFiltering, this) - .doc("Starts filtering") ); + .doc("Starts filtering") ); dir.add("stop", fty::Command(&DVBSectionProtocolWrapper::setBufferSize, this) - .doc("Stops filtering") ); - - dir.add("filter", - fty::Command, - unsigned, - unsigned, - unsigned) - >(&DVBSectionProtocolWrapper::setSectionFilter, this) - .arg("pid", "pid to filter") - .arg("filter", "filter", - kw::default_value = 62, - kw::default_doc = "0x3e") - .arg("flags", "or-able: CHECK_CRC, ONESHOT, IMMEDIATE_START, KERNEL_CLIENT", - kw::default_value = DMX_IMMEDIATE_START | DMX_CHECK_CRC, - kw::default_doc = "(IMMEDIATE_START CHECK_CRC)") - .arg("mask", "mask", - kw::default_value = 0xff, - kw::default_doc = "0xff") - .arg("mode", "mode", - kw::default_value = 0, - kw::default_doc = "0x00") - .arg("timeout", "timeout", - kw::default_value = 0, - kw::default_doc = "0x00") - .doc("Sets parameters for section filter.") ); + .doc("Stops filtering") ); + + dir.add("filter", + fty::Command, + unsigned, + unsigned, + unsigned) + >(&DVBSectionProtocolWrapper::setSectionFilter, this) + .arg("pid", "pid to filter") + .arg("filter", "filter", + kw::default_value = 62, + kw::default_doc = "0x3e") + .arg("flags", "or-able: CHECK_CRC, ONESHOT, IMMEDIATE_START, KERNEL_CLIENT", + kw::default_value = DMX_IMMEDIATE_START | DMX_CHECK_CRC, + kw::default_doc = "(IMMEDIATE_START CHECK_CRC)") + .arg("mask", "mask", + kw::default_value = 0xff, + kw::default_doc = "0xff") + .arg("mode", "mode", + kw::default_value = 0, + kw::default_doc = "0x00") + .arg("timeout", "timeout", + kw::default_value = 0, + kw::default_doc = "0x00") + .doc("Sets parameters for section filter.") ); dir.add("stop", fty::Command(&DVBSectionProtocolWrapper::setBufferSize, this) - .doc("Stops filtering") ); + .doc("Stops filtering") ); } -prefix_ senf::DVBPESProtocolWrapper::DVBPESProtocolWrapper(senf::DVBDemuxPESHandle sh) - : protocol(sh.protocol()), dir(this) +prefix_ senf::DVBPESProtocolWrapper::DVBPESProtocolWrapper(senf::DVBDemuxPESHandle sh) + : protocol(sh.protocol()), dir(this) { - namespace kw = senf::console::kw; - namespace fty = senf::console::factory; - - dir.add("filter", - fty::Command) - >(&DVBPESProtocolWrapper::setPESFilter, this) - .arg("pid", "pid to filter") - .arg("input", "input-filter: DMX_IN_FRONTEND DMX_IN_DVR ") - .arg("output", "output-filter: DMX_OUT_DECODER DMX_OUT_TAP DMX_OUT_TS_TAP ") - .arg("pesType", "PES type: DMX_PES_AUDIO[0-3] DMX_PES_VIDEO[0-3] " - "DMX_PES_TELETEXT[0-3], DMX_PES_SUBTITLE[0-3], DMX_PES_PCR[0-3], " - "DMX_PES_OTHER") - .arg("flags", "or-able: CHECK_CRC, ONESHOT, IMMEDIATE_START, KERNEL_CLIENT", - kw::default_value = DMX_IMMEDIATE_START | DMX_CHECK_CRC, - kw::default_doc = "(IMMEDIATE_START CHECK_CRC)") - .doc("Sets parameters for PES filter.") ); - + namespace kw = console::kw; + namespace fty = console::factory; + + dir.add("filter", + fty::Command) + >(&DVBPESProtocolWrapper::setPESFilter, this) + .arg("pid", "pid to filter") + .arg("input", "input-filter: DMX_IN_FRONTEND DMX_IN_DVR ") + .arg("output", "output-filter: DMX_OUT_DECODER DMX_OUT_TAP DMX_OUT_TS_TAP ") + .arg("pesType", "PES type: DMX_PES_AUDIO[0-3] DMX_PES_VIDEO[0-3] " + "DMX_PES_TELETEXT[0-3], DMX_PES_SUBTITLE[0-3], DMX_PES_PCR[0-3], " + "DMX_PES_OTHER") + .arg("flags", "or-able: CHECK_CRC, ONESHOT, IMMEDIATE_START, KERNEL_CLIENT", + kw::default_value = DMX_IMMEDIATE_START | DMX_CHECK_CRC, + kw::default_doc = "(IMMEDIATE_START CHECK_CRC)") + .doc("Sets parameters for PES filter.") ); + dir.add("start", fty::Command(&DVBPESProtocolWrapper::startFiltering, this) - .doc("Starts filtering") ); + .doc("Starts filtering") ); dir.add("stop", fty::Command(&DVBPESProtocolWrapper::stopFiltering, this) - .doc("Stops filtering") ); + .doc("Stops filtering") ); } -///////////////////////////////cc.e//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// #undef prefix_ + + +// Local Variables: +// mode: c++ +// fill-column: 100 +// c-file-style: "senf" +// indent-tabs-mode: nil +// ispell-local-dictionary: "american" +// compile-command: "scons -u test" +// comment-column: 40 +// End: