Merge pull request #66 from DarthAffe/sdccp_update

Small naming changes in sd.cpp
This commit is contained in:
DarthAffe authored and GitHub committed 2025-12-07 10:17:30 +01:00
commit 49626b0cb4
3 files changed
+6 -6

No files matched your search

+3 -3
View File
@@ -2,11 +2,11 @@
public enum Prediction public enum Prediction
{ {
Default,
EPS, EPS,
V, V,
EDM_V, EDM_V,
SD3Flow, Flow,
FluxFlow, FluxFlow,
Flux2Flow Flux2Flow,
Default
} }
+2 -2
View File
@@ -222,8 +222,8 @@ internal unsafe partial class Native
[LibraryImport(LIB_NAME, EntryPoint = "sd_set_preview_callback")] [LibraryImport(LIB_NAME, EntryPoint = "sd_set_preview_callback")]
internal static partial void sd_set_preview_callback(sd_preview_cb_t? cb, preview_t mode, int interval, [MarshalAs(UnmanagedType.I1)] bool denoised, [MarshalAs(UnmanagedType.I1)] bool noisy, void* data); internal static partial void sd_set_preview_callback(sd_preview_cb_t? cb, preview_t mode, int interval, [MarshalAs(UnmanagedType.I1)] bool denoised, [MarshalAs(UnmanagedType.I1)] bool noisy, void* data);
[LibraryImport(LIB_NAME, EntryPoint = "get_num_physical_cores")] [LibraryImport(LIB_NAME, EntryPoint = "sd_get_num_physical_cores")]
internal static partial int32_t get_num_physical_cores(); internal static partial int32_t sd_get_num_physical_cores();
[LibraryImport(LIB_NAME, EntryPoint = "sd_get_system_info")] [LibraryImport(LIB_NAME, EntryPoint = "sd_get_system_info")]
[return: MarshalAs(UnmanagedType.LPStr)] [return: MarshalAs(UnmanagedType.LPStr)]
+1 -1
View File
@@ -60,7 +60,7 @@ public static unsafe class StableDiffusionCpp
public static string GetSystemInfo() => Native.sd_get_system_info(); public static string GetSystemInfo() => Native.sd_get_system_info();
public static int GetNumPhysicalCores() => Native.get_num_physical_cores(); public static int GetNumPhysicalCores() => Native.sd_get_num_physical_cores();
public static Image<ColorRGB> PreprocessCanny(CannyParameter parameter) public static Image<ColorRGB> PreprocessCanny(CannyParameter parameter)
{ {