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)); } }
/// <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)); } }
/// <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)); }
public static extern VP8StatusCode WebPDecode([InAttribute()] IntPtr data, UIntPtr data_size, ref WebPDecoderConfig config);
public static extern IntPtr WebPIDecode([InAttribute()] IntPtr data, UIntPtr data_size, ref WebPDecoderConfig config);
public static extern int WebPInitDecoderConfigInternal(ref WebPDecoderConfig param0, int param1);