Пример #1
0
 public static VP8StatusCode WebPDecode(IntPtr data, UIntPtr data_size, ref WebPDecoderConfig config)
 {
     if (GetPlatformName() == "android")
     {
         return(NativeBindings_Android.WebPDecode(data, data_size, ref config));
     }
     else if (GetPlatformName() == "ios")
     {
         return(NativeBindings_iOS.WebPDecode(data, data_size, ref config));
     }
     else
     {
         return(NativeBindings_OSX.WebPDecode(data, data_size, ref config));
     }
 }
Пример #2
0
 /// <summary>
 /// Initialize the configuration as empty. This function must always be
 /// called first, unless WebPGetFeatures() is to be called.
 /// Returns false in case of mismatched version.
 /// </summary>
 /// <param name="config"></param>
 /// <returns></returns>
 public static int WebPInitDecoderConfig(ref WebPDecoderConfig config)
 {
     if (GetPlatformName() == "android")
     {
         return(NativeBindings_Android.WebPInitDecoderConfig(ref config));
     }
     else if (GetPlatformName() == "ios")
     {
         return(NativeBindings_iOS.WebPInitDecoderConfig(ref config));
     }
     else
     {
         return(NativeBindings_OSX.WebPInitDecoderConfig(ref config));
     }
 }
Пример #3
0
 /// <summary>
 /// Initialize the configuration as empty. This function must always be
 /// called first, unless WebPGetFeatures() is to be called.
 /// Returns false in case of mismatched version.
 /// </summary>
 /// <param name="config"></param>
 /// <returns></returns>
 public static int WebPInitDecoderConfig(ref WebPDecoderConfig config)
 {
     return(WebPInitDecoderConfigInternal(ref config, WEBP_DECODER_ABI_VERSION));
 }
Пример #4
0
 public static extern VP8StatusCode WebPDecode([InAttribute()] IntPtr data, UIntPtr data_size, ref WebPDecoderConfig config);
Пример #5
0
 public static extern IntPtr WebPIDecode([InAttribute()] IntPtr data, UIntPtr data_size, ref WebPDecoderConfig config);
Пример #6
0
 public static extern int WebPInitDecoderConfigInternal(ref WebPDecoderConfig param0, int param1);