60 lines
1.6 KiB
C
60 lines
1.6 KiB
C
#ifndef MAIN_H
|
|
#define MAIN_H
|
|
|
|
#include <QCoreApplication>
|
|
#include <QByteArray>
|
|
#include <QMap>
|
|
|
|
#include "MvObjectEventDetect.h"
|
|
|
|
#include "HxDisk.h"
|
|
#include "HxTask.h"
|
|
#include "HxJson.h"
|
|
#include "HxThread.h"
|
|
// #include "HxReadMe.h"
|
|
#include "HxProcess.h"
|
|
#include "HxBroadcast.h"
|
|
|
|
#include "HxVideoDevices.h"
|
|
#include "HxVideoPipeline.h"
|
|
|
|
#if USE_ALGORITHM
|
|
#include "rk_mpi.h"
|
|
#include "mpp_mem.h"
|
|
#include "mpp_time.h"
|
|
#include "mpp_env.h"
|
|
#include "mpp_common.h"
|
|
#include "mpp_frame.h"
|
|
#include "mpp_buffer_impl.h"
|
|
#include "RgaUtils.h"
|
|
#include "im2d.hpp"
|
|
#endif
|
|
|
|
#include <opencv2/opencv.hpp>
|
|
|
|
extern "C"
|
|
{
|
|
#include "libavcodec/avcodec.h"
|
|
#include "libavformat/avformat.h"
|
|
#include "libavutil/pixfmt.h"
|
|
#include "libavutil/imgutils.h"
|
|
#include "libswscale/swscale.h"
|
|
#include "libswresample/swresample.h"
|
|
}
|
|
|
|
#define CHANNEL_MAX 16
|
|
|
|
/* 写日志 */
|
|
#define WRITE_LOG(type, index, message, data) HxBroadcast::publish_json(6, {{"timestamp", QDateTime::currentDateTime().toString("yyyy-MM-dd HH:mm:ss")}, \
|
|
{"type", type}, \
|
|
{"index", index}, \
|
|
{"message", message}, \
|
|
{"data", data}})
|
|
/* 写入系统日志 */
|
|
#define WRITE_SYSTEM_LOG(message, data) WRITE_LOG(0, -1, message, data);
|
|
|
|
extern CarInfoInput car_info;
|
|
extern EventWarnParamConfig warm_param_config;
|
|
|
|
#endif // MAIN_H
|