p26001-store-acs-soc-fw-app/video/core/VideoOverlay.cpp
2026-09-28 21:33:04 +08:00

36 lines
888 B
C++

/*
*******************************************************************************
* INCLUDE
*******************************************************************************
*/
#include "VideoOverlay.h"
namespace Video
{
namespace Core
{
/*
*******************************************************************************
* CLASS DEFINE
*******************************************************************************
*/
VideoOverlay::VideoOverlay(VideoOverlayType type, const std::string& name, const Rect& region)
: _type(type), _name(name), _region(region)
{
setZOrder(0);
setBlock(4);
}
VideoOverlay::~VideoOverlay()
{
}
void VideoOverlay::attach(VideoComponent::Ptr target)
{
if (target.isNull())
throw Poco::BugcheckException(name() + ": Target is NULL");
_target = target;
}
}
}