Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 29th October 2021, 23:46   #1  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 990
Crop

Code:
clp.crop(left=0, top=0, right=-4, bottom=-4)
Gives me "Invalid arguments to function 'crop'", what I'm missing here?

clp.crop(0, 0, -4, -4) works OK.
VoodooFX is offline   Reply With Quote
Old 30th October 2021, 00:05   #2  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Here is the C/CPP spec thingy

Code:
Crop "ciiii[align]b"
and from [OLD] builtin help
Code:
Crop (clip, int left, int top, int width, int height, bool "align")
Only align is named and optional.

EDIT: Same on Wiki:- http://avisynth.nl/index.php/Crop
Code:
Crop(clip clip, int left, int top, int width, int height [, bool align ] )
Crop(clip clip, int left, int top, int -right, int -bottom [, bool align ] )
EDIT: To below: aint no prize for 2nd place. [sadly, aint no prize for 1st place either ]
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 30th October 2021 at 00:46.
StainlessS is offline   Reply With Quote
Old 30th October 2021, 00:05   #3  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,666
Quote:
Originally Posted by VoodooFX View Post
Code:
clp.crop(left=0, top=0, right=-4, bottom=-4)
Gives me "Invalid arguments to function 'crop'", what I'm missing here?

clp.crop(0, 0, -4, -4) works OK.
Crop does not accept named arguments besides "align".
https://github.com/AviSynth/AviSynth...nsform.cpp#L50

EDIT
@StainlessS: you beat me by a few seconds
Reel.Deel is offline   Reply With Quote
Old 30th October 2021, 00:39   #4  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 990
Oh, thats why. This should be written in wiki for a next stupid person like me.
VoodooFX is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:27.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.