整理代码

This commit is contained in:
蒲爽 2026-09-28 21:33:04 +08:00
commit c7b4e178ec
364 changed files with 59691 additions and 0 deletions

View file

@ -0,0 +1,55 @@
#ifndef FA05C272_A837_4EE6_A95D_55486BEA1F99
#define FA05C272_A837_4EE6_A95D_55486BEA1F99
/*
*******************************************************************************
* INCLUDE
*******************************************************************************
*/
#include "../../core/VideoComponent.h"
#include "MPPChannel.h"
#include "VideoFrame.h"
#include <hi_mpi_vi.h>
#include "util/Broadcast.h"
namespace Video
{
namespace MPP5
{
/*
*******************************************************************************
* CLASS DECLARE
*******************************************************************************
*/
class VideoInput: public Core::VideoComponent, public MPPChannel
{
public:
using Ptr = Poco::AutoPtr<VideoInput>;
public:
VideoInput(uint32_t deviceID, uint32_t channelID, bool dataReverseEnable);
~VideoInput();
void reset() override;
protected:
void start() override;
void stop() override;
void onConfigChanged(ParameterNames& names) override;
uint32_t traffic() override;
void enableUserPic(bool enable);
hi_vi_scan_mode getVIScanMode();
private:
bool _dataReverseEnable;
const uint32_t _channelId;
public:
static void initModule();
static void deinitModule();
private:
static VideoFrame::Ptr _pUserVideoFrame;
};
}
}
#endif