| | |
| | | |
| | | int GetFPS(){return fps_;} |
| | | public: //decoder |
| | | void BuildDecoder(); |
| | | void OpenDecoder(); |
| | | void GetPicDecoder(unsigned char **data, int *w, int *h, int *format, int *length, int64_t *id); |
| | | public: // push stream |
| | | void CloseStream(); |
| | | void GetPacket(unsigned char **pktData, int *size, int *key); |
| | | public: // recorder |
| | | void OpenRecorder(); |
| | | private: |
| | | // stream 参数 |
| | | std::string input_url_; |
| | |
| | | int gb_, cpu_; |
| | | bool run_dec_; |
| | | bool run_stream_; |
| | | bool run_rec_; |
| | | // decoder 参数 |
| | | std::unique_ptr<std::thread> thread_; |
| | | std::atomic_bool stop_stream_; |