| | |
| | | #include <memory> |
| | | |
| | | namespace ffwrapper{ |
| | | class FormatIn; |
| | | class CodedData; |
| | | } |
| | | |
| | |
| | | private: |
| | | std::list<std::shared_ptr<ffwrapper::CodedData> > list_avpkt_; |
| | | std::mutex mutex_avpkt_; |
| | | ffwrapper::FormatIn *streamRef_; |
| | | const int max_size_; |
| | | bool audio_; |
| | | public: |
| | | explicit stream(const int maxSize); |
| | | stream(ffwrapper::FormatIn *in, const int maxSize); |
| | | ~stream(); |
| | | |
| | | int SetPacket(std::shared_ptr<ffwrapper::CodedData> data); |
| | | void GetPacket(unsigned char **pktData, int *size, int *key); |
| | | void AudioSwitch(const bool a){audio_ = a;} |
| | | }; |
| | | |
| | | } |