| | |
| | | }
|
| | | }
|
| | |
|
| | | //{
|
| | | // PL_Scale_Config config;
|
| | | // config.toWidth = 800;
|
| | | // config.toHeight = 600;
|
| | | // PL_Scale* ple = (PL_Scale*)pipeLine.push_elem("PL_Scale");
|
| | | // bool ret = ple->init(&config);
|
| | | // if (!ret)
|
| | | // {
|
| | | // LOG_ERROR << "PL_Scale.init error";
|
| | | // exit(EXIT_FAILURE);
|
| | | // }
|
| | | //}
|
| | | {
|
| | | PL_Scale_Config config;
|
| | | config.toWidth = 800;
|
| | | config.toHeight = 600;
|
| | | PL_Scale* ple = (PL_Scale*)pipeLine.push_elem("PL_Scale");
|
| | | bool ret = ple->init(&config);
|
| | | if (!ret)
|
| | | {
|
| | | LOG_ERROR << "PL_Scale.init error";
|
| | | exit(EXIT_FAILURE);
|
| | | }
|
| | | }
|
| | |
|
| | | //{
|
| | | // SensetimeFaceTrackConfig config;
|
| | | // //config.generate_face_feature = true;
|
| | | // PL_SensetimeFaceTrack* ple = (PL_SensetimeFaceTrack*)pipeLine.push_elem("PL_SensetimeFaceTrack");
|
| | | // ple->init(&config);
|
| | | //}
|
| | | {
|
| | | SensetimeFaceTrackConfig config;
|
| | | //config.generate_face_feature = true;
|
| | | PL_SensetimeFaceTrack* ple = (PL_SensetimeFaceTrack*)pipeLine.push_elem("PL_SensetimeFaceTrack");
|
| | | ple->init(&config);
|
| | | }
|
| | |
|
| | | //PipeLine pipeLine2;
|
| | | //{
|
| | |
| | | // }
|
| | | //}
|
| | |
|
| | | //{
|
| | | // PL_H264Encoder_Config config;
|
| | | // PL_H264Encoder* h264Encoder = (PL_H264Encoder*)pipeLine.push_elem("PL_H264Encoder");
|
| | | // bool ret = h264Encoder->init(&config);
|
| | | // if (!ret)
|
| | | // {
|
| | | // LOG_ERROR << "PL_H264Encoder.init error";
|
| | | // exit(EXIT_FAILURE);
|
| | | // }
|
| | | //}
|
| | | //
|
| | | //{
|
| | | // PL_RTSPServer* rtspServer = (PL_RTSPServer*)pipeLine.push_elem("PL_RTSPServer");
|
| | | // bool ret = rtspServer->init(nullptr);
|
| | | // if (!ret)
|
| | | // {
|
| | | // LOG_ERROR << "rtspServer.init error";
|
| | | // exit(EXIT_FAILURE);
|
| | | // }
|
| | | //}
|
| | | {
|
| | | PL_H264Encoder_Config config;
|
| | | PL_H264Encoder* h264Encoder = (PL_H264Encoder*)pipeLine.push_elem("PL_H264Encoder");
|
| | | bool ret = h264Encoder->init(&config);
|
| | | if (!ret)
|
| | | {
|
| | | LOG_ERROR << "PL_H264Encoder.init error";
|
| | | exit(EXIT_FAILURE);
|
| | | }
|
| | | }
|
| | | |
| | | {
|
| | | PL_RTSPServer* rtspServer = (PL_RTSPServer*)pipeLine.push_elem("PL_RTSPServer");
|
| | | bool ret = rtspServer->init(nullptr);
|
| | | if (!ret)
|
| | | {
|
| | | LOG_ERROR << "rtspServer.init error";
|
| | | exit(EXIT_FAILURE);
|
| | | }
|
| | | }
|
| | |
|
| | | while(true)
|
| | | {
|