#ifndef _ENCODER_H #define _ENCODER_H #include "picinfo.h" #include "thread.h" class Encoder: public Thread { private: Frame *n_xn; Frame *n_xmcn1; Frame *n_xpn1; PicInfo *p; frformat_t picformat; int tx_fd; int img_fd; public: Encoder(); ~Encoder(); void init_encoder(frformat_t &format, int sockfd, int filefd); void cleanup(void); protected: void Run(void); }; #endif