| | |
| | | #include <mutex> |
| | | #include <memory> |
| | | |
| | | #include "../common.hpp" |
| | | |
| | | namespace ffwrapper{ |
| | | class FormatIn; |
| | | class CodedData; |
| | | } |
| | | |
| | | namespace cffmpeg_wrap{ |
| | | class stream |
| | | { |
| | | private: |
| | | std::list<std::shared_ptr<ffwrapper::CodedData> > list_avpkt_; |
| | | std::list<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); |
| | | int SetPacket(std::shared_ptr<ffwrapper::CodedData> data, int64_t &id); |
| | | void GetPacket(unsigned char **pktData, int *size, int *key); |
| | | void AudioSwitch(const bool a){audio_ = a;} |
| | | }; |