整理代码
This commit is contained in:
commit
c7b4e178ec
364 changed files with 59691 additions and 0 deletions
44
video/v4l2/Input.h
Normal file
44
video/v4l2/Input.h
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
#ifndef A523395E_7DEF_449B_B4DD_5FEE9147BE39
|
||||
#define A523395E_7DEF_449B_B4DD_5FEE9147BE39
|
||||
/*
|
||||
*******************************************************************************
|
||||
* INCLUDE
|
||||
*******************************************************************************
|
||||
*/
|
||||
#include "../core/VideoComponent.h"
|
||||
#include "util/SimpleFactory.h"
|
||||
#include "util/Task.h"
|
||||
|
||||
namespace Video
|
||||
{
|
||||
namespace V4L2
|
||||
{
|
||||
/*
|
||||
*******************************************************************************
|
||||
* CLASS DECLARE
|
||||
*******************************************************************************
|
||||
*/
|
||||
class Input: public Core::VideoComponent, public ::Util::SimpleFactory<Input, const std::string&>
|
||||
{
|
||||
public:
|
||||
using Ptr = Poco::AutoPtr<Input>;
|
||||
|
||||
public:
|
||||
Input(const std::string& name);
|
||||
~Input();
|
||||
|
||||
public:
|
||||
CONFIGURABLE_DECLARE_PARAMETER(CodecID, Core::CodecID);
|
||||
CONFIGURABLE_DECLARE_PARAMETER(Path, std::string);
|
||||
|
||||
protected:
|
||||
void start() override;
|
||||
void stop() override;
|
||||
void onConfigChanged(ParameterNames& names) override;
|
||||
|
||||
private:
|
||||
Util::Task _task;
|
||||
};
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue