yta-video-opengl 0.0.29__tar.gz → 0.0.30__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: yta-video-opengl
3
- Version: 0.0.29
3
+ Version: 0.0.30
4
4
  Summary: Youtube Autonomous Video OpenGL Module
5
5
  Author: danialcala94
6
6
  Author-email: danielalcalavalera@gmail.com
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "yta-video-opengl"
3
- version = "0.0.29"
3
+ version = "0.0.30"
4
4
  description = "Youtube Autonomous Video OpenGL Module"
5
5
  authors = [
6
6
  {name = "danialcala94",email = "danielalcalavalera@gmail.com"}
@@ -12,8 +12,6 @@ dependencies = [
12
12
  "yta_programming (>=0.0.1,<1.0.0)",
13
13
  "moderngl (>=0.0.1,<9.0.0)",
14
14
  "numpy (>=0.0.1,<9.0.0)",
15
- # TODO: This below is just for testing
16
- #"yta_video_pyav (>=0.0.1,<1.0.0)",
17
15
  ]
18
16
 
19
17
  [tool.poetry]
@@ -251,6 +251,23 @@ class EffectsStack:
251
251
  Timeline of your video editor.
252
252
  """
253
253
 
254
+ @property
255
+ def copy(
256
+ self
257
+ ) -> 'EffectsStack':
258
+ """
259
+ Get a copy of this instance.
260
+ """
261
+ effects_stack = EffectsStack()
262
+
263
+ for effect_sttacked in self._effects:
264
+ effects_stack.add_effect(
265
+ effect = effect_sttacked.effect.copy,
266
+ priority = effect_sttacked.priority
267
+ )
268
+
269
+ return effects_stack
270
+
254
271
  @property
255
272
  def video_effects(
256
273
  self
@@ -33,6 +33,21 @@ class TimedNode:
33
33
  The 'start' and 'end' values by default
34
34
  """
35
35
 
36
+ @property
37
+ def copy(
38
+ self
39
+ ) -> 'TimedNode':
40
+ """
41
+ Get a copy of this instance.
42
+ """
43
+ return TimedNode(
44
+ # TODO: If we need a copy here, how do
45
+ # I do it as it is based on subclasses (?)
46
+ node = self.node,
47
+ start = self.start,
48
+ end = self.end
49
+ )
50
+
36
51
  @property
37
52
  def is_audio_node(
38
53
  self