acfa3fd5ddecc27e079c4f026beadb616d943d63
Stefan Schuermans added missing file header

Stefan Schuermans authored 12 years ago

1) /* Blinker
2)    Copyright 2011 Stefan Schuermans <stefan@blinkenarea.org>
3)    Copyleft GNU public license - http://www.gnu.org/copyleft/gpl.html
4)    a blinkenarea.org project */
5) 
Stefan Schuermans added MCUF sender modules t...

Stefan Schuermans authored 12 years ago

6) #include <iostream>
7) #include <string>
8) 
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

9) #include "CallMgr.h"
Stefan Schuermans first version of canvas mod...

Stefan Schuermans authored 12 years ago

10) #include "Canvas.h"
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

11) #include "Directory.h"
Stefan Schuermans implemented module manager...

Stefan Schuermans authored 13 years ago

12) #include "ModuleMgr.h"
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

13) #include "Player.h"
Stefan Schuermans implemented stream printer...

Stefan Schuermans authored 13 years ago

14) #include "Printer.h"
Stefan Schuermans implemented priority based...

Stefan Schuermans authored 12 years ago

15) #include "Priority.h"
Stefan Schuermans implemented resizer module

Stefan Schuermans authored 12 years ago

16) #include "Resizer.h"
Stefan Schuermans implemented scaler module

Stefan Schuermans authored 12 years ago

17) #include "Scaler.h"
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

18) #include "StreamMgr.h"
Stefan Schuermans added MCUF sender modules t...

Stefan Schuermans authored 12 years ago

19) #include "Udp4Sender.h"
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

20) 
21) using namespace Blinker;
22) 
Stefan Schuermans added MCUF sender modules t...

Stefan Schuermans authored 12 years ago

23) void run(const std::string &dirConfig)
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

24) {
Stefan Schuermans added MCUF sender modules t...

Stefan Schuermans authored 12 years ago

25)   Directory dirCfg(dirConfig);
Stefan Schuermans implemented module manager...

Stefan Schuermans authored 13 years ago

26) 
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

27)   CallMgr callMgr;
28)   StreamMgr streamMgr;
29) 
Stefan Schuermans first version of canvas mod...

Stefan Schuermans authored 12 years ago

30)   ModuleMgr<Canvas> canvasMgr(callMgr, streamMgr,
31)                               dirCfg.getSubdir("canvases"));
Stefan Schuermans implemented module manager...

Stefan Schuermans authored 13 years ago

32)   ModuleMgr<Player> playerMgr(callMgr, streamMgr,
33)                               dirCfg.getSubdir("players"));
34)   ModuleMgr<Printer> printerMgr(callMgr, streamMgr,
35)                                 dirCfg.getSubdir("printers"));
Stefan Schuermans implemented priority based...

Stefan Schuermans authored 12 years ago

36)   ModuleMgr<Priority> priorityMgr(callMgr, streamMgr,
37)                                   dirCfg.getSubdir("priorities"));
Stefan Schuermans implemented resizer module

Stefan Schuermans authored 12 years ago

38)   ModuleMgr<Resizer> resizerMgr(callMgr, streamMgr,
39)                                 dirCfg.getSubdir("resizers"));
Stefan Schuermans implemented scaler module

Stefan Schuermans authored 12 years ago

40)   ModuleMgr<Scaler> scalersMgr(callMgr, streamMgr,
41)                                dirCfg.getSubdir("scalers"));
Stefan Schuermans added MCUF sender modules t...

Stefan Schuermans authored 12 years ago

42)   ModuleMgr<Udp4Sender> udp4Mgr(callMgr, streamMgr,
43)                                 dirCfg.getSubdir("udp4senders"));
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

44) 
45)   callMgr.run();
Stefan Schuermans added MCUF sender modules t...

Stefan Schuermans authored 12 years ago

46) }
47) 
48) int main(int argc, const char *argv[])
49) {
50)   const char * dirConfig;
51) 
52)   if (argc < 2) {
53)     std::cerr << "usage: " << argv[0] << " config-directory" << std::endl;
54)     return 2;
55)   }
56)   dirConfig = argv[1];
57) 
58)   run(dirConfig);