#ifndef _cffmpeg_stream_hpp_ #define _cffmpeg_stream_hpp_ #include #include #include #include "../common.hpp" namespace ffwrapper{ class FormatIn; } namespace cffmpeg_wrap{ class stream { private: std::deque list_pkt_; std::mutex mutex_avpkt_; ffwrapper::FormatIn *streamRef_; const int max_size_; bool audio_; public: stream(ffwrapper::FormatIn *in, const int maxSize); ~stream(); int SetPacket(const CPacket &pkt); void GetPacket(unsigned char **pktData, int *size, int *key); void AudioSwitch(const bool a){audio_ = a;} }; } #endif