[vlmc-devel] Remove RenderTarget

Yikai Lu git at videolan.org
Sun Jun 26 06:01:26 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Tue Jun 21 19:24:31 2016 +0900| [e74f010134fe2eae7db3a7cd279f3d154645a99d] | committer: Yikai Lu

Remove RenderTarget

> https://code.videolan.org/videolan/vlmc/commit/e74f010134fe2eae7db3a7cd279f3d154645a99d
---

 src/Backend/Target/FileTarget.cpp   | 43 -------------------------------------
 src/Backend/Target/FileTarget.h     | 41 -----------------------------------
 src/Backend/Target/WidgetTarget.cpp | 38 --------------------------------
 src/Backend/Target/WidgetTarget.h   | 41 -----------------------------------
 4 files changed, 163 deletions(-)

diff --git a/src/Backend/Target/FileTarget.cpp b/src/Backend/Target/FileTarget.cpp
deleted file mode 100644
index b7bf53a..0000000
--- a/src/Backend/Target/FileTarget.cpp
+++ /dev/null
@@ -1,43 +0,0 @@
-/*****************************************************************************
- * FileTarget.cpp: RenderTarget for File
- *****************************************************************************
- * Copyright (C) 2008-2016 VideoLAN
- *
- * Authors: Yikei Lu <luyikei.qmltu at gmail.com>
- *
- * 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.
- *****************************************************************************/
-
-#include "FileTarget.h"
-
-#include "Backend/ISourceRenderer.h"
-
-using namespace Backend;
-
-FileTarget::FileTarget( const char* filePath )
-    : m_filePath( filePath )
-{
-}
-
-FileTarget::~FileTarget()
-{
-    delete m_filePath;
-}
-
-void
-FileTarget::configure( Backend::ISourceRenderer *renderer )
-{
-    renderer->setOutputFile( m_filePath );
-}
diff --git a/src/Backend/Target/FileTarget.h b/src/Backend/Target/FileTarget.h
deleted file mode 100644
index 02831c2..0000000
--- a/src/Backend/Target/FileTarget.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/*****************************************************************************
- * FileTarget.h: RenderTarget for File
- *****************************************************************************
- * Copyright (C) 2008-2016 VideoLAN
- *
- * Authors: Yikei Lu <luyikei.qmltu at gmail.com>
- *
- * 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.
- *****************************************************************************/
-
-#ifndef FILETARGET_H
-#define FILETARGET_H
-
-#include "Backend/IRenderTarget.h"
-
-namespace Backend
-{
-    class FileTarget : public IRenderTarget
-    {
-    public:
-        FileTarget( const char* filePath );
-        ~FileTarget();
-        virtual void configure( ISourceRenderer *renderer ) override;
-    private:
-        const char* m_filePath;
-    };
-}
-
-#endif // FILETARGET_H
diff --git a/src/Backend/Target/WidgetTarget.cpp b/src/Backend/Target/WidgetTarget.cpp
deleted file mode 100644
index 7ad2e27..0000000
--- a/src/Backend/Target/WidgetTarget.cpp
+++ /dev/null
@@ -1,38 +0,0 @@
-/*****************************************************************************
- * WidgetTarget.cpp: RenderTarget for Widget
- *****************************************************************************
- * Copyright (C) 2008-2016 VideoLAN
- *
- * Authors: Yikei Lu <luyikei.qmltu at gmail.com>
- *
- * 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.
- *****************************************************************************/
-
-#include "WidgetTarget.h"
-
-#include "Backend/ISourceRenderer.h"
-
-using namespace Backend;
-
-WidgetTarget::WidgetTarget( void* id )
-    : m_id( reinterpret_cast<quintptr>( id ) )
-{
-}
-
-void
-WidgetTarget::configure( ISourceRenderer *renderer )
-{
-    renderer->setOutputWidget( reinterpret_cast<void*>( m_id ) );
-}
diff --git a/src/Backend/Target/WidgetTarget.h b/src/Backend/Target/WidgetTarget.h
deleted file mode 100644
index 05b3829..0000000
--- a/src/Backend/Target/WidgetTarget.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/*****************************************************************************
- * WidgetTarget.h: RenderTarget for Widget
- *****************************************************************************
- * Copyright (C) 2008-2016 VideoLAN
- *
- * Authors: Yikei Lu <luyikei.qmltu at gmail.com>
- *
- * 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.
- *****************************************************************************/
-
-#ifndef WIDGETTARGET_H
-#define WIDGETTARGET_H
-
-#include <QtGlobal>
-#include "Backend/IRenderTarget.h"
-
-namespace Backend
-{
-    class WidgetTarget : public IRenderTarget
-    {
-    public:
-        WidgetTarget( void* id );
-        virtual void configure( ISourceRenderer *renderer ) override;
-    private:
-        quintptr m_id;
-    };
-}
-
-#endif // WIDGETTARGET_H



More information about the Vlmc-devel mailing list