View Full Version : hidden commands
WarpEnterprises
17th July 2002, 14:05
There are some commands in avisynth which I found when browsing through the sources which I can't figure out how exactly to use,...
There is nothing written in the docu either.
Maybe someone has an idea.
There are:
TRY and CATCH (which seem to belong together)
GLOBAL
\ for connecting to the next line (although in the doc it says the opposite)
RGBAdjust (maybe useful for the alpha mask as well?)
HSIAdjust
Histogram
<edit>: Forgot CACHE()
Wilbert
17th July 2002, 15:41
RGBAdjust:
Similar as Donald Grafts RGB filter with a fourth argument which indicated the alpha channel.
HSIAdjust:
Hue/Saturation intensity. See also http://forum.doom9.org/showthread.php?s=&threadid=28677
TRY and CATCH, GLOBAL, Histogram:
No idea how to use theae.
poptones
17th July 2002, 17:47
Aren't try and catch compiler features and not features of avisynth itself? I use try and catch in many jscripts that do file i/o in windows, as it allows you to trap errors and recover gracefully instead of having a script that just aborts and gives the user a cryptic error message. ie:
try {
var data = somefile.Read ( somebytes );
}
catch( e ) {
if ( e ) {flag_domyerror = true}
}
Perhaps there are "higher level" versions of these added into avisynth? I've never noticed them before, but that's probably because I never looked.
clip.histogram() just adds a histogram (line by line) to the right edge of the image. Give it a shot and see how it works.
ARDA
17th July 2002, 20:20
@WarpEnterprises
About RGBAdjust take a look at
http://forum.doom9.org/showthread.php?s=&threadid=26266
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.