/// <summary> /// Initialize the structure as empty. Must be called before any other use. Returns false in case of version mismatch /// </summary> /// <param name="buffer"></param> /// <returns></returns> public static int WebPInitDecBuffer(ref WebPDecBuffer buffer) { if (GetPlatformName() == "android") { return(NativeBindings_Android.WebPInitDecBuffer(ref buffer)); } else if (GetPlatformName() == "ios") { return(NativeBindings_iOS.WebPInitDecBuffer(ref buffer)); } else { return(NativeBindings_OSX.WebPInitDecBuffer(ref buffer)); } }
/// <summary> /// Initialize the structure as empty. Must be called before any other use. Returns false in case of version mismatch /// </summary> /// <param name="buffer"></param> /// <returns></returns> public static int WebPInitDecBuffer(ref WebPDecBuffer buffer) { return(WebPInitDecBufferInternal(ref buffer, WEBP_DECODER_ABI_VERSION)); }
public static extern IntPtr WebPINewDecoder(ref WebPDecBuffer output_buffer);
public static extern void WebPFreeDecBuffer(ref WebPDecBuffer buffer);
public static extern int WebPInitDecBufferInternal(ref WebPDecBuffer param0, int param1);