diff --git a/CMakeLists.txt b/CMakeLists.txt index 880b77d..4114040 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -70,6 +70,8 @@ INCLUDE( cmake/LibFFmpeg.cmake ) # PlaYUVer modules build ###################################################################################### SET( MODULES_DIR ${SRC_DIR}/modules ) +FILE( GLOB ModuleCMakeFiles cmake/Module*.cmake ) +INCLUDE( ${ModuleCMakeFiles} ) ###################################################################################### # Create config.h diff --git a/cmake/ModuleFilterFrame.cmake b/cmake/ModuleFilterFrame.cmake new file mode 100644 index 0000000..cd6ad4f --- /dev/null +++ b/cmake/ModuleFilterFrame.cmake @@ -0,0 +1,6 @@ +###################################################################################### +# Filter frame module +###################################################################################### + +INCLUDE_DIRECTORIES( ${MODULES_DIR} ) +ADD_LIBRARY( ModuleFilterFrame ${MODULES_DIR}/FilterFrame.cpp ) diff --git a/source/ModulesHandle.h b/source/ModulesHandle.h index 2780bec..1fa3d61 100644 --- a/source/ModulesHandle.h +++ b/source/ModulesHandle.h @@ -54,17 +54,7 @@ private: }; -class PlaYUVerModuleIf -{ -public: - virtual Void create(); - virtual Void process(); - virtual Void close(); - - virtual ~PlaYUVerModuleIf() {} -}; - } // NAMESPACE -#endif // __PLAYUVERFRAME_H__ +#endif // __MODULESHANDLE_H__ diff --git a/source/modules/FilterFrame.cpp b/source/modules/FilterFrame.cpp new file mode 100644 index 0000000..2e2526e --- /dev/null +++ b/source/modules/FilterFrame.cpp @@ -0,0 +1,48 @@ +/* This file is a part of plaYUVer project + * Copyright (C) 2014 by plaYUVer developers + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +/** + * \file FilterFrame.cpp + * \brief Filter frame module + */ + +#include + +#include "FilterFrame.h" +#include "PlaYUVerFrame.h" + +namespace plaYUVer +{ + +FilterFrame::FilterFrame() +{ + +} + +FilterFrame::~FilterFrame() +{ + +} + +PlaYUVerFrame* process( PlaYUVerFrame* InputFrame ) +{ + +} + +} // NAMESPACE + diff --git a/source/modules/FilterFrame.h b/source/modules/FilterFrame.h new file mode 100644 index 0000000..d99145b --- /dev/null +++ b/source/modules/FilterFrame.h @@ -0,0 +1,54 @@ +/* This file is a part of plaYUVer project + * Copyright (C) 2014 by plaYUVer developers + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +/** + * \file FilterFrame.h + * \brief Filter frame module + */ + +#ifndef __FILTERFRAME_H__ +#define __FILTERFRAME_H__ + +#include "config.h" + +#include +#include +#include "TypeDef.h" +#include "PlaYUVerFrame.h" +#include "PlaYUVerModuleIf.h" + + +namespace plaYUVer +{ + +class FilterFrame : public PlaYUVerModuleIf +{ +public: + FilterFrame(); + ~FilterFrame(); + + PlaYUVerFrame* process( PlaYUVerFrame* InputFrame ); + +private: + +}; + +} // NAMESPACE + +#endif // __FILTERFRAME_H__ + diff --git a/source/modules/PlaYUVerModuleIf.h b/source/modules/PlaYUVerModuleIf.h new file mode 100644 index 0000000..cd3555b --- /dev/null +++ b/source/modules/PlaYUVerModuleIf.h @@ -0,0 +1,54 @@ +/* This file is a part of plaYUVer project + * Copyright (C) 2014 by plaYUVer developers + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +/** + * \file PlaYUVerModuleIf.h + * \brief PlaYUVer modules interface + */ + +#ifndef __PLAYUVERMODULESIF_H__ +#define __PLAYUVERMODULESIF_H__ + +#include "config.h" + +#include +#include + +#include "TypeDef.h" +#include "PlaYUVerFrame.h" + +namespace plaYUVer +{ + +class PlaYUVerModuleIf +{ +public: + virtual Void create(); + + virtual Void process(); + virtual PlaYUVerFrame* process( PlaYUVerFrame* InputFrame ); + + virtual Void close(); + + virtual ~PlaYUVerModuleIf() {} +}; + +} // NAMESPACE + +#endif // __PLAYUVERMODULESIF_H__ +