| | |
| | | struct avpacket; |
| | | } |
| | | |
| | | typedef std::function<std::shared_ptr<buz::Recorder>(ffwrapper::FormatIn*)> FN_REC; |
| | | // typedef std::function<std::shared_ptr<buz::Recorder>(ffwrapper::FormatIn*)> FN_REC; |
| | | |
| | | typedef struct _fn_rec{ |
| | | FN_REC fn_init; |
| | | std::shared_ptr<buz::Recorder> rec; |
| | | std::string rid; |
| | | std::string dir; |
| | | int min; |
| | | int max; |
| | | std::unique_ptr<buz::Recorder> rec; |
| | | }FnRec; |
| | | |
| | | class Wrapper{ |
| | |
| | | std::unique_ptr<ffwrapper::FormatIn> init_reader(const char* input); |
| | | // ffwrapper::FormatIn* init_reader_gb28181(const char* input); |
| | | void run_worker(ffwrapper::FormatIn *in, buz::avpacket &pkt); |
| | | std::shared_ptr<buz::Recorder> init_recorder(ffwrapper::FormatIn *in, std::string id,std::string dir, const int mind, const int maxd); |
| | | std::unique_ptr<buz::Recorder> init_recorder(ffwrapper::FormatIn *in, std::string id,std::string dir, const int mind, const int maxd); |
| | | |
| | | void cache_rec_info(std::string &id, int &index, std::string &path); |
| | | void cache_pic(std::shared_ptr<ffwrapper::FrameData> &frame, int64_t &id); |