add new upscaler test

This commit is contained in:
janis
2023-05-24 10:23:08 +02:00
parent f9e14a58b4
commit d378018896
5 changed files with 177 additions and 6 deletions

View File

@@ -314,7 +314,7 @@ class Handler:
self.command_list.append( ( self.files, fsrpath, quality_setting, i, self.maxlength, self.os_type ) )
self.pool = multiprocessing.Pool( self.threads )
if ( mode == 'NN' ):
if ( mode == 'B' ):
self.pool.starmap( bilinearEngine, self.command_list );
elif ( mode == 'fsr' ):
self.pool.starmap( upscalerEngine, self.command_list );
@@ -447,7 +447,9 @@ def upscalerEngine ( files, fsrpath, quality_setting, number, maxlength, os_type
print( '\n\nCompleted executing Job\n\n\n PROCESS: ', number, '\n\n\n' );
def bilinearEngine ( files, fsrpath, quality_setting, number, maxlength, os_type ):
def bilinearEngine ( files, fsrpath, quality_setting, number, maxlength, os_type, version ):
if ( version == 'HQC' ):
scaler = 'HighQualityCubic'
files = files;
# Refactoring of commands that are longer than 32K characters
fileout = [];