lisztfr9
3rd June 2014, 15:16
I'm not smart also. What makes it difficult is in regards of the notion of object, i think all computer languages are more or less object-oriented. In Qbasic we have simple objects, in Html, css code is defining versatile objects, more like subroutines...
In Avisinth, i call Function, ConditionalFilter, Scriptclip, last(), as object (ConditionalReader operates on variables, so it's another class of objects). The countenance is not free, they are predefined forms.
In Qbasic, user defined Types of variables are objects.
In Avisynth, what's the main difference between ConditionalFilter and Scripclip ? That is, the first one takes 2 clips as argument, the second only one. But since all theses entities can call each other, in what situation rather use this or that and the main purpose of each one never remains clear to me. A Function returns a Clip, but can embed ConditionalReader which takes 2... FrameEvaluate is the same as Scriptclip but doesn't return a clip. With Grunt, all variables can be passed to scriptclip, so is FrameEvaluate still useful ? FrameEvaluate can be replace by the expression with variable current_frame, right ?
Gscript simplifies the way to write expressions. For calculating the average Luma for 4 frames, i could write an FOR loop like (pseudo code)
For delta = -2 to 2
Ave : Ave + AverageLuma(Delta)
...
Mean = Ave / 5
Or not use Gscript. Because the "old" code is not depreciated, so 2 kinds of syntax coexist.
In Qbasic, a function is called, the variable it computes is returned to the call location. In Avisynth a Function can contain anything, it's ubiquitous, there is no clear hierarchy of programming structures... except an "hydraulic" notion of flow, which must be respected. In qbasic a Function is declared and put later prgrm at a special place. Here a function is written anywhere before it is called.
What we most want is applying filters dynamically, and better for a delta of 2 frames for more security. At Frame n, some easy StDeviation routines should be available a bit like "snipped" in qbasic. Qbasic peoples used to share their code, even snipped, useful routines. My two cents,
L
PS, More difficulties arrive with the huge complexity of image treatment algorithm, choosing the appropriates filter and checking the result visually. In python etc, it's only right or wrong. Here, subjectivity is involved.
In Avisinth, i call Function, ConditionalFilter, Scriptclip, last(), as object (ConditionalReader operates on variables, so it's another class of objects). The countenance is not free, they are predefined forms.
In Qbasic, user defined Types of variables are objects.
In Avisynth, what's the main difference between ConditionalFilter and Scripclip ? That is, the first one takes 2 clips as argument, the second only one. But since all theses entities can call each other, in what situation rather use this or that and the main purpose of each one never remains clear to me. A Function returns a Clip, but can embed ConditionalReader which takes 2... FrameEvaluate is the same as Scriptclip but doesn't return a clip. With Grunt, all variables can be passed to scriptclip, so is FrameEvaluate still useful ? FrameEvaluate can be replace by the expression with variable current_frame, right ?
Gscript simplifies the way to write expressions. For calculating the average Luma for 4 frames, i could write an FOR loop like (pseudo code)
For delta = -2 to 2
Ave : Ave + AverageLuma(Delta)
...
Mean = Ave / 5
Or not use Gscript. Because the "old" code is not depreciated, so 2 kinds of syntax coexist.
In Qbasic, a function is called, the variable it computes is returned to the call location. In Avisynth a Function can contain anything, it's ubiquitous, there is no clear hierarchy of programming structures... except an "hydraulic" notion of flow, which must be respected. In qbasic a Function is declared and put later prgrm at a special place. Here a function is written anywhere before it is called.
What we most want is applying filters dynamically, and better for a delta of 2 frames for more security. At Frame n, some easy StDeviation routines should be available a bit like "snipped" in qbasic. Qbasic peoples used to share their code, even snipped, useful routines. My two cents,
L
PS, More difficulties arrive with the huge complexity of image treatment algorithm, choosing the appropriates filter and checking the result visually. In python etc, it's only right or wrong. Here, subjectivity is involved.