📄 videoinput.h
字号:
/******************************************************************************** videoinput.h: Video Input class definition*-------------------------------------------------------------------------------* (c)1999-2001 VideoLAN* $Id: videoinput.h,v 1.5 2002/09/26 16:05:33 jpsaman Exp $** Authors: Cyril Deguet <asmax@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.**-------------------------------------------------------------------------------* This input has been designed to handle Video4linux devices**-------------------------------------------------------------------------------* Current status:********************************************************************************/#ifndef _VIDEO_INPUT_H_#define _VIDEO_INPUT_H_//------------------------------------------------------------------------------// C_VideoInput class//------------------------------------------------------------------------------class C_VideoInput : public C_Input{public: C_VideoInput(C_Module* pModule, const C_String& strName); ~C_VideoInput();protected: // Init/termination methods virtual void OnInit(); virtual void OnDestroy(); // Selection of the pgrms to broadcast virtual void OnStartStreaming(C_Broadcast* pBroadcast); virtual void OnResumeStreaming(C_Broadcast* pBroadcast); virtual void OnSuspendStreaming(C_Broadcast* pBroadcast); virtual void OnStopStreaming(C_Broadcast* pBroadcast); virtual void OnUpdateProgram(C_String strProgram, C_String strFileName, C_String strType); virtual void OnDeleteProgram(C_String strProgram); virtual C_List<C_Program> OnGetAvailablePgrms();private: // Input configuration C_String m_strDevice; C_String m_strType; // Programs names // the program ID is m_vProgramNames.Find(strName) + 1 C_Vector<C_String> m_vProgramNames; // List of currently running readers and streamers C_HashTable<handle, C_MpegConverter> m_cConverters; C_HashTable<handle, C_TsStreamer> m_cStreamers;};// Declaration and implementation of C_VideoInputModuleDECLARE_MODULE(Video, Input, "video", const C_String&);#else#error "Multiple inclusions of videoinput.h"#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -