Jaded-Encoding-Thaumaturgy / vs-preview

Previewer for VapourSynth scripts.
Apache License 2.0
57 stars 16 forks source link

split view broken for YUV float #143

Closed jsaowji closed 1 month ago

jsaowji commented 2 months ago

https://github.com/Jaded-Encoding-Thaumaturgy/vs-preview/commit/3bba1af229cce7578bfececef15f70ddf4fc0af1 after this it now errors even gray,rgb float fine

import vapoursynth as vs
core = vs.core
core.std.BlankClip(format=vs.YUV444PS).set_output(0)
  File "/home/user/git/jet/vs-preview/vspreview/main/window.py", line 221, in <lambda>
    self.plugins_tab.currentChanged.connect(lambda x: self.plugins.update())
                                                      ^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/git/jet/vs-preview/vspreview/plugins/__init__.py", line 285, in update
    self.on_current_frame_changed(
  File "/home/user/git/jet/vs-preview/vspreview/plugins/__init__.py", line 263, in on_current_frame_changed
    self[tab_idx].on_current_frame_changed(frame)
  File "/home/user/git/jet/vs-preview/vspreview/plugins/utils.py", line 137, in on_current_frame_changed
    self.outputs.current.render_frame(frame, None, None, self.current_scene)
    ^^^^^^^^^^^^^^^^^^^^
  File "/home/user/git/jet/vs-preview/vspreview/plugins/utils.py", line 29, in current
    return self[self.main.current_output]
           ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/git/jet/vs-preview/vspreview/plugins/utils.py", line 56, in __getitem__
    self[key] = key.with_node(self.func(key.source.clip))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/git/jet/vs-preview/vspreview/plugins/split_view.ppy", line 28, in get_node
    plane.std.Expr('x 0.5 +' if i else 'x', fmt)
  File "src/cython/vapoursynth.pyx", line 2860, in vapoursynth.Function.__call__
vapoursynth.Error: Expr: The number of planes in the inputs and output must match