~ubuntu-branches/ubuntu/wily/sflphone/wily

« back to all changes in this revision

Viewing changes to daemon/src/video/video_receive_thread.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2015-01-07 14:51:16 UTC
  • mfrom: (4.3.5 sid)
  • Revision ID: package-import@ubuntu.com-20150107145116-yxnafinf4lrdvrmx
Tags: 1.4.1-0.1ubuntu1
* Merge with Debian, remaining changes:
 - Drop soprano, nepomuk build-dep
* Drop ubuntu patches, now upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
#include "video_decoder.h"
35
35
#include "shm_sink.h"
36
 
#include "sflthread.h"
 
36
#include "threadloop.h"
37
37
#include "noncopyable.h"
38
38
 
39
39
#include <map>
46
46
 
47
47
class SocketPair;
48
48
 
49
 
class VideoReceiveThread : public VideoGenerator, public SFLThread  {
 
49
class VideoReceiveThread : public VideoGenerator {
50
50
public:
51
51
    VideoReceiveThread(const std::string &id,
52
52
                       const std::map<std::string, std::string> &args);
53
53
    ~VideoReceiveThread();
 
54
    void startLoop();
54
55
 
55
56
    void addIOContext(SocketPair &socketPair);
56
57
    void setRequestKeyFrameCallback(void (*)(const std::string &));
57
 
    void addReceivingDetails(std::map<std::string, std::string> &details);
58
58
    void enterConference();
59
59
    void exitConference();
60
60
 
87
87
    static int readFunction(void *opaque, uint8_t *buf, int buf_size);
88
88
 
89
89
 
90
 
    // as SFLThread
 
90
    ThreadLoop loop_;
 
91
 
 
92
    // used by ThreadLoop
91
93
    bool setup();
92
94
    void process();
93
95
    void cleanup();