yta-video-opengl 0.0.22__py3-none-any.whl → 0.0.23__py3-none-any.whl

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.
@@ -2,9 +2,10 @@
2
2
  Module to include video handling with OpenGL.
3
3
  """
4
4
  def main():
5
- from yta_video_opengl.tests import video_modified_stored
5
+ # from yta_video_opengl.tests import video_modified_stored
6
6
 
7
- video_modified_stored()
7
+ # video_modified_stored()
8
+ print('main')
8
9
 
9
10
 
10
11
  if __name__ == '__main__':
@@ -7,9 +7,9 @@ that opengl can handle are triangles,
7
7
  so we use different triangles to build
8
8
  our shapes (quad normally).
9
9
  """
10
+ from yta_video_opengl.utils import frame_to_texture, get_fullscreen_quad_vao
10
11
  from yta_validation.parameter import ParameterValidator
11
12
  from yta_validation import PythonValidator
12
- from yta_video_opengl.utils import frame_to_texture, get_fullscreen_quad_vao
13
13
  from abc import ABC, abstractmethod
14
14
  from typing import Union
15
15
 
@@ -2,7 +2,6 @@ from yta_validation.parameter import ParameterValidator
2
2
  from typing import Union
3
3
  from abc import ABC, abstractmethod
4
4
 
5
- import av
6
5
  import moderngl
7
6
 
8
7
 
@@ -17,13 +16,14 @@ class Node(ABC):
17
16
  """
18
17
 
19
18
  # TODO: What about the types?
19
+ # TODO: Should we expect pyav frames (?)
20
20
  @abstractmethod
21
21
  def process(
22
- frame: Union[av.VideoFrame, av.AudioFrame, moderngl.Texture],
22
+ frame: Union['VideoFrame', 'AudioFrame', moderngl.Texture],
23
23
  t: float
24
24
  # TODO: Maybe we need 'fps' and 'number_of_frames'
25
25
  # to calculate progressions or similar...
26
- ) -> Union[av.VideoFrame, av.AudioFrame, moderngl.Texture]:
26
+ ) -> Union['VideoFrame', 'AudioFrame', moderngl.Texture]:
27
27
  pass
28
28
 
29
29
  class TimedNode:
@@ -102,7 +102,7 @@ class TimedNode:
102
102
 
103
103
  def process(
104
104
  self,
105
- frame: Union[av.VideoFrame, av.AudioFrame, moderngl.Texture],
105
+ frame: Union['VideoFrame', 'AudioFrame', moderngl.Texture],
106
106
  t: float
107
107
  # TODO: Maybe we need 'fps' and 'number_of_frames'
108
108
  # to calculate progressions or similar...