整理代码

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,49 @@
#ifndef FD7AD900_2C3C_41D7_A5C2_6B4F2B79CE9E
#define FD7AD900_2C3C_41D7_A5C2_6B4F2B79CE9E
/*
*******************************************************************************
* INCLUDE
*******************************************************************************
*/
#include "MPPChannel.h"
#include "../core/VideoProcessor.h"
#include "../../core/Notifications.h"
#include <hi_mpi_vpss.h>
namespace Video
{
namespace MPP5
{
/*
*******************************************************************************
* CLASS DECLARE
*******************************************************************************
*/
class VideoProcessor: public MPPChannel, public Core::VideoProcessor
{
public:
VideoProcessor();
~VideoProcessor();
protected:
void start() override;
void stop() override;
void onConfigChanged(ParameterNames& names) override;
void onLink(Core::Component::Ptr pPrevious) override;
void onUnlink(Core::Component::Ptr pPrevious) override;
void handlePreviousParameterChanged(const Poco::AutoPtr<Core::ParameterChangedNotification>& pNotication);
uint32_t groupID();
void setVPSSGroupCrop(const Core::Rect& rect);
void setVPSSChannelRotation(int rotation, uint32_t channelID);
void setVPSSVideoDirection(int direction, hi_vpss_chn_attr* attr);
};
inline uint32_t VideoProcessor::groupID()
{
return deviceID();
}
}
}
#endif