00001 /* 00002 * page_bttv.h Notebook v4l Capture Page Object 00003 * Copyright (C) 2001 Charles Yates <charles.yates@pandora.be> 00004 * Copyright (C) 2001-2007 Dan Dennedy <dan@dennedy.org> 00005 * 00006 * This program is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software Foundation, 00018 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00019 */ 00020 00021 #ifndef _PAGE_BTTV_H 00022 #define _PAGE_BTTV_H 00023 00024 #include <string> 00025 using std::string; 00026 00027 #include "kino_common.h" 00028 #include "page.h" 00029 #include "displayer.h" 00030 #include "v4l.h" 00031 00048 class PageBttv : public Page 00049 { 00050 private: 00051 // Imported 00052 KinoCommon *common; 00053 bool seeking; 00054 string lastPreferenceFilename; 00055 int channel; 00056 00057 // Video4Linux object 00058 GDKV4L *v4l; 00059 00060 public: 00061 PageBttv( KinoCommon *common ); 00062 virtual ~PageBttv(); 00063 void start(); 00064 void newFile( ); 00065 gulong activate(); 00066 void clean(); 00067 void videoStartOfMovie(); 00068 void videoPreviousScene(); 00069 void videoRewind(); 00070 void videoPlay(); 00071 void videoStop(); 00072 void videoFastForward(); 00073 void videoBack(); 00074 void videoForward(); 00075 void videoNextScene(); 00076 void videoEndOfMovie(); 00077 void startCapture(); 00078 void stopCapture(); 00079 void saveFrame(); 00080 }; 00081 00082 #endif
1.4.2