98f22332738be6d595008b5d22a0857a31d5636a
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 13 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 implemented stream receiver

Stefan Schuermans authored 12 years ago

22) #include "Udp4Receiver.h"
Stefan Schuermans added MCUF sender modules t...

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

46)   ModuleMgr<Resizer> resizerMgr(callMgr, streamMgr,
47)                                 dirCfg.getSubdir("resizers"));
Stefan Schuermans implemented stream receiver

Stefan Schuermans authored 12 years ago

48)   ModuleMgr<Scaler> scalerMgr(callMgr, streamMgr,
49)                               dirCfg.getSubdir("scalers"));
50)   ModuleMgr<Udp4Receiver> udp4ReceiverMgr(callMgr, streamMgr,
51)                                           dirCfg.getSubdir("udp4receivers"));
52)   ModuleMgr<Udp4Sender> udp4SenderMgr(callMgr, streamMgr,
53)                                       dirCfg.getSubdir("udp4senders"));
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

54) 
55)   callMgr.run();
Stefan Schuermans added MCUF sender modules t...

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 13 years ago

66)     return 2;
67)   }
68)   dirConfig = argv[1];
69) 
70)   run(dirConfig);