| | |
| | | int GetPacket(unsigned char **pktData, int *size, int *key); |
| | | public: // recorder |
| | | void OpenRecorder(); |
| | | |
| | | public: |
| | | // set device id |
| | | int SetDevID(const int devid){ devid_ = devid; return 0;} |
| | | |
| | | private: |
| | | // stream 参数 |
| | | std::string input_url_; |
| | | bool audio_; |
| | | int gb_, cpu_; |
| | | int gb_, cpu_, devid_; |
| | | bool run_dec_; |
| | | bool run_stream_; |
| | | bool run_rec_; |
| | |
| | | const int pix_fmt, const int scale_flag, const int gi); |
| | | void DestroyEncoder(void *h); |
| | | int Encode(void *hdl, uint8_t *in, const int w, const int h, uint8_t **out, int *size, int *key); |
| | | int GetGb28181Pic(const char *filename, char *retData, int *retDataLen); |
| | | int GetGb28181Pic(const char *filename, char *retData, int *retDataLen, const int tt); |
| | | } |
| | | |
| | | #endif |