// /// <summary> /// Retrieve features from the bitstream. The *features structure is filled /// with information gathered from the bitstream. /// Returns false in case of error or version mismatch. /// In case of error, features->bitstream_status will reflect the error code. /// </summary> /// <param name="data"></param> /// <param name="data_size"></param> /// <param name="features"></param> /// <returns></returns> public static VP8StatusCode WebPGetFeatures(IntPtr data, UIntPtr data_size, ref WebPBitstreamFeatures features) { if (GetPlatformName() == "android") { return(NativeBindings_Android.WebPGetFeatures(data, data_size, ref features)); } else if (GetPlatformName() == "ios") { return(NativeBindings_iOS.WebPGetFeatures(data, data_size, ref features)); } else { return(NativeBindings_OSX.WebPGetFeatures(data, data_size, ref features)); } }
// /// <summary> /// Retrieve features from the bitstream. The *features structure is filled /// with information gathered from the bitstream. /// Returns false in case of error or version mismatch. /// In case of error, features->bitstream_status will reflect the error code. /// </summary> /// <param name="data"></param> /// <param name="data_size"></param> /// <param name="features"></param> /// <returns></returns> public static VP8StatusCode WebPGetFeatures(IntPtr data, UIntPtr data_size, ref WebPBitstreamFeatures features) { return(NativeBindings_OSX.WebPGetFeaturesInternal(data, data_size, ref features, WEBP_DECODER_ABI_VERSION)); }
public static extern VP8StatusCode WebPGetFeaturesInternal([InAttribute()] IntPtr param0, UIntPtr param1, ref WebPBitstreamFeatures param2, int param3);