diff options
author | Greg Heinrich <gheinrich@nvidia.com> | 2015-08-14 19:09:05 +0300 |
---|---|---|
committer | Greg Heinrich <gheinrich@nvidia.com> | 2015-08-14 19:09:05 +0300 |
commit | 540e96755a8cc33437f23f34ccc8fa8f2484da62 (patch) | |
tree | ca1232a286a8ed3dfc4d24b65b72b0feb98ead2b | |
parent | 7956503de7fe04903245819d653a688f4fdbb16c (diff) |
Fix call to processPNG from decompressPNG - closes #91
-rw-r--r-- | init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -160,11 +160,11 @@ local function decompressPNG(tensor, depth, tensortype) 'image.decompressPNG') end local load_from_file = 0 - local a = template(tensortype).libpng.load(load_from_file, tensor) + local a, bit_depth = template(tensortype).libpng.load(load_from_file, tensor) if a == nil then return nil else - return processPNG(a, depth, tensortype) + return processPNG(a, depth, bit_depth, tensortype) end end rawset(image, 'decompressPNG', decompressPNG) |