| | |
| | | ,audio_(false) |
| | | ,gb_(0) |
| | | ,cpu_(0) |
| | | ,devid_(-1) |
| | | ,run_dec_(false) |
| | | ,run_stream_(true) |
| | | ,run_rec_(false) |
| | |
| | | ,audio_(false) |
| | | ,gb_(0) |
| | | ,cpu_(0) |
| | | ,devid_(-1) |
| | | ,run_dec_(false) |
| | | ,run_stream_(true) |
| | | ,run_rec_(false) |
| | |
| | | prop.url_ = input; |
| | | prop.rtsp_tcp_ = true; |
| | | prop.gpu_acc_ = !cpu_; |
| | | prop.gpu_index_ = devid_; |
| | | |
| | | std::unique_ptr<FormatIn> in(new FormatIn(prop.gpuAccl())); |
| | | std::unique_ptr<FormatIn> in(new FormatIn(prop, prop.gpuAccl())); |
| | | int flag = -1; |
| | | if (gb_){ |
| | | flag = in->openGb28181(input, NULL); |
| | |
| | | return flag; |
| | | } |
| | | |
| | | int GetGb28181Pic(const char *rtspUrl, char *retData, int *retDataLen){ |
| | | int GetGb28181Pic(const char *rtspUrl, char *retData, int *retDataLen, const int tt){ |
| | | int ret = 0; |
| | | std::string fn = rtspUrl; |
| | | |
| | |
| | | return -1; |
| | | } |
| | | |
| | | int retLen = handle_gb28181->capturePic(handle_gb28181, retData, retDataLen); |
| | | int retLen = handle_gb28181->capturePic(handle_gb28181, retData, retDataLen, tt); |
| | | if(retLen == 0){ |
| | | logIt("do capturePic failed:%d"); |
| | | ret = -1; |