格式整理
This commit is contained in:
parent
150b54e268
commit
e52b388f6b
|
@ -140,7 +140,7 @@ QString TaskDispatch::get_video_frame_data(int type, int channel, int id)
|
|||
{
|
||||
Q_UNUSED(channel);
|
||||
|
||||
switch(type)
|
||||
switch (type)
|
||||
{
|
||||
case 0:
|
||||
return adas_video_device.build_image(id);
|
||||
|
@ -155,7 +155,7 @@ QString TaskDispatch::get_video_frame_data(int type, int channel, int id)
|
|||
|
||||
QString TaskDispatch::build_alarm_image(int type, int channel, int frame_id)
|
||||
{
|
||||
switch(type)
|
||||
switch (type)
|
||||
{
|
||||
case 0:
|
||||
return adas_video_device.build_image(frame_id);
|
||||
|
@ -170,7 +170,7 @@ QString TaskDispatch::build_alarm_image(int type, int channel, int frame_id)
|
|||
|
||||
QString TaskDispatch::build_alarm_video(int type, int channel, int frame_id)
|
||||
{
|
||||
switch(type)
|
||||
switch (type)
|
||||
{
|
||||
case 0:
|
||||
return adas_video_device.build_video(frame_id);
|
||||
|
@ -251,7 +251,6 @@ void TaskDispatch::parsing_vehiclue_status(void)
|
|||
else
|
||||
status = 1;
|
||||
|
||||
|
||||
/* 车辆状态发生改变 */
|
||||
if (status != 0 && vehicle_status != status)
|
||||
{
|
||||
|
@ -306,14 +305,14 @@ void TaskDispatch::parsing_vehiclue_status(void)
|
|||
bsd_video_device[3].set(true);
|
||||
|
||||
/* 后侧, 左前, 左后 */
|
||||
_detect_channel |=(REAR_BSD_DETECT_CHANNEL | LEFT_BSD_FRONT_DETECT_CHANNEL | RIGHT_BSD_FRONT_DETECT_CHANNEL);
|
||||
_detect_channel |= (REAR_BSD_DETECT_CHANNEL | LEFT_BSD_FRONT_DETECT_CHANNEL | RIGHT_BSD_FRONT_DETECT_CHANNEL);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* 确保状态改变后才调用该函数 */
|
||||
if(detect_channel != _detect_channel)
|
||||
if (detect_channel != _detect_channel)
|
||||
{
|
||||
detect_channel = _detect_channel;
|
||||
|
||||
|
@ -464,7 +463,6 @@ void TaskDispatch::data_receive_event(QByteArray data)
|
|||
debug_tool_response_event(type, {{"status", DataBase::save_setting()}});
|
||||
break;
|
||||
|
||||
|
||||
case 0xFFFF:
|
||||
adas_video_device.test();
|
||||
break;
|
||||
|
|
|
@ -15,7 +15,6 @@ using namespace cv;
|
|||
using namespace std;
|
||||
|
||||
#if ALGORITHM_ENABLE
|
||||
|
||||
#include "rkrga/rga.h"
|
||||
#include "rkrga/im2d.hpp"
|
||||
#endif
|
||||
|
@ -45,7 +44,7 @@ private:
|
|||
protected:
|
||||
void run() override;
|
||||
|
||||
private:
|
||||
private:
|
||||
int MvGetFrameBlkInfo(VideoFrameDataInfo *pImageDataInfo);
|
||||
int MvReleaseFrameBlkInfo(VideoFrameDataInfo *pImageDataInfo);
|
||||
int MvConvertImage(VideoFrameDataInfo *pSrcImageDataInfo, VideoFrameDataInfo *pDstImageDataInfo);
|
||||
|
|
|
@ -16,7 +16,6 @@ int main(int argc, char *argv[])
|
|||
|
||||
TaskDispatch::listern(9031);
|
||||
TaskDispatch::connect_to_host("192.168.10.10", 9031);
|
||||
// TaskDispatch::connect_to_host("10.211.55.2", 9031);
|
||||
|
||||
return a.exec();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user