Skip to content

Commit

Permalink
Try a different name for loading libwebp.
Browse files Browse the repository at this point in the history
Hopefully this will be a bit more robust - it is suggested by the Mono
docs.
  • Loading branch information
cameronwhite committed Jun 14, 2013
1 parent 7a41a90 commit f731412
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions WebPAddin/NativeMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ namespace WebPAddin
{
public class NativeMethods
{
[DllImport ("libwebp")]
[DllImport ("webp")]
public static extern int WebPGetInfo(byte[] data, uint data_size, ref int width, ref int height);

[DllImport ("libwebp")]
[DllImport ("webp")]
public static extern UIntPtr WebPDecodeBGRAInto(byte[] data, uint data_size, byte[] output_buffer,
int output_buffer_size, int output_stride);

[DllImport ("libwebp")]
[DllImport ("webp")]
public static extern uint WebPEncodeBGRA(byte[] data, int width, int height, int stride,
float quality_factor, ref IntPtr output);

Expand Down

0 comments on commit f731412

Please sign in to comment.