3534d9ac8f9b2b25d33aa6854358ceff94f8a511
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 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) 
6) #ifndef STREAM_H
7) #define STREAM_H
8) 
9) #include <set>
Stefan Schuermans added stream name to stream...

Stefan Schuermans authored 12 years ago

10) #include <string>
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

11) 
12) #include <BlinkenLib/BlinkenFrame.h>
13) 
14) #include "StreamRecv.h"
15) 
16) namespace Blinker {
17) 
18) /// a video stream
Stefan Schuermans added stream name to stream...

Stefan Schuermans authored 12 years ago

19) class Stream
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

20) {
21) protected:
22)   /// set of receivers of this stream
23)   typedef std::set<StreamRecv *> Recvs;
24) 
25) public:
26)   /// constructor
27)   Stream();
28) 
29)   /// virtual destructor
30)   virtual ~Stream();
31) 
32) public:
33)   /**
34)    * @brief attach a stream receiver
35)    * @param[in] recv stream receiver to attach
36)    */
37)   void attach(StreamRecv *recv);
38) 
39)   /**
40)    * @brief detach a stream receiver
41)    * @param[in] recv stream receiver to detach
42)    */
43)   void detach(StreamRecv *recv);
44) 
45)   /**
46)    * @brief set current frame
Stefan Schuermans merged frame processing wit...

Stefan Schuermans authored 12 years ago

47)    * @param[in] pFrame current frame (NULL for none)
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

48)    */
49)   virtual void setFrame(stBlinkenFrame *pFrame);
50) 
Stefan Schuermans add function to get current...

Stefan Schuermans authored 13 years ago

51)   /**
52)    * @brief get current frame
Stefan Schuermans simplified interface of get...

Stefan Schuermans authored 12 years ago

53)    * @return current frame (NULL for none)
Stefan Schuermans add function to get current...

Stefan Schuermans authored 13 years ago

54)    */
Stefan Schuermans simplified interface of get...

Stefan Schuermans authored 12 years ago

55)   stBlinkenFrame * getCurFrame() const;
Stefan Schuermans add function to get current...

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 13 years ago

57) protected:
Stefan Schuermans added stream name to stream...

Stefan Schuermans authored 12 years ago

58)   /// stream name
59)   std::string m_name;
Stefan Schuermans implemented stream printer...

Stefan Schuermans authored 13 years ago

60)   /// current frame (or NULL if no frame)
61)   stBlinkenFrame *m_pFrame;
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

62)   /// receivers of this stream
63)   Recvs m_recvs;
Stefan Schuermans added stream name to stream...

Stefan Schuermans authored 12 years ago

64) 
65) friend class StreamMgr;