![]() |
Path Tracing
|
#include <stddef.h>#include <stdint.h>

Go to the source code of this file.
Classes | |
| struct | STBIR_RESIZE |
Macros | |
| #define | STBIRDEF extern |
Typedefs | |
| typedef uint8_t | stbir_uint8 |
| typedef uint16_t | stbir_uint16 |
| typedef uint32_t | stbir_uint32 |
| typedef uint64_t | stbir_uint64 |
| typedef void const * | stbir_input_callback(void *optional_output, void const *input_ptr, int num_pixels, int x, int y, void *context) |
| typedef void | stbir_output_callback(void const *output_ptr, int num_pixels, int y, void *context) |
| typedef float | stbir__kernel_callback(float x, float scale, void *user_data) |
| typedef float | stbir__support_callback(float scale, void *user_data) |
| typedef struct stbir__info | stbir__info |
| typedef struct STBIR_RESIZE | STBIR_RESIZE |
Functions | |
| STBIRDEF unsigned char * | 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, stbir_pixel_layout pixel_type) |
| STBIRDEF unsigned char * | stbir_resize_uint8_linear (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, stbir_pixel_layout pixel_type) |
| STBIRDEF float * | stbir_resize_float_linear (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, stbir_pixel_layout pixel_type) |
| STBIRDEF void * | 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_pixel_layout pixel_layout, stbir_datatype data_type, stbir_edge edge, stbir_filter filter) |
| STBIRDEF void | stbir_resize_init (STBIR_RESIZE *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_pixel_layout pixel_layout, stbir_datatype data_type) |
| STBIRDEF void | stbir_set_datatypes (STBIR_RESIZE *resize, stbir_datatype input_type, stbir_datatype output_type) |
| STBIRDEF void | stbir_set_pixel_callbacks (STBIR_RESIZE *resize, stbir_input_callback *input_cb, stbir_output_callback *output_cb) |
| STBIRDEF void | stbir_set_user_data (STBIR_RESIZE *resize, void *user_data) |
| STBIRDEF void | stbir_set_buffer_ptrs (STBIR_RESIZE *resize, const void *input_pixels, int input_stride_in_bytes, void *output_pixels, int output_stride_in_bytes) |
| STBIRDEF int | stbir_set_pixel_layouts (STBIR_RESIZE *resize, stbir_pixel_layout input_pixel_layout, stbir_pixel_layout output_pixel_layout) |
| STBIRDEF int | stbir_set_edgemodes (STBIR_RESIZE *resize, stbir_edge horizontal_edge, stbir_edge vertical_edge) |
| STBIRDEF int | stbir_set_filters (STBIR_RESIZE *resize, stbir_filter horizontal_filter, stbir_filter vertical_filter) |
| STBIRDEF int | stbir_set_filter_callbacks (STBIR_RESIZE *resize, stbir__kernel_callback *horizontal_filter, stbir__support_callback *horizontal_support, stbir__kernel_callback *vertical_filter, stbir__support_callback *vertical_support) |
| STBIRDEF int | stbir_set_pixel_subrect (STBIR_RESIZE *resize, int subx, int suby, int subw, int subh) |
| STBIRDEF int | stbir_set_input_subrect (STBIR_RESIZE *resize, double s0, double t0, double s1, double t1) |
| STBIRDEF int | stbir_set_output_pixel_subrect (STBIR_RESIZE *resize, int subx, int suby, int subw, int subh) |
| STBIRDEF int | stbir_set_non_pm_alpha_speed_over_quality (STBIR_RESIZE *resize, int non_pma_alpha_speed_over_quality) |
| STBIRDEF int | stbir_build_samplers (STBIR_RESIZE *resize) |
| STBIRDEF void | stbir_free_samplers (STBIR_RESIZE *resize) |
| STBIRDEF int | stbir_resize_extended (STBIR_RESIZE *resize) |
| STBIRDEF int | stbir_build_samplers_with_splits (STBIR_RESIZE *resize, int try_splits) |
| It might be less if the image resize can't be split up that many ways. | |
| STBIRDEF int | stbir_resize_extended_split (STBIR_RESIZE *resize, int split_start, int split_count) |
| #define STBIRDEF extern |
| typedef struct stbir__info stbir__info |
| typedef float stbir__kernel_callback(float x, float scale, void *user_data) |
| typedef float stbir__support_callback(float scale, void *user_data) |
| typedef void const * stbir_input_callback(void *optional_output, void const *input_ptr, int num_pixels, int x, int y, void *context) |
| typedef struct STBIR_RESIZE STBIR_RESIZE |
| typedef uint16_t stbir_uint16 |
| typedef uint32_t stbir_uint32 |
| typedef uint64_t stbir_uint64 |
| typedef uint8_t stbir_uint8 |
| enum stbir_datatype |
| enum stbir_edge |
| enum stbir_filter |
| enum stbir_pixel_layout |
| STBIRDEF int stbir_build_samplers | ( | STBIR_RESIZE * | resize | ) |
| STBIRDEF int stbir_build_samplers_with_splits | ( | STBIR_RESIZE * | resize, |
| int | try_splits ) |
It might be less if the image resize can't be split up that many ways.
| STBIRDEF void stbir_free_samplers | ( | STBIR_RESIZE * | resize | ) |
| STBIRDEF void * 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_pixel_layout | pixel_layout, | ||
| stbir_datatype | data_type, | ||
| stbir_edge | edge, | ||
| stbir_filter | filter ) |
| STBIRDEF int stbir_resize_extended | ( | STBIR_RESIZE * | resize | ) |
| STBIRDEF int stbir_resize_extended_split | ( | STBIR_RESIZE * | resize, |
| int | split_start, | ||
| int | split_count ) |
| STBIRDEF float * stbir_resize_float_linear | ( | 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, | ||
| stbir_pixel_layout | pixel_type ) |
| STBIRDEF void stbir_resize_init | ( | STBIR_RESIZE * | 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_pixel_layout | pixel_layout, | ||
| stbir_datatype | data_type ) |
| STBIRDEF unsigned char * stbir_resize_uint8_linear | ( | 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, | ||
| stbir_pixel_layout | pixel_type ) |
| STBIRDEF unsigned char * 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, | ||
| stbir_pixel_layout | pixel_type ) |
| STBIRDEF void stbir_set_buffer_ptrs | ( | STBIR_RESIZE * | resize, |
| const void * | input_pixels, | ||
| int | input_stride_in_bytes, | ||
| void * | output_pixels, | ||
| int | output_stride_in_bytes ) |
| STBIRDEF void stbir_set_datatypes | ( | STBIR_RESIZE * | resize, |
| stbir_datatype | input_type, | ||
| stbir_datatype | output_type ) |
| STBIRDEF int stbir_set_edgemodes | ( | STBIR_RESIZE * | resize, |
| stbir_edge | horizontal_edge, | ||
| stbir_edge | vertical_edge ) |
| STBIRDEF int stbir_set_filter_callbacks | ( | STBIR_RESIZE * | resize, |
| stbir__kernel_callback * | horizontal_filter, | ||
| stbir__support_callback * | horizontal_support, | ||
| stbir__kernel_callback * | vertical_filter, | ||
| stbir__support_callback * | vertical_support ) |
| STBIRDEF int stbir_set_filters | ( | STBIR_RESIZE * | resize, |
| stbir_filter | horizontal_filter, | ||
| stbir_filter | vertical_filter ) |
| STBIRDEF int stbir_set_input_subrect | ( | STBIR_RESIZE * | resize, |
| double | s0, | ||
| double | t0, | ||
| double | s1, | ||
| double | t1 ) |
| STBIRDEF int stbir_set_non_pm_alpha_speed_over_quality | ( | STBIR_RESIZE * | resize, |
| int | non_pma_alpha_speed_over_quality ) |
| STBIRDEF int stbir_set_output_pixel_subrect | ( | STBIR_RESIZE * | resize, |
| int | subx, | ||
| int | suby, | ||
| int | subw, | ||
| int | subh ) |
| STBIRDEF void stbir_set_pixel_callbacks | ( | STBIR_RESIZE * | resize, |
| stbir_input_callback * | input_cb, | ||
| stbir_output_callback * | output_cb ) |
| STBIRDEF int stbir_set_pixel_layouts | ( | STBIR_RESIZE * | resize, |
| stbir_pixel_layout | input_pixel_layout, | ||
| stbir_pixel_layout | output_pixel_layout ) |
| STBIRDEF int stbir_set_pixel_subrect | ( | STBIR_RESIZE * | resize, |
| int | subx, | ||
| int | suby, | ||
| int | subw, | ||
| int | subh ) |
| STBIRDEF void stbir_set_user_data | ( | STBIR_RESIZE * | resize, |
| void * | user_data ) |