You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to contribute wrapper code for the WebPAnimDecoder API to enable decoding of Animated WebP files.
For that to work it needs the WebP DLL libwebpdemux.dll that depends on libwebp.dll. But sticking to the current way the auto switch is done and naming the file libwebpdemux_x64.dll doesn't work, because it expects to find the dependency with its original file name.
One solution is to move the files to subfolders and specify them in the DllImport attributes:
It works and also the dependencies can be loaded. But maybe not the best solution.
The second solution uses the fact that DLLs aren't loaded into the process again if they have already been loaded before. So we can just preload the DLLs from the correct subfolder:
Hello,
I'd like to contribute wrapper code for the WebPAnimDecoder API to enable decoding of Animated WebP files.
For that to work it needs the WebP DLL libwebpdemux.dll that depends on libwebp.dll. But sticking to the current way the
auto switch
is done and naming the file libwebpdemux_x64.dll doesn't work, because it expects to find the dependency with its original file name.One solution is to move the files to subfolders and specify them in the DllImport attributes:
It works and also the dependencies can be loaded. But maybe not the best solution.
The second solution uses the fact that DLLs aren't loaded into the process again if they have already been loaded before. So we can just preload the DLLs from the correct subfolder:
Would that be okay for you?
So first I'd like to create a PR to rename and move the DLLs to the respective subfolders.
Besides, are there any special reasons why the 32- and 64-bit version of libwebp.dll aren't used in the same version (number)?
The text was updated successfully, but these errors were encountered: