filereader.h

来自「很好的流媒体服务器程序,linux或window下做流媒体的可以参考很不错哦」· C头文件 代码 · 共 66 行

H
66
字号
/******************************************************************************** filereader.h: file reader*-------------------------------------------------------------------------------* (c)1999-2001 VideoLAN* $Id: filereader.h,v 1.2 2002/07/12 14:38:56 jpsaman Exp $** Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>** 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 file stream reader (C_FileMpegReader).*******************************************************************************/#ifndef _FILE_READER_H_#define _FILE_READER_H_//------------------------------------------------------------------------------// C_MpegFileReader class//------------------------------------------------------------------------------////------------------------------------------------------------------------------class C_FileMpegReader : public C_MpegReader {public:  C_FileMpegReader(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_File m_cFile;  bool m_bLoop;  bool m_bEnd;};// Declaration and implementation of C_FileMpegReaderModuleDECLARE_MODULE(File, MpegReader, "file", C_Broadcast*);#else#error "Multiple inclusions of filereader.h"#endif

⌨️ 快捷键说明

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