整理代码
This commit is contained in:
commit
c7b4e178ec
364 changed files with 59691 additions and 0 deletions
55
video/hisi/mpp5/VideoInput.h
Normal file
55
video/hisi/mpp5/VideoInput.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue