Skip to content

Commit

Permalink
modified: Julia/IPP.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
jvo203 committed Sep 30, 2021
1 parent 94b21ce commit 3e5966a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Julia/IPP.jl
Original file line number Diff line number Diff line change
Expand Up @@ -216,15 +216,12 @@ function resizeNearest8uC1R(src::Matrix{UInt8}, width::Integer, height::Integer)
initSize,
)

println("status: $status; specSize: $(specSize[]), initSize: $(initSize[])")

if status != 0
error("ippiResizeGetSize_8u::$status")
end

# Memory allocation
pSpec = ccall((:ippsMalloc_8u, ipplib * "/libipps.so"), Ptr{Cvoid}, (Cint,), specSize[])
println("pSpec:", pSpec)

if pSpec == C_NULL
error("NULL pSpec")
Expand All @@ -239,7 +236,6 @@ function resizeNearest8uC1R(src::Matrix{UInt8}, width::Integer, height::Integer)
dstSize,
pSpec,
)
println("ippiResizeNearestInit_8u::$status")

if status != 0
ccall((:ippsFree, ipplib * "/libipps.so"), Cvoid, (Ptr{Cvoid},), pSpec)
Expand All @@ -258,7 +254,6 @@ function resizeNearest8uC1R(src::Matrix{UInt8}, width::Integer, height::Integer)
ippC1,
bufSize,
)
println("ippiResizeGetBufferSize_8u::$status, bufSize:", bufSize[])

if status != 0
ccall((:ippsFree, ipplib * "/libipps.so"), Cvoid, (Ptr{Cvoid},), pSpec)
Expand All @@ -267,7 +262,6 @@ function resizeNearest8uC1R(src::Matrix{UInt8}, width::Integer, height::Integer)

pBuffer =
ccall((:ippsMalloc_8u, ipplib * "/libipps.so"), Ptr{Cvoid}, (Cint,), bufSize[])
println("pBuffer:", pBuffer)

if pBuffer != C_NULL
srcOffset = IppiPoint(0, 0)
Expand All @@ -283,7 +277,6 @@ function resizeNearest8uC1R(src::Matrix{UInt8}, width::Integer, height::Integer)
srcOffset,
srcSize,
)
println("ippiResizeGetSrcRoi_8u::$status")

if status == 0
# finally resize the image
Expand All @@ -303,7 +296,6 @@ function resizeNearest8uC1R(src::Matrix{UInt8}, width::Integer, height::Integer)
pSpec,
pBuffer,
)
println("ippiResizeNearest_8u_C1R::$status")

end

Expand Down

0 comments on commit 3e5966a

Please sign in to comment.