Commit 080131b6c83c14d7fefd815d3c8580533a23c814

Authored by Hu Chunming
1 parent c7af27aa

代码优化,没有修改逻辑

vehicle_structure_platform.git0708-3080-trt-face/src/VPT/MutliSourceVideoProcess.cpp
@@ -975,7 +975,7 @@ void CMutliSourceVideoProcess::algorthim_process() @@ -975,7 +975,7 @@ void CMutliSourceVideoProcess::algorthim_process()
975 975
976 if (*iter == viewTaskID) 976 if (*iter == viewTaskID)
977 { 977 {
978 - cudaMemcpy(task.frameImage.data, task.task_algorithm_data.frame, 3 * task.task_algorithm_data.width * task.task_algorithm_data.height * sizeof(unsigned char), cudaMemcpyDeviceToHost); 978 + cudaMemcpy(task.frameImage.data, task.task_algorithm_data.frame, 3 * frameWidth * frameHeight * sizeof(unsigned char), cudaMemcpyDeviceToHost);
979 view = true; 979 view = true;
980 } 980 }
981 981
@@ -1107,8 +1107,6 @@ void CMutliSourceVideoProcess::algorthim_process() @@ -1107,8 +1107,6 @@ void CMutliSourceVideoProcess::algorthim_process()
1107 cout << "result_analysis time_using:" << result_analysis_time2 - result_analysis_time << endl; 1107 cout << "result_analysis time_using:" << result_analysis_time2 - result_analysis_time << endl;
1108 #endif 1108 #endif
1109 1109
1110 - AttributionAnalysis = false;  
1111 -  
1112 long long second_analysis_time = get_cur_time_ms(); 1110 long long second_analysis_time = get_cur_time_ms();
1113 1111
1114 auto task_iter = TaskinPlayID.begin(); 1112 auto task_iter = TaskinPlayID.begin();
vehicle_structure_platform.git0708-3080-trt-face/src/VPT/MutliSourceVideoProcess.h
@@ -166,7 +166,6 @@ public: /*锟斤拷锟斤拷锟斤拷锟斤拷应锟斤拷锟斤拷public锟斤拷 锟斤拷锟斤拷锟斤拷 @@ -166,7 +166,6 @@ public: /*锟斤拷锟斤拷锟斤拷锟斤拷应锟斤拷锟斤拷public锟斤拷 锟斤拷锟斤拷锟斤拷
166 166
167 std::mutex taskMutex; 167 std::mutex taskMutex;
168 std::condition_variable taskCondVar; 168 std::condition_variable taskCondVar;
169 - bool AttributionAnalysis; //锟斤拷锟节匡拷锟狡o拷每帧锟斤拷锟斤拷只锟斤拷锟斤拷一锟斤拷锟斤拷锟斤拷锟斤拷锟皆凤拷锟斤拷  
170 169
171 //锟姐法锟斤拷锟矫诧拷锟斤拷 170 //锟姐法锟斤拷锟矫诧拷锟斤拷
172 sy_command m_hp_analysis_config; //锟角凤拷锟斤拷锟斤拷锟斤拷锟斤拷识锟斤拷 171 sy_command m_hp_analysis_config; //锟角凤拷锟斤拷锟斤拷锟斤拷锟斤拷识锟斤拷