| | |
| | | #ifndef _cffmpeg_stream_hpp_ |
| | | #define _cffmpeg_stream_hpp_ |
| | | |
| | | #include <list> |
| | | #include <deque> |
| | | #include <mutex> |
| | | #include <memory> |
| | | |
| | |
| | | class stream |
| | | { |
| | | private: |
| | | std::list<CPacket> list_pkt_; |
| | | std::deque<CPacket> list_pkt_; |
| | | std::mutex mutex_avpkt_; |
| | | ffwrapper::FormatIn *streamRef_; |
| | | const int max_size_; |
| | |
| | | stream(ffwrapper::FormatIn *in, const int maxSize); |
| | | ~stream(); |
| | | |
| | | int SetPacket(std::shared_ptr<ffwrapper::CodedData> data, int64_t &id); |
| | | int SetPacket(const CPacket &pkt); |
| | | void GetPacket(unsigned char **pktData, int *size, int *key); |
| | | void AudioSwitch(const bool a){audio_ = a;} |
| | | }; |