Castor3D 0.16.0
Multiplatform 3D engine
Macros | Typedefs | Enumerations | Functions
stb_image_resize.h File Reference

Macros

#define STBIRDEF   extern
 
#define STBIR_ALPHA_CHANNEL_NONE   -1
 
#define STBIR_FLAG_ALPHA_PREMULTIPLIED   (1 << 0)
 
#define STBIR_FLAG_ALPHA_USES_COLORSPACE   (1 << 1)
 

Typedefs

typedef uint8_t stbir_uint8
 
typedef uint16_t stbir_uint16
 
typedef uint32_t stbir_uint32
 

Enumerations

enum  stbir_edge { STBIR_EDGE_CLAMP = 1 , STBIR_EDGE_REFLECT = 2 , STBIR_EDGE_WRAP = 3 , STBIR_EDGE_ZERO = 4 }
 
enum  stbir_filter {
  STBIR_FILTER_DEFAULT = 0 , STBIR_FILTER_BOX = 1 , STBIR_FILTER_TRIANGLE = 2 , STBIR_FILTER_CUBICBSPLINE = 3 ,
  STBIR_FILTER_CATMULLROM = 4 , STBIR_FILTER_MITCHELL = 5
}
 
enum  stbir_colorspace { STBIR_COLORSPACE_LINEAR , STBIR_COLORSPACE_SRGB , STBIR_MAX_COLORSPACES }
 
enum  stbir_datatype {
  STBIR_TYPE_UINT8 , STBIR_TYPE_UINT16 , STBIR_TYPE_UINT32 , STBIR_TYPE_FLOAT ,
  STBIR_MAX_TYPES
}
 

Functions

int stbir_resize_uint8 (const unsigned char *input_pixels, int input_w, int input_h, int input_stride_in_bytes, unsigned char *output_pixels, int output_w, int output_h, int output_stride_in_bytes, int num_channels)
 
int stbir_resize_float (const float *input_pixels, int input_w, int input_h, int input_stride_in_bytes, float *output_pixels, int output_w, int output_h, int output_stride_in_bytes, int num_channels)
 
int stbir_resize_uint8_srgb (const unsigned char *input_pixels, int input_w, int input_h, int input_stride_in_bytes, unsigned char *output_pixels, int output_w, int output_h, int output_stride_in_bytes, int num_channels, int alpha_channel, int flags)
 
int stbir_resize_uint8_srgb_edgemode (const unsigned char *input_pixels, int input_w, int input_h, int input_stride_in_bytes, unsigned char *output_pixels, int output_w, int output_h, int output_stride_in_bytes, int num_channels, int alpha_channel, int flags, stbir_edge edge_wrap_mode)
 
int stbir_resize_uint8_generic (const unsigned char *input_pixels, int input_w, int input_h, int input_stride_in_bytes, unsigned char *output_pixels, int output_w, int output_h, int output_stride_in_bytes, int num_channels, int alpha_channel, int flags, stbir_edge edge_wrap_mode, stbir_filter filter, stbir_colorspace space, void *alloc_context)
 
int stbir_resize_uint16_generic (const stbir_uint16 *input_pixels, int input_w, int input_h, int input_stride_in_bytes, stbir_uint16 *output_pixels, int output_w, int output_h, int output_stride_in_bytes, int num_channels, int alpha_channel, int flags, stbir_edge edge_wrap_mode, stbir_filter filter, stbir_colorspace space, void *alloc_context)
 
int stbir_resize_float_generic (const float *input_pixels, int input_w, int input_h, int input_stride_in_bytes, float *output_pixels, int output_w, int output_h, int output_stride_in_bytes, int num_channels, int alpha_channel, int flags, stbir_edge edge_wrap_mode, stbir_filter filter, stbir_colorspace space, void *alloc_context)
 
int stbir_resize (const void *input_pixels, int input_w, int input_h, int input_stride_in_bytes, void *output_pixels, int output_w, int output_h, int output_stride_in_bytes, stbir_datatype datatype, int num_channels, int alpha_channel, int flags, stbir_edge edge_mode_horizontal, stbir_edge edge_mode_vertical, stbir_filter filter_horizontal, stbir_filter filter_vertical, stbir_colorspace space, void *alloc_context)
 
int stbir_resize_subpixel (const void *input_pixels, int input_w, int input_h, int input_stride_in_bytes, void *output_pixels, int output_w, int output_h, int output_stride_in_bytes, stbir_datatype datatype, int num_channels, int alpha_channel, int flags, stbir_edge edge_mode_horizontal, stbir_edge edge_mode_vertical, stbir_filter filter_horizontal, stbir_filter filter_vertical, stbir_colorspace space, void *alloc_context, float x_scale, float y_scale, float x_offset, float y_offset)
 
int stbir_resize_region (const void *input_pixels, int input_w, int input_h, int input_stride_in_bytes, void *output_pixels, int output_w, int output_h, int output_stride_in_bytes, stbir_datatype datatype, int num_channels, int alpha_channel, int flags, stbir_edge edge_mode_horizontal, stbir_edge edge_mode_vertical, stbir_filter filter_horizontal, stbir_filter filter_vertical, stbir_colorspace space, void *alloc_context, float s0, float t0, float s1, float t1)
 

Macro Definition Documentation

◆ STBIR_ALPHA_CHANNEL_NONE

#define STBIR_ALPHA_CHANNEL_NONE   -1

◆ STBIR_FLAG_ALPHA_PREMULTIPLIED

#define STBIR_FLAG_ALPHA_PREMULTIPLIED   (1 << 0)

◆ STBIR_FLAG_ALPHA_USES_COLORSPACE

#define STBIR_FLAG_ALPHA_USES_COLORSPACE   (1 << 1)

◆ STBIRDEF

#define STBIRDEF   extern

Typedef Documentation

◆ stbir_uint16

typedef uint16_t stbir_uint16

◆ stbir_uint32

typedef uint32_t stbir_uint32

◆ stbir_uint8

typedef uint8_t stbir_uint8

Enumeration Type Documentation

◆ stbir_colorspace

Enumerator
STBIR_COLORSPACE_LINEAR 
STBIR_COLORSPACE_SRGB 
STBIR_MAX_COLORSPACES 

◆ stbir_datatype

Enumerator
STBIR_TYPE_UINT8 
STBIR_TYPE_UINT16 
STBIR_TYPE_UINT32 
STBIR_TYPE_FLOAT 
STBIR_MAX_TYPES 

◆ stbir_edge

enum stbir_edge
Enumerator
STBIR_EDGE_CLAMP 
STBIR_EDGE_REFLECT 
STBIR_EDGE_WRAP 
STBIR_EDGE_ZERO 

◆ stbir_filter

Enumerator
STBIR_FILTER_DEFAULT 
STBIR_FILTER_BOX 
STBIR_FILTER_TRIANGLE 
STBIR_FILTER_CUBICBSPLINE 
STBIR_FILTER_CATMULLROM 
STBIR_FILTER_MITCHELL 

Function Documentation

◆ stbir_resize()

int stbir_resize ( const void * input_pixels,
int input_w,
int input_h,
int input_stride_in_bytes,
void * output_pixels,
int output_w,
int output_h,
int output_stride_in_bytes,
stbir_datatype datatype,
int num_channels,
int alpha_channel,
int flags,
stbir_edge edge_mode_horizontal,
stbir_edge edge_mode_vertical,
stbir_filter filter_horizontal,
stbir_filter filter_vertical,
stbir_colorspace space,
void * alloc_context )
extern

◆ stbir_resize_float()

int stbir_resize_float ( const float * input_pixels,
int input_w,
int input_h,
int input_stride_in_bytes,
float * output_pixels,
int output_w,
int output_h,
int output_stride_in_bytes,
int num_channels )
extern

◆ stbir_resize_float_generic()

int stbir_resize_float_generic ( const float * input_pixels,
int input_w,
int input_h,
int input_stride_in_bytes,
float * output_pixels,
int output_w,
int output_h,
int output_stride_in_bytes,
int num_channels,
int alpha_channel,
int flags,
stbir_edge edge_wrap_mode,
stbir_filter filter,
stbir_colorspace space,
void * alloc_context )
extern

◆ stbir_resize_region()

int stbir_resize_region ( const void * input_pixels,
int input_w,
int input_h,
int input_stride_in_bytes,
void * output_pixels,
int output_w,
int output_h,
int output_stride_in_bytes,
stbir_datatype datatype,
int num_channels,
int alpha_channel,
int flags,
stbir_edge edge_mode_horizontal,
stbir_edge edge_mode_vertical,
stbir_filter filter_horizontal,
stbir_filter filter_vertical,
stbir_colorspace space,
void * alloc_context,
float s0,
float t0,
float s1,
float t1 )
extern

◆ stbir_resize_subpixel()

int stbir_resize_subpixel ( const void * input_pixels,
int input_w,
int input_h,
int input_stride_in_bytes,
void * output_pixels,
int output_w,
int output_h,
int output_stride_in_bytes,
stbir_datatype datatype,
int num_channels,
int alpha_channel,
int flags,
stbir_edge edge_mode_horizontal,
stbir_edge edge_mode_vertical,
stbir_filter filter_horizontal,
stbir_filter filter_vertical,
stbir_colorspace space,
void * alloc_context,
float x_scale,
float y_scale,
float x_offset,
float y_offset )
extern

◆ stbir_resize_uint16_generic()

int stbir_resize_uint16_generic ( const stbir_uint16 * input_pixels,
int input_w,
int input_h,
int input_stride_in_bytes,
stbir_uint16 * output_pixels,
int output_w,
int output_h,
int output_stride_in_bytes,
int num_channels,
int alpha_channel,
int flags,
stbir_edge edge_wrap_mode,
stbir_filter filter,
stbir_colorspace space,
void * alloc_context )
extern

◆ stbir_resize_uint8()

int stbir_resize_uint8 ( const unsigned char * input_pixels,
int input_w,
int input_h,
int input_stride_in_bytes,
unsigned char * output_pixels,
int output_w,
int output_h,
int output_stride_in_bytes,
int num_channels )
extern

◆ stbir_resize_uint8_generic()

int stbir_resize_uint8_generic ( const unsigned char * input_pixels,
int input_w,
int input_h,
int input_stride_in_bytes,
unsigned char * output_pixels,
int output_w,
int output_h,
int output_stride_in_bytes,
int num_channels,
int alpha_channel,
int flags,
stbir_edge edge_wrap_mode,
stbir_filter filter,
stbir_colorspace space,
void * alloc_context )
extern

◆ stbir_resize_uint8_srgb()

int stbir_resize_uint8_srgb ( const unsigned char * input_pixels,
int input_w,
int input_h,
int input_stride_in_bytes,
unsigned char * output_pixels,
int output_w,
int output_h,
int output_stride_in_bytes,
int num_channels,
int alpha_channel,
int flags )
extern

◆ stbir_resize_uint8_srgb_edgemode()

int stbir_resize_uint8_srgb_edgemode ( const unsigned char * input_pixels,
int input_w,
int input_h,
int input_stride_in_bytes,
unsigned char * output_pixels,
int output_w,
int output_h,
int output_stride_in_bytes,
int num_channels,
int alpha_channel,
int flags,
stbir_edge edge_wrap_mode )
extern