leeperry
30th October 2009, 12:58
hi there, I was discussing with mg262(who made a modded LSF version that's slightly faster) how to optimize GrainFactory3().
he told me:
When you are resizing, you are computing chroma information, but you don't need it (in this script) and will discard it later. So what you really want is to be resizing *without computing chroma information*. That should speed up the resizing by 33% (which should in turn speed up the entire script by about 25%). It would be entirely doable for someone who knows the AVISynth code base to build a resizer that ignores chroma
(Of course, the nice way to do this is to be working in the Y8 colour space... if you were doing that you wouldn't have to worry about all the "U=1,V=1" nonsense in MaskTools either. But I have no idea how support for the Y8 colour space is progressing these days!)
the avisynth wiki server is down, so I've put a copy of GrainFactory3() here: http://www.mediafire.com/?jktxmxymmjj
any insight would be much appreciated, as this is is a very demanding script at this point...ditching chroma resize would be really great!
:thanks:
he told me:
When you are resizing, you are computing chroma information, but you don't need it (in this script) and will discard it later. So what you really want is to be resizing *without computing chroma information*. That should speed up the resizing by 33% (which should in turn speed up the entire script by about 25%). It would be entirely doable for someone who knows the AVISynth code base to build a resizer that ignores chroma
(Of course, the nice way to do this is to be working in the Y8 colour space... if you were doing that you wouldn't have to worry about all the "U=1,V=1" nonsense in MaskTools either. But I have no idea how support for the Y8 colour space is progressing these days!)
the avisynth wiki server is down, so I've put a copy of GrainFactory3() here: http://www.mediafire.com/?jktxmxymmjj
any insight would be much appreciated, as this is is a very demanding script at this point...ditching chroma resize would be really great!
:thanks: