整理代码
This commit is contained in:
commit
c7b4e178ec
364 changed files with 59691 additions and 0 deletions
36
video/core/VideoOverlay.cpp
Normal file
36
video/core/VideoOverlay.cpp
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
* 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue