#ifndef _DECODER_H #define _DECODER_H #include #include "picinfo.h" #include "thread.h" class Decoder: public Thread { private: Frame *n_xn; Frame *n_xmcn1; Frame *n_xpn1; PicInfo *p; frformat_t picformat; int rx_fd; public: Decoder(); ~Decoder(); void setformat(frformat_t &format); void init_decoder(frformat_t &format, int sockfd, Widget toplevel, Widget picW); void cleanup(void); protected: void Run(void); }; int wait_for_connect(u_short port); #endif