File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ CEnum = "fa961155-64e5-5f13-b03f-caf6b980ea82"
8
8
FileIO = " 5789e2e9-d7fb-5bc7-8068-2c6fae9b9549"
9
9
ImageCore = " a09fc81d-aa75-5fe9-8630-4744c3626534"
10
10
JpegTurbo_jll = " aacddb02-875f-59d6-b918-886e6ef4fbf8"
11
+ TOML = " fa267f1f-6049-4f14-aa54-33bafae1ed76"
11
12
12
13
[compat ]
13
14
CEnum = " 0.3, 0.4"
Original file line number Diff line number Diff line change 1
1
module JpegTurbo
2
2
3
3
using ImageCore
4
+ using TOML
5
+ const project_info = TOML. parsefile (joinpath (@__DIR__ , " .." , " Project.toml" ))
4
6
5
7
include (" ../lib/LibJpeg.jl" )
6
8
using . LibJpeg
Original file line number Diff line number Diff line change 1
1
"""
2
- versioninfo()
2
+ versioninfo(io=stdout )
3
3
4
4
Print information about the libjpeg-turbo in use.
5
5
"""
6
- function versioninfo ()
7
- println (" libjpeg version: " , LibJpeg. JPEG_LIB_VERSION)
8
- println (" libjpeg-turbo version: " , LibJpeg. LIBJPEG_TURBO_VERSION)
9
- println (" bit mode: " , LibJpeg. BITS_IN_JSAMPLE)
10
- println (" SIMD: " , LibJpeg. WITH_SIMD == 1 ? " enabled" : " disabled" )
6
+ function versioninfo (io= stdout )
7
+ println (io, " JpegTurbo.jl version: " , project_info[" version" ])
8
+ println (io, " libjpeg version: " , LibJpeg. JPEG_LIB_VERSION)
9
+ println (io, " libjpeg-turbo version: " , LibJpeg. LIBJPEG_TURBO_VERSION)
10
+ println (io, " bit mode: " , LibJpeg. BITS_IN_JSAMPLE)
11
+ println (io, " SIMD: " , LibJpeg. WITH_SIMD == 1 ? " enabled" : " disabled" )
11
12
end
You can’t perform that action at this time.
0 commit comments