[vlmc-devel] ITransition

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


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Tue Jun 14 16:14:26 2016 +0900| [09f38a753cb0e8074ebeb7b00c71353cbffa3ed6] | committer: Yikai Lu

ITransition

> https://code.videolan.org/videolan/vlmc/commit/09f38a753cb0e8074ebeb7b00c71353cbffa3ed6
---

 src/Backend/ITransition.h | 45 +++++++++++++++++++++++++++++++++++++++++++++
 src/CMakeLists.txt        |  1 +
 2 files changed, 46 insertions(+)

diff --git a/src/Backend/ITransition.h b/src/Backend/ITransition.h
new file mode 100644
index 0000000..113aeb3
--- /dev/null
+++ b/src/Backend/ITransition.h
@@ -0,0 +1,45 @@
+/*****************************************************************************
+ * ITransition.h: Defines an interface of transition
+ *****************************************************************************
+ * 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 ITRANSITION_H
+#define ITRANSITION_H
+
+#include "IService.h"
+
+#include <cstdint>
+
+namespace Backend
+{
+    class IProducer;
+    class ITransition : virtual public IService
+    {
+    public:
+        virtual         ~ITransition() = default;
+
+        virtual void    setBoundaries( int64_t begin, int64_t end ) = 0;
+        virtual int64_t begin() const = 0;
+        virtual int64_t end() const = 0;
+        virtual int64_t length() const = 0;
+    } ;
+}
+
+#endif // ITRANSITION_H
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 18700a1..63cda5b 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -64,6 +64,7 @@ SET(VLMC_SRCS
     Backend/ITrack.h
     Backend/IProfile.h
     Backend/ITractor.h
+    Backend/ITransition.h
     Backend/VLC/VLCBackend.cpp
     Backend/VLC/VLCSourceRenderer.cpp
     Backend/VLC/VLCVmemRenderer.cpp



More information about the Vlmc-devel mailing list