b455a75ced76b6da945cd5d192250885f3f554a9
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 added flexipix output suppo...

Stefan Schuermans authored 12 years ago

12) #include "FlexiPix.h"
Stefan Schuermans implemented module manager...

Stefan Schuermans authored 13 years ago

13) #include "ModuleMgr.h"
Stefan Schuermans split ModuleMgr.h into decl...

Stefan Schuermans authored 12 years ago

14) #include "ModuleMgr_impl.h"
Stefan Schuermans implemented output module t...

Stefan Schuermans authored 12 years ago

15) #include "Output.h"
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 13 years ago

23) 
24) using namespace Blinker;
25) 
Stefan Schuermans added MCUF sender modules t...

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 13 years ago

30)   CallMgr callMgr;
31)   StreamMgr streamMgr;
32) 
Stefan Schuermans first version of canvas mod...

Stefan Schuermans authored 12 years ago

33)   ModuleMgr<Canvas> canvasMgr(callMgr, streamMgr,
34)                               dirCfg.getSubdir("canvases"));
Stefan Schuermans added flexipix output suppo...

Stefan Schuermans authored 12 years ago

35)   ModuleMgr<FlexiPix> flexipixMgr(callMgr, streamMgr,
36)                                   dirCfg.getSubdir("flexipixes"));
Stefan Schuermans implemented output module t...

Stefan Schuermans authored 12 years ago

37)   ModuleMgr<Output> outputMgr(callMgr, streamMgr,
38)                               dirCfg.getSubdir("outputs"));
Stefan Schuermans implemented module manager...

Stefan Schuermans authored 13 years ago

39)   ModuleMgr<Player> playerMgr(callMgr, streamMgr,
40)                               dirCfg.getSubdir("players"));
41)   ModuleMgr<Printer> printerMgr(callMgr, streamMgr,
42)                                 dirCfg.getSubdir("printers"));
Stefan Schuermans implemented priority based...

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 13 years ago

51) 
52)   callMgr.run();
Stefan Schuermans added MCUF sender modules t...

Stefan Schuermans authored 12 years ago

53) }
54) 
55) int main(int argc, const char *argv[])
56) {
57)   const char * dirConfig;
58) 
59)   if (argc < 2) {
Stefan Schuermans added flexipix output suppo...

Stefan Schuermans authored 12 years ago

60)     std::cerr << "Blinker" << std::endl
61)               << "configuration:"BLINKER_CONFIG << std::endl
62)               << "usage: " << argv[0] << " config-directory" << std::endl;
Stefan Schuermans added MCUF sender modules t...

Stefan Schuermans authored 12 years ago

63)     return 2;
64)   }
65)   dirConfig = argv[1];
66) 
67)   run(dirConfig);