turbopipe 1.2.0__cp37-cp37m-win_amd64.whl → 1.2.1__cp37-cp37m-win_amd64.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.

Potentially problematic release.


This version of turbopipe might be problematic. Click here for more details.

Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: turbopipe
3
- Version: 1.2.0
3
+ Version: 1.2.1
4
4
  Summary: 🌀 Faster MemoryView inter-process data transfers for subprocesses
5
5
  Home-page: https://brokensrc.dev
6
6
  Author-Email: Tremeschin <29046864+Tremeschin@users.noreply.github.com>
@@ -100,7 +100,7 @@ import turbopipe
100
100
 
101
101
  # Create ModernGL objects
102
102
  ctx = moderngl.create_standalone_context()
103
- buffer = ctx.buffer(reserve=1920*1080*3)
103
+ buffers = [ctx.buffer(reserve=1920*1080*3) for _ in range(2)]
104
104
 
105
105
  # Make sure resolution, pixel format matches!
106
106
  ffmpeg = subprocess.Popen(
@@ -109,7 +109,10 @@ ffmpeg = subprocess.Popen(
109
109
  )
110
110
 
111
111
  # Rendering loop of yours (eg. 1m footage)
112
- for _ in range(60 * 60):
112
+ for frame in range(60 * 60):
113
+ buffer = buffers[frame % len(buffer)]
114
+ turbopipe.sync(buffer)
115
+ fbo.read_into(buffer)
113
116
  turbopipe.pipe(buffer, ffmpeg.stdin.fileno())
114
117
 
115
118
  # Finalize writing, encoding
@@ -0,0 +1,7 @@
1
+ turbopipe-1.2.1.dist-info/METADATA,sha256=GuqiVUQMXXC0AGUHOjy5KX-UO0ouWSHZ39clFCpKRls,21841
2
+ turbopipe-1.2.1.dist-info/WHEEL,sha256=Nev81HRaPPFaJxtPw0V0OVn7-92Nc0ABJrwOL0z7AP0,84
3
+ turbopipe-1.2.1.dist-info/License.md,sha256=s3HF089BzBa_7DenpGj5kPHBu-XhGLP6gRzhhhLXLls,1096
4
+ turbopipe/_turbopipe.cp37-win_amd64.pyd,sha256=WRkzNiWmkgNI57BjiU2saNFylR8WC5p_zDT44iaZsms,35840
5
+ turbopipe/_turbopipe.cp37-win_amd64.lib,sha256=692EPK2cLZGxK9urE2rAZDkOeztz55MeiVTt3eB8PaA,2052
6
+ turbopipe/__init__.py,sha256=D0FP-CR87qJeLGv_VYCGRcwdONFhBYt02D2bm4Xdax4,1346
7
+ turbopipe-1.2.1.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- turbopipe-1.2.0.dist-info/METADATA,sha256=GshXnXUHFzM7sZFhvu3nDaTtgbgWA6PpjWNw6lyQ_78,21721
2
- turbopipe-1.2.0.dist-info/WHEEL,sha256=Nev81HRaPPFaJxtPw0V0OVn7-92Nc0ABJrwOL0z7AP0,84
3
- turbopipe-1.2.0.dist-info/License.md,sha256=s3HF089BzBa_7DenpGj5kPHBu-XhGLP6gRzhhhLXLls,1096
4
- turbopipe/_turbopipe.cp37-win_amd64.pyd,sha256=boF65KV_-riyaVZ3V950anHofM9fNORw202Ap1m-CoM,35840
5
- turbopipe/_turbopipe.cp37-win_amd64.lib,sha256=692EPK2cLZGxK9urE2rAZDkOeztz55MeiVTt3eB8PaA,2052
6
- turbopipe/__init__.py,sha256=D0FP-CR87qJeLGv_VYCGRcwdONFhBYt02D2bm4Xdax4,1346
7
- turbopipe-1.2.0.dist-info/RECORD,,