Thread: Vapoursynth
View Single Post
Old 9th September 2012, 12:10   #82  |  Link
TurboPascal7
Registered User
 
TurboPascal7's Avatar
 
Join Date: Jan 2010
Posts: 270
Quote:
Originally Posted by Myrsloik View Post
I think I've fixed the crop argument checks. Can you give an example of the optional arguments maybe not working?
Code:
Traceback (most recent call last):
  File "D:/test.py", line 21, in <module>
    source = w.std.CropAbs(clip=source, x=16, y=16)
  File "vapoursynth.pyx", line 434, in vapoursynth.Function.__call__ (cython\vapoursynth.c:7371)
vapoursynth.Error: 'CropAbs: argument width is required'
Code:
source = w.std.CropAbs(clip=source, x=16, y=16, width=-16, height=-16)
Works but outputs garbage. Should throw error or work like avisynth's crop (subtracting provided negative width/height values from clip's parameters).

Quote:
Originally Posted by Myrsloik View Post
6. It's already included in list_functions(), why do you need one more?
I don't really need another list_functions() method. I do want to know Core class constructor parameters, VideoNode.output() method parameters (wanted to test callback, added in r4) etc. Without documentation and any public API I don't see any ways to do it since reflection doesn't work well with cython. I'm asking for this too early, I guess.
TurboPascal7 is offline   Reply With Quote