| | |
| | | |
| | | class Recorder{ |
| | | public: |
| | | explicit Recorder(ffwrapper::FormatIn *in); |
| | | Recorder(ffwrapper::FormatIn *in, const std::string &id); |
| | | ~Recorder(); |
| | | |
| | | public: |
| | |
| | | void SetCallback(FUNC_REC_INFO cb){ |
| | | func_rec_info_ = cb; |
| | | } |
| | | |
| | | const bool ErrorOcurred(){return error_occured_;} |
| | | private: |
| | | void run_thread(); |
| | | |
| | |
| | | |
| | | std::list<avpacket> list_pkt_; |
| | | |
| | | std::unique_ptr<std::thread> thread_; |
| | | std::atomic_bool stop_recorder_; |
| | | std::mutex mutex_pkt_; |
| | | std::condition_variable cv_; |
| | | std::condition_variable cv_; |
| | | |
| | | std::unique_ptr<std::thread> thrd_; |
| | | |
| | | std::string dir_; |
| | | std::string id_; |
| | | |
| | | int64_t id_frame_; |
| | | int64_t id_frame_; |
| | | int file_frame_index_; |
| | | std::string file_path_; |
| | | FUNC_REC_INFO func_rec_info_; |
| | | |
| | | bool error_occured_; |
| | | }; |
| | | } |
| | | } |