Skip to content

Commit

Permalink
libdeflate: update to latest 1.19
Browse files Browse the repository at this point in the history
Relates to #525.   Thank you to @user-by for requesting this library update.
  • Loading branch information
tannerhelland committed Feb 20, 2024
1 parent f900d9d commit e8b7662
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Binary file modified App/PhotoDemon/Plugins/libdeflate.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion Modules/Plugin_Management.bas
Expand Up @@ -61,7 +61,7 @@ Private Const EXPECTED_EXIFTOOL_VERSION As String = "12.70"
Private Const EXPECTED_EZTWAIN_VERSION As String = "1.18.0"
Private Const EXPECTED_FREEIMAGE_VERSION As String = "3.19.0"
Private Const EXPECTED_LIBAVIF_VERSION As String = "1.0.1"
Private Const EXPECTED_LIBDEFLATE_VERSION As String = "1.18"
Private Const EXPECTED_LIBDEFLATE_VERSION As String = "1.19"
Private Const EXPECTED_LIBJXL_VERSION As String = "0.8.1"
Private Const EXPECTED_LITTLECMS_VERSION As String = "2.16.0"
Private Const EXPECTED_LZ4_VERSION As String = "10904"
Expand Down
10 changes: 5 additions & 5 deletions Modules/Plugin_libdeflate.bas
Expand Up @@ -179,6 +179,11 @@ Public Sub ReleaseEngine()
End If
End Sub

'libdeflate doesn't export a version function, but this class was last tested against the v1.19 release.
Public Function GetCompressorVersion() As String
GetCompressorVersion = "1.19"
End Function

Public Function CompressPtrToPtr(ByVal constDstPtr As Long, ByRef dstSizeInBytes As Long, ByVal constSrcPtr As Long, ByVal constSrcSizeInBytes As Long, Optional ByVal compressionLevel As Long = -1, Optional ByVal cmpFormat As PD_CompressionFormat = cf_Zlib) As Boolean
CompressPtrToPtr = LibDeflateCompress(constDstPtr, dstSizeInBytes, constSrcPtr, constSrcSizeInBytes, compressionLevel, cmpFormat)
End Function
Expand Down Expand Up @@ -425,11 +430,6 @@ Public Function IsCompressorReady() As Boolean
IsCompressorReady = (m_libDeflateHandle <> 0)
End Function

'libdeflate doesn't export a version function, but this class was last tested against the v1.15 release (released Jan 2022).
Public Function GetCompressorVersion() As String
GetCompressorVersion = "1.18"
End Function

'Private methods follow

'Clamp requested compression levels to valid inputs, and resolve negative numbers to the engine's default value.
Expand Down
2 changes: 1 addition & 1 deletion PhotoDemon.vbp
Expand Up @@ -521,7 +521,7 @@ Description="PhotoDemon Photo Editor"
CompatibleMode="0"
MajorVer=9
MinorVer=1
RevisionVer=265
RevisionVer=267
AutoIncrementVer=1
ServerSupportFiles=0
VersionComments="Copyright 2000-2023 Tanner Helland - photodemon.org"
Expand Down

0 comments on commit e8b7662

Please sign in to comment.