Types
StbirDatatype {.size: 4.} = enum STBIR_TYPE_UINT8 = 0, STBIR_TYPE_UINT8_SRGB = 1, STBIR_TYPE_UINT8_SRGB_ALPHA = 2, STBIR_TYPE_UINT16 = 3, STBIR_TYPE_FLOAT = 4, STBIR_TYPE_HALF_FLOAT = 5
- Source Edit
StbirEdge {.size: 4.} = enum STBIR_EDGE_CLAMP = 0, STBIR_EDGE_REFLECT = 1, STBIR_EDGE_WRAP = 2, STBIR_EDGE_ZERO = 3
- Source Edit
StbirFilter {.size: 4.} = enum STBIR_FILTER_DEFAULT = 0, STBIR_FILTER_BOX = 1, STBIR_FILTER_TRIANGLE = 2, STBIR_FILTER_CUBICBSPLINE = 3, STBIR_FILTER_CATMULLROM = 4, STBIR_FILTER_MITCHELL = 5, STBIR_FILTER_POINT_SAMPLE = 6, STBIR_FILTER_OTHER = 7
- Source Edit
StbirPixelLayout {.size: 4.} = enum StbirBgr = 0, Stbir1channel = 1, Stbir2channel = 2, StbirRgb = 3, StbirRgba = 4, Stbir4channel = 5, StbirBgra = 6, StbirArgb = 7, StbirAbgr = 8, StbirRa = 9, StbirAr = 10, StbirRgbaPm = 11, StbirBgraPm = 12, StbirArgbPm = 13, StbirAbgrPm = 14, StbirRaPm = 15, StbirArPm = 16
- Source Edit
Procs
proc stbir_resize(input_pixels: pointer; input_w, input_h, input_stride_in_bytes: int32; output_pixels: pointer; output_w, output_h, output_stride_in_bytes: int32; pixel_layout: StbirPixelLayout; data_type: StbirDatatype; edge: StbirEdge; filter: StbirFilter) {.importc, cdecl, ...raises: [], tags: [].}
- Source Edit