[pitivi] Add video effects class definition and test suite



commit f44d9ff79a51ea2eb21c888319c2a86ceadeaa45
Author: Thibault Saunier <tsaunier src gnome org>
Date:   Sat May 1 16:29:07 2010 -0400

    Add video effects class definition and test suite

 pitivi/factories/operation.py     |   14 +++++++++++++
 tests/test_factories_operation.py |   39 +++++++++++++++++++++++++++++++++++++
 2 files changed, 53 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/factories/operation.py b/pitivi/factories/operation.py
index c6a0d2d..6e07c65 100644
--- a/pitivi/factories/operation.py
+++ b/pitivi/factories/operation.py
@@ -54,6 +54,20 @@ class TransformFactory(OperationFactory):
     def _requestNewInputStream(self, *args):
         raise OperationFactoryError("TransformFactory doesn't allow request pads")
 
+class EffectFactory (TransformFactory):
+    """
+    Factories that applies an effect on a stream
+    """
+    pass
+
+class VideoEffectFactory (EffectFactory):
+    def _makeBin (self, *args):
+        pass
+
+class VideoEffectFactory (EffectFactory):
+    def _makeBin (self, *args):
+        pass
+
 class StreamModifierFactory(TransformFactory):
     """
     Factories that modify the nature/type of a stream.
diff --git a/tests/test_factories_operation.py b/tests/test_factories_operation.py
new file mode 100644
index 0000000..5a9ca70
--- /dev/null
+++ b/tests/test_factories_operation.py
@@ -0,0 +1,39 @@
+#!/usr/bin/env python
+#
+#       test/test_factories_operation.py
+#
+# Copyright (C) 2010 Thibault Saunier <tsaunier gnome org>
+# 
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 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
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this program; if not, write to the
+# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
+# 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 3, or (at your option)
+# any later version.
+
+
+import gst
+
+from common import TestCase
+
+from pitivi.factories.operation import VideoEffectFactory
+
+class TestVideoEffectFactory(TestCase):
+    def setUp(self):
+        TestCase.setUp(self)
+        self.factory = VideoEffectFactory ('identity')
+        
+    def testMakeBin (self):
+        print 'Here is the work I have to do!'



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]