| | |
| | | bool ret = rtspClient->init(&rtspConfig);
|
| | | if (!ret)
|
| | | {
|
| | | LOG_ERROR << "rtspClient.init error";
|
| | | LOG_ERROR << "rtspClient.init error" << std::endl;
|
| | | exit(EXIT_FAILURE);
|
| | | }
|
| | | }
|
| | |
| | | bool ret = h264Decoder->init(nullptr);
|
| | | if (!ret)
|
| | | {
|
| | | LOG_ERROR << "PL_H264Decoder.init error";
|
| | | LOG_ERROR << "PL_H264Decoder.init error" << std::endl;
|
| | | exit(EXIT_FAILURE);
|
| | | }
|
| | | }
|
| | |
| | | bool ret = avFrameYUV420->init(nullptr);
|
| | | if (!ret)
|
| | | {
|
| | | LOG_ERROR << "PL_AVFrameYUV420.init error";
|
| | | LOG_ERROR << "PL_AVFrameYUV420.init error" << std::endl;
|
| | | exit(EXIT_FAILURE);
|
| | | }
|
| | | }
|
| | |
| | | bool ret = ple->init(&config);
|
| | | if (!ret)
|
| | | {
|
| | | LOG_ERROR << "PL_Scale.init error";
|
| | | LOG_ERROR << "PL_Scale.init error" << std::endl;
|
| | | exit(EXIT_FAILURE);
|
| | | }
|
| | | }
|
| | |
| | |
|
| | | while(true)
|
| | | {
|
| | | //LOG_ERROR << "begin pipe";
|
| | | //LOG_ERROR << "begin pipe" << std::endl;
|
| | |
|
| | | PipeMaterial pm;
|
| | | if (pipeLine.pipe(&pm) == sensetimeFaceTrack);
|
| | |
| | | {
|
| | | PipeMaterial& facePM = ((PipeMaterial*)(pm.buffer))[1];
|
| | | st_ff_vect_t& faceFeatures = *((st_ff_vect_t*)facePM.buffer);
|
| | | LOG_NOTICE << "faceFeatures " << faceFeatures.size();
|
| | | LOG_NOTICE << "faceFeatures " << faceFeatures.size() << std::endl;
|
| | | }
|
| | |
|
| | | //LOG_ERROR << "end pipe";
|
| | | //LOG_ERROR << "end pipe" << std::endl;
|
| | | }
|
| | | }
|