Log in

View Full Version : Interleave efficiency


redfordxx
23rd January 2020, 08:19
When I have one clip...
...I make many instances of it
...apply various functions on these instances
...and Interleave them all.

Then, each frame of the original clip is many times in the new clip but with different functions.

Does Avs+ decode each frame only once or many times?

StainlessS
23rd January 2020, 10:17
Decoded once ony

Source Filter
|
In Clip
|
|-------------------------------|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
A B C D E F G

o = SourceFilter("...")

A=o
B=o
C=o
A=A.SomeFilter1()
B=B.SomeFilter2()
C=C.SomeFilter3()
#...

OR

o = SourceFilter("...")

A=o.SomeFilter1()
B=o.SomeFilter2()
C=o.SomeFilter3()
#...

OR

SourceFilter("...") # Implicit assign Last

A=SomeFilter1()
B=SomeFilter2()
C=SomeFilter3()
#...

OR

o=SourceFilter("...")
o # Implicit assign Last (o later available original source)

A=SomeFilter1()
B=SomeFilter2()
C=SomeFilter3()
#...

Gavino
23rd January 2020, 16:58
Decoded once ony

... assuming each frame stays in the cache (or is buffered by the source filter) until it has been processed by each of the different later filters.

StainlessS
23rd January 2020, 17:31
OK, assuming wot he said !

redfordxx
23rd January 2020, 23:39
... assuming each frame stays in the cache (or is buffered by the source filter) until it has been processed by each of the different later filters.
How can I tell?
For example Interleave on line 50 of the script attached to post.
https://forum.doom9.org/showthread.php?p=1896639#post1896639