⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dvbreader.h

📁 很好的流媒体服务器程序,linux或window下做流媒体的可以参考很不错哦
💻 H
字号:
/******************************************************************************** dvbreader.h: file reader*-------------------------------------------------------------------------------* (c)1999-2002 VideoLAN* $Id: dvbreader.h,v 1.1.4.1 2003/02/03 11:45:56 nitrox Exp $** Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>*          Tristan Leteutre <tooney@videolan.org>*          Damien Lucas <nitrox@videolan.org>** 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.** 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.** 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.**-------------------------------------------------------------------------------* Implementation of a dvb stream reader (C_DvbMpegReader).*******************************************************************************/#ifndef _DVB_READER_H_#define _DVB_READER_H_//------------------------------------------------------------------------------// C_DvbFileReader class//------------------------------------------------------------------------------////------------------------------------------------------------------------------class C_DvbMpegReader : public C_MpegReader {public:  C_DvbMpegReader(C_Module* pModule, C_Broadcast* pBroadcast);  virtual void Init();  virtual void Close();  virtual int Read(byte* pBuff, int iSize);  virtual int Seek(s64 iOffset, int bStartPos);  virtual s64 Size();  virtual s64 GetPos();protected:  C_String m_strDeviceName;  int m_hFd;  bool m_bIgnoreTimeout;  bool m_bLoop;  bool m_bEnd;};// Declaration and implementation of C_FileMpegReaderModuleDECLARE_MODULE(Dvb, MpegReader, "dvb", C_Broadcast*);#else#error "Multiple inclusions of dvbreader.h"#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -