/* * This Software is the original work of Daniel TUNG * This Software is submitted in partial fulfillment of the * requirements for the degree of BCSE. * Dept. Computer Science, Monash University 2000 * * Copyright (c) 2000 beetung@cs.monash.edu.au * beetung@geocities.com */ #include #include "streamer.h" #include "bttv.h" #include "semaphore.h" struct video_mmap BttvCapture::vMmap[3]; struct video_mbuf BttvCapture::vMbuf; int BttvCapture::fd; int BttvCapture::frameCurr; /////////////////////////////////////////////////////////// ///---begins--- Frame Class Function Body ---begins---/// /////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// //---begins--- Streamer Class Function Body ---begins---// //////////////////////////////////////////////////////////// //-------------------- Streamer::Streamer() : BaseSema(aSem), aSem(), bttv(aSem) { //-------------------- cerr << " Streamer::Streamer() " << endl; /// /// Open "/dev/video" /// cout << " opening /dev/video ..." ; if (!bttv.isOpen()) cout << "(fail) " << endl; else cout << "success" << endl; } //-------------------- Streamer::~Streamer() { //-------------------- cerr << "~Streamer() " << endl; cout <<" closing .../dev/video " << endl; }