Exemple #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));
     }
 }
Exemple #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));
 }
Exemple #3
0
 public static extern IntPtr WebPINewDecoder(ref WebPDecBuffer output_buffer);
Exemple #4
0
 public static extern void WebPFreeDecBuffer(ref WebPDecBuffer buffer);
Exemple #5
0
 public static extern int WebPInitDecBufferInternal(ref WebPDecBuffer param0, int param1);