/// <summary> /// Determines whether LibHeif has an encoder for the specified <see cref="HeifCompressionFormat"/>. /// </summary> /// <param name="format">The compression format.</param> /// <returns> /// <see langword="true" /> if LibHeif an encoder for the specified <see cref="HeifCompressionFormat"/>; /// otherwise, <see langword="false" />. /// </returns> public static bool HaveEncoder(HeifCompressionFormat format) { lock (nativeCallLock) { return(LibHeifNative.heif_have_encoder_for_format(format)); } }
internal static extern unsafe int heif_context_get_encoder_descriptors(SafeHeifContext context, HeifCompressionFormat compressionFormat, [MarshalAs(UnmanagedType.LPStr)] string nameFilter, heif_encoder_descriptor *items, int count);
internal static extern heif_error heif_context_get_encoder_for_format(SafeHeifContext context, HeifCompressionFormat format, out SafeHeifEncoder encoder);
internal static extern bool heif_have_encoder_for_format(HeifCompressionFormat format);