Ejemplo n.º 1
0
 /// <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));
     }
 }
Ejemplo n.º 2
0
 /// <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));
 }
Ejemplo n.º 3
0
 public static extern IntPtr WebPINewDecoder(ref WebPDecBuffer output_buffer);
Ejemplo n.º 4
0
 public static extern void WebPFreeDecBuffer(ref WebPDecBuffer buffer);
Ejemplo n.º 5
0
 public static extern int WebPInitDecBufferInternal(ref WebPDecBuffer param0, int param1);