mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Fix not including libwebp binaries into resources
This commit is contained in:
BIN
Wabbajack.App.Wpf/Resources/libwebp_x64.dll
Normal file
BIN
Wabbajack.App.Wpf/Resources/libwebp_x64.dll
Normal file
Binary file not shown.
BIN
Wabbajack.App.Wpf/Resources/libwebp_x86.dll
Normal file
BIN
Wabbajack.App.Wpf/Resources/libwebp_x86.dll
Normal file
Binary file not shown.
@ -918,9 +918,9 @@ namespace Wabbajack
|
||||
throw new InvalidOperationException("Invalid platform. Can not find proper function");
|
||||
}
|
||||
}
|
||||
[DllImport("libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPConfigInitInternal")]
|
||||
[DllImport("Resources/libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPConfigInitInternal")]
|
||||
private static extern int WebPConfigInitInternal_x86(ref WebPConfig config, WebPPreset preset, float quality, int WEBP_DECODER_ABI_VERSION);
|
||||
[DllImport("libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPConfigInitInternal")]
|
||||
[DllImport("Resources/libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPConfigInitInternal")]
|
||||
private static extern int WebPConfigInitInternal_x64(ref WebPConfig config, WebPPreset preset, float quality, int WEBP_DECODER_ABI_VERSION);
|
||||
|
||||
/// <summary>Get info of WepP image</summary>
|
||||
@ -940,9 +940,9 @@ namespace Wabbajack
|
||||
throw new InvalidOperationException("Invalid platform. Can not find proper function");
|
||||
}
|
||||
}
|
||||
[DllImport("libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPGetFeaturesInternal")]
|
||||
[DllImport("Resources/libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPGetFeaturesInternal")]
|
||||
private static extern VP8StatusCode WebPGetFeaturesInternal_x86([InAttribute()] IntPtr rawWebP, UIntPtr data_size, ref WebPBitstreamFeatures features, int WEBP_DECODER_ABI_VERSION);
|
||||
[DllImport("libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPGetFeaturesInternal")]
|
||||
[DllImport("Resources/libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPGetFeaturesInternal")]
|
||||
private static extern VP8StatusCode WebPGetFeaturesInternal_x64([InAttribute()] IntPtr rawWebP, UIntPtr data_size, ref WebPBitstreamFeatures features, int WEBP_DECODER_ABI_VERSION);
|
||||
|
||||
/// <summary>Activate the lossless compression mode with the desired efficiency</summary>
|
||||
@ -961,9 +961,9 @@ namespace Wabbajack
|
||||
throw new InvalidOperationException("Invalid platform. Can not find proper function");
|
||||
}
|
||||
}
|
||||
[DllImport("libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPConfigLosslessPreset")]
|
||||
[DllImport("Resources/libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPConfigLosslessPreset")]
|
||||
private static extern int WebPConfigLosslessPreset_x86(ref WebPConfig config, int level);
|
||||
[DllImport("libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPConfigLosslessPreset")]
|
||||
[DllImport("Resources/libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPConfigLosslessPreset")]
|
||||
private static extern int WebPConfigLosslessPreset_x64(ref WebPConfig config, int level);
|
||||
|
||||
/// <summary>Check that configuration is non-NULL and all configuration parameters are within their valid ranges</summary>
|
||||
@ -981,9 +981,9 @@ namespace Wabbajack
|
||||
throw new InvalidOperationException("Invalid platform. Can not find proper function");
|
||||
}
|
||||
}
|
||||
[DllImport("libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPValidateConfig")]
|
||||
[DllImport("Resources/libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPValidateConfig")]
|
||||
private static extern int WebPValidateConfig_x86(ref WebPConfig config);
|
||||
[DllImport("libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPValidateConfig")]
|
||||
[DllImport("Resources/libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPValidateConfig")]
|
||||
private static extern int WebPValidateConfig_x64(ref WebPConfig config);
|
||||
|
||||
/// <summary>Initialize the WebPPicture structure checking the DLL version</summary>
|
||||
@ -1001,9 +1001,9 @@ namespace Wabbajack
|
||||
throw new InvalidOperationException("Invalid platform. Can not find proper function");
|
||||
}
|
||||
}
|
||||
[DllImport("libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPPictureInitInternal")]
|
||||
[DllImport("Resources/libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPPictureInitInternal")]
|
||||
private static extern int WebPPictureInitInternal_x86(ref WebPPicture wpic, int WEBP_DECODER_ABI_VERSION);
|
||||
[DllImport("libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPPictureInitInternal")]
|
||||
[DllImport("Resources/libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPPictureInitInternal")]
|
||||
private static extern int WebPPictureInitInternal_x64(ref WebPPicture wpic, int WEBP_DECODER_ABI_VERSION);
|
||||
|
||||
/// <summary>Colorspace conversion function to import RGB samples</summary>
|
||||
@ -1023,9 +1023,9 @@ namespace Wabbajack
|
||||
throw new InvalidOperationException("Invalid platform. Can not find proper function");
|
||||
}
|
||||
}
|
||||
[DllImport("libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPPictureImportBGR")]
|
||||
[DllImport("Resources/libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPPictureImportBGR")]
|
||||
private static extern int WebPPictureImportBGR_x86(ref WebPPicture wpic, IntPtr bgr, int stride);
|
||||
[DllImport("libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPPictureImportBGR")]
|
||||
[DllImport("Resources/libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPPictureImportBGR")]
|
||||
private static extern int WebPPictureImportBGR_x64(ref WebPPicture wpic, IntPtr bgr, int stride);
|
||||
|
||||
/// <summary>Color-space conversion function to import RGB samples</summary>
|
||||
@ -1045,9 +1045,9 @@ namespace Wabbajack
|
||||
throw new InvalidOperationException("Invalid platform. Can not find proper function");
|
||||
}
|
||||
}
|
||||
[DllImport("libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPPictureImportBGRA")]
|
||||
[DllImport("Resources/libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPPictureImportBGRA")]
|
||||
private static extern int WebPPictureImportBGRA_x86(ref WebPPicture wpic, IntPtr bgra, int stride);
|
||||
[DllImport("libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPPictureImportBGRA")]
|
||||
[DllImport("Resources/libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPPictureImportBGRA")]
|
||||
private static extern int WebPPictureImportBGRA_x64(ref WebPPicture wpic, IntPtr bgra, int stride);
|
||||
|
||||
/// <summary>Color-space conversion function to import RGB samples</summary>
|
||||
@ -1067,9 +1067,9 @@ namespace Wabbajack
|
||||
throw new InvalidOperationException("Invalid platform. Can not find proper function");
|
||||
}
|
||||
}
|
||||
[DllImport("libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPPictureImportBGRX")]
|
||||
[DllImport("Resources/libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPPictureImportBGRX")]
|
||||
private static extern int WebPPictureImportBGRX_x86(ref WebPPicture wpic, IntPtr bgr, int stride);
|
||||
[DllImport("libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPPictureImportBGRX")]
|
||||
[DllImport("Resources/libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPPictureImportBGRX")]
|
||||
private static extern int WebPPictureImportBGRX_x64(ref WebPPicture wpic, IntPtr bgr, int stride);
|
||||
|
||||
/// <summary>The writer type for output compress data</summary>
|
||||
@ -1097,9 +1097,9 @@ namespace Wabbajack
|
||||
throw new InvalidOperationException("Invalid platform. Can not find proper function");
|
||||
}
|
||||
}
|
||||
[DllImport("libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPEncode")]
|
||||
[DllImport("Resources/libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPEncode")]
|
||||
private static extern int WebPEncode_x86(ref WebPConfig config, ref WebPPicture picture);
|
||||
[DllImport("libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPEncode")]
|
||||
[DllImport("Resources/libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPEncode")]
|
||||
private static extern int WebPEncode_x64(ref WebPConfig config, ref WebPPicture picture);
|
||||
|
||||
/// <summary>Release the memory allocated by WebPPictureAlloc() or WebPPictureImport*()
|
||||
@ -1120,9 +1120,9 @@ namespace Wabbajack
|
||||
throw new InvalidOperationException("Invalid platform. Can not find proper function");
|
||||
}
|
||||
}
|
||||
[DllImport("libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPPictureFree")]
|
||||
[DllImport("Resources/libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPPictureFree")]
|
||||
private static extern void WebPPictureFree_x86(ref WebPPicture wpic);
|
||||
[DllImport("libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPPictureFree")]
|
||||
[DllImport("Resources/libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPPictureFree")]
|
||||
private static extern void WebPPictureFree_x64(ref WebPPicture wpic);
|
||||
|
||||
/// <summary>Validate the WebP image header and retrieve the image height and width. Pointers *width and *height can be passed NULL if deemed irrelevant</summary>
|
||||
@ -1143,9 +1143,9 @@ namespace Wabbajack
|
||||
throw new InvalidOperationException("Invalid platform. Can not find proper function");
|
||||
}
|
||||
}
|
||||
[DllImport("libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPGetInfo")]
|
||||
[DllImport("Resources/libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPGetInfo")]
|
||||
private static extern int WebPGetInfo_x86([InAttribute()] IntPtr data, UIntPtr data_size, out int width, out int height);
|
||||
[DllImport("libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPGetInfo")]
|
||||
[DllImport("Resources/libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPGetInfo")]
|
||||
private static extern int WebPGetInfo_x64([InAttribute()] IntPtr data, UIntPtr data_size, out int width, out int height);
|
||||
|
||||
/// <summary>Decode WEBP image pointed to by *data and returns BGR samples into a preallocated buffer</summary>
|
||||
@ -1170,9 +1170,9 @@ namespace Wabbajack
|
||||
throw new InvalidOperationException("Invalid platform. Can not find proper function");
|
||||
}
|
||||
}
|
||||
[DllImport("libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPDecodeBGRInto")]
|
||||
[DllImport("Resources/libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPDecodeBGRInto")]
|
||||
private static extern IntPtr WebPDecodeBGRInto_x86([InAttribute()] IntPtr data, UIntPtr data_size, IntPtr output_buffer, int output_buffer_size, int output_stride);
|
||||
[DllImport("libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPDecodeBGRInto")]
|
||||
[DllImport("Resources/libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPDecodeBGRInto")]
|
||||
private static extern IntPtr WebPDecodeBGRInto_x64([InAttribute()] IntPtr data, UIntPtr data_size, IntPtr output_buffer, int output_buffer_size, int output_stride);
|
||||
|
||||
/// <summary>Decode WEBP image pointed to by *data and returns BGRA samples into a preallocated buffer</summary>
|
||||
@ -1197,9 +1197,9 @@ namespace Wabbajack
|
||||
throw new InvalidOperationException("Invalid platform. Can not find proper function");
|
||||
}
|
||||
}
|
||||
[DllImport("libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPDecodeBGRAInto")]
|
||||
[DllImport("Resources/libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPDecodeBGRAInto")]
|
||||
private static extern IntPtr WebPDecodeBGRAInto_x86([InAttribute()] IntPtr data, UIntPtr data_size, IntPtr output_buffer, int output_buffer_size, int output_stride);
|
||||
[DllImport("libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPDecodeBGRAInto")]
|
||||
[DllImport("Resources/libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPDecodeBGRAInto")]
|
||||
private static extern IntPtr WebPDecodeBGRAInto_x64([InAttribute()] IntPtr data, UIntPtr data_size, IntPtr output_buffer, int output_buffer_size, int output_stride);
|
||||
|
||||
/// <summary>Decode WEBP image pointed to by *data and returns ARGB samples into a preallocated buffer</summary>
|
||||
@ -1224,9 +1224,9 @@ namespace Wabbajack
|
||||
throw new InvalidOperationException("Invalid platform. Can not find proper function");
|
||||
}
|
||||
}
|
||||
[DllImport("libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPDecodeARGBInto")]
|
||||
[DllImport("Resources/libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPDecodeARGBInto")]
|
||||
private static extern IntPtr WebPDecodeARGBInto_x86([InAttribute()] IntPtr data, UIntPtr data_size, IntPtr output_buffer, int output_buffer_size, int output_stride);
|
||||
[DllImport("libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPDecodeARGBInto")]
|
||||
[DllImport("Resources/libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPDecodeARGBInto")]
|
||||
private static extern IntPtr WebPDecodeARGBInto_x64([InAttribute()] IntPtr data, UIntPtr data_size, IntPtr output_buffer, int output_buffer_size, int output_stride);
|
||||
|
||||
/// <summary>Initialize the configuration as empty. This function must always be called first, unless WebPGetFeatures() is to be called</summary>
|
||||
@ -1244,9 +1244,9 @@ namespace Wabbajack
|
||||
throw new InvalidOperationException("Invalid platform. Can not find proper function");
|
||||
}
|
||||
}
|
||||
[DllImport("libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPInitDecoderConfigInternal")]
|
||||
[DllImport("Resources/libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPInitDecoderConfigInternal")]
|
||||
private static extern int WebPInitDecoderConfigInternal_x86(ref WebPDecoderConfig webPDecoderConfig, int WEBP_DECODER_ABI_VERSION);
|
||||
[DllImport("libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPInitDecoderConfigInternal")]
|
||||
[DllImport("Resources/libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPInitDecoderConfigInternal")]
|
||||
private static extern int WebPInitDecoderConfigInternal_x64(ref WebPDecoderConfig webPDecoderConfig, int WEBP_DECODER_ABI_VERSION);
|
||||
|
||||
/// <summary>Decodes the full data at once, taking configuration into account</summary>
|
||||
@ -1266,9 +1266,9 @@ namespace Wabbajack
|
||||
throw new InvalidOperationException("Invalid platform. Can not find proper function");
|
||||
}
|
||||
}
|
||||
[DllImport("libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPDecode")]
|
||||
[DllImport("Resources/libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPDecode")]
|
||||
private static extern VP8StatusCode WebPDecode_x86(IntPtr data, UIntPtr data_size, ref WebPDecoderConfig config);
|
||||
[DllImport("libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPDecode")]
|
||||
[DllImport("Resources/libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPDecode")]
|
||||
private static extern VP8StatusCode WebPDecode_x64(IntPtr data, UIntPtr data_size, ref WebPDecoderConfig config);
|
||||
|
||||
/// <summary>Free any memory associated with the buffer. Must always be called last. Doesn't free the 'buffer' structure itself</summary>
|
||||
@ -1287,9 +1287,9 @@ namespace Wabbajack
|
||||
throw new InvalidOperationException("Invalid platform. Can not find proper function");
|
||||
}
|
||||
}
|
||||
[DllImport("libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPFreeDecBuffer")]
|
||||
[DllImport("Resources/libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPFreeDecBuffer")]
|
||||
private static extern void WebPFreeDecBuffer_x86(ref WebPDecBuffer buffer);
|
||||
[DllImport("libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPFreeDecBuffer")]
|
||||
[DllImport("Resources/libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPFreeDecBuffer")]
|
||||
private static extern void WebPFreeDecBuffer_x64(ref WebPDecBuffer buffer);
|
||||
|
||||
/// <summary>Lossy encoding images</summary>
|
||||
@ -1312,9 +1312,9 @@ namespace Wabbajack
|
||||
throw new InvalidOperationException("Invalid platform. Can not find proper function");
|
||||
}
|
||||
}
|
||||
[DllImport("libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPEncodeBGR")]
|
||||
[DllImport("Resources/libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPEncodeBGR")]
|
||||
private static extern int WebPEncodeBGR_x86([InAttribute()] IntPtr bgr, int width, int height, int stride, float quality_factor, out IntPtr output);
|
||||
[DllImport("libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPEncodeBGR")]
|
||||
[DllImport("Resources/libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPEncodeBGR")]
|
||||
private static extern int WebPEncodeBGR_x64([InAttribute()] IntPtr bgr, int width, int height, int stride, float quality_factor, out IntPtr output);
|
||||
|
||||
/// <summary>Lossy encoding images</summary>
|
||||
@ -1337,9 +1337,9 @@ namespace Wabbajack
|
||||
throw new InvalidOperationException("Invalid platform. Can not find proper function");
|
||||
}
|
||||
}
|
||||
[DllImport("libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPEncodeBGRA")]
|
||||
[DllImport("Resources/libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPEncodeBGRA")]
|
||||
private static extern int WebPEncodeBGRA_x86([InAttribute()] IntPtr bgra, int width, int height, int stride, float quality_factor, out IntPtr output);
|
||||
[DllImport("libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPEncodeBGRA")]
|
||||
[DllImport("Resources/libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPEncodeBGRA")]
|
||||
private static extern int WebPEncodeBGRA_x64([InAttribute()] IntPtr bgra, int width, int height, int stride, float quality_factor, out IntPtr output);
|
||||
|
||||
/// <summary>Lossless encoding images pointed to by *data in WebP format</summary>
|
||||
@ -1361,9 +1361,9 @@ namespace Wabbajack
|
||||
throw new InvalidOperationException("Invalid platform. Can not find proper function");
|
||||
}
|
||||
}
|
||||
[DllImport("libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPEncodeLosslessBGR")]
|
||||
[DllImport("Resources/libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPEncodeLosslessBGR")]
|
||||
private static extern int WebPEncodeLosslessBGR_x86([InAttribute()] IntPtr bgr, int width, int height, int stride, out IntPtr output);
|
||||
[DllImport("libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPEncodeLosslessBGR")]
|
||||
[DllImport("Resources/libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPEncodeLosslessBGR")]
|
||||
private static extern int WebPEncodeLosslessBGR_x64([InAttribute()] IntPtr bgr, int width, int height, int stride, out IntPtr output);
|
||||
|
||||
/// <summary>Lossless encoding images pointed to by *data in WebP format</summary>
|
||||
@ -1385,9 +1385,9 @@ namespace Wabbajack
|
||||
throw new InvalidOperationException("Invalid platform. Can not find proper function");
|
||||
}
|
||||
}
|
||||
[DllImport("libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPEncodeLosslessBGRA")]
|
||||
[DllImport("Resources/libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPEncodeLosslessBGRA")]
|
||||
private static extern int WebPEncodeLosslessBGRA_x86([InAttribute()] IntPtr bgra, int width, int height, int stride, out IntPtr output);
|
||||
[DllImport("libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPEncodeLosslessBGRA")]
|
||||
[DllImport("Resources/libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPEncodeLosslessBGRA")]
|
||||
private static extern int WebPEncodeLosslessBGRA_x64([InAttribute()] IntPtr bgra, int width, int height, int stride, out IntPtr output);
|
||||
|
||||
/// <summary>Releases memory returned by the WebPEncode</summary>
|
||||
@ -1406,9 +1406,9 @@ namespace Wabbajack
|
||||
throw new InvalidOperationException("Invalid platform. Can not find proper function");
|
||||
}
|
||||
}
|
||||
[DllImport("libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPFree")]
|
||||
[DllImport("Resources/libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPFree")]
|
||||
private static extern void WebPFree_x86(IntPtr p);
|
||||
[DllImport("libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPFree")]
|
||||
[DllImport("Resources/libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPFree")]
|
||||
private static extern void WebPFree_x64(IntPtr p);
|
||||
|
||||
/// <summary>Get the WebP version library</summary>
|
||||
@ -1425,9 +1425,9 @@ namespace Wabbajack
|
||||
throw new InvalidOperationException("Invalid platform. Can not find proper function");
|
||||
}
|
||||
}
|
||||
[DllImport("libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPGetDecoderVersion")]
|
||||
[DllImport("Resources/libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPGetDecoderVersion")]
|
||||
private static extern int WebPGetDecoderVersion_x86();
|
||||
[DllImport("libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPGetDecoderVersion")]
|
||||
[DllImport("Resources/libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPGetDecoderVersion")]
|
||||
private static extern int WebPGetDecoderVersion_x64();
|
||||
|
||||
/// <summary>Compute PSNR, SSIM or LSIM distortion metric between two pictures</summary>
|
||||
@ -1448,9 +1448,9 @@ namespace Wabbajack
|
||||
throw new InvalidOperationException("Invalid platform. Can not find proper function");
|
||||
}
|
||||
}
|
||||
[DllImport("libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPPictureDistortion")]
|
||||
[DllImport("Resources/libwebp_x86.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPPictureDistortion")]
|
||||
private static extern int WebPPictureDistortion_x86(ref WebPPicture srcPicture, ref WebPPicture refPicture, int metric_type, IntPtr pResult);
|
||||
[DllImport("libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPPictureDistortion")]
|
||||
[DllImport("Resources/libwebp_x64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPPictureDistortion")]
|
||||
private static extern int WebPPictureDistortion_x64(ref WebPPicture srcPicture, ref WebPPicture refPicture, int metric_type, IntPtr pResult);
|
||||
}
|
||||
#endregion
|
||||
|
@ -69,6 +69,12 @@
|
||||
<None Remove="Resources\Wabba_Mouth_Small.png" />
|
||||
<Compile Remove="ViewModels\Compilers\VortexCompilerVM.cs" />
|
||||
<Compile Remove="ViewModels\Installers\VortexInstallerVM.cs" />
|
||||
<None Update="Resources\libwebp_x64.dll">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="Resources\libwebp_x86.dll">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="VerbRegistration.tt">
|
||||
<Generator>TextTemplatingFileGenerator</Generator>
|
||||
<LastGenOutput>VerbRegistration.cs</LastGenOutput>
|
||||
|
Reference in New Issue
Block a user