|
| #define | STB_IMAGE_STATIC |
| |
| #define | STB_IMAGE_IMPLEMENTATION |
| |
| #define | PLUTOVG_STB_IMAGE_H |
| |
| #define | STBI_VERSION 1 |
| |
| #define | STBIDEF static |
| |
| #define | STBI_ASSERT(x) assert(x) |
| |
| #define | STBI_EXTERN extern |
| |
| #define | stbi_inline |
| |
| #define | STBI_NOTUSED(v) (void)sizeof(v) |
| |
| #define | stbi_lrot(x, y) (((x) << (y)) | ((x) >> (-(y) & 31))) |
| |
| #define | STBI_MALLOC(sz) malloc(sz) |
| |
| #define | STBI_REALLOC(p, newsz) realloc(p,newsz) |
| |
| #define | STBI_FREE(p) free(p) |
| |
| #define | STBI_REALLOC_SIZED(p, oldsz, newsz) STBI_REALLOC(p,newsz) |
| |
| #define | STBI_SIMD_ALIGN(type, name) type name |
| |
| #define | STBI_MAX_DIMENSIONS (1 << 24) |
| |
| #define | stbi__err(x, y) stbi__err(x) |
| |
| #define | stbi__errpf(x, y) ((float *)(size_t) (stbi__err(x,y)?NULL:NULL)) |
| |
| #define | stbi__errpuc(x, y) ((unsigned char *)(size_t) (stbi__err(x,y)?NULL:NULL)) |
| |
| #define | stbi__vertically_flip_on_load stbi__vertically_flip_on_load_global |
| |
| #define | STBI__BYTECAST(x) ((stbi_uc) ((x) & 255)) |
| |
| #define | STBI__COMBO(a, b) ((a)*8+(b)) |
| |
| #define | STBI__CASE(a, b) case STBI__COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b) |
| |
| #define | STBI__COMBO(a, b) ((a)*8+(b)) |
| |
| #define | STBI__CASE(a, b) case STBI__COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b) |
| |
| #define | stbi__float2int(x) ((int) (x)) |
| |
| #define | FAST_BITS 9 |
| |
| #define | stbi__f2f(x) ((int) (((x) * 4096 + 0.5))) |
| |
| #define | stbi__fsh(x) ((x) * 4096) |
| |
| #define | STBI__IDCT_1D(s0, s1, s2, s3, s4, s5, s6, s7) |
| |
| #define | STBI__MARKER_none 0xff |
| |
| #define | STBI__RESTART(x) ((x) >= 0xd0 && (x) <= 0xd7) |
| |
| #define | stbi__DNL(x) ((x) == 0xdc) |
| |
| #define | stbi__SOI(x) ((x) == 0xd8) |
| |
| #define | stbi__EOI(x) ((x) == 0xd9) |
| |
| #define | stbi__SOF(x) ((x) == 0xc0 || (x) == 0xc1 || (x) == 0xc2) |
| |
| #define | stbi__SOS(x) ((x) == 0xda) |
| |
| #define | stbi__SOF_progressive(x) ((x) == 0xc2) |
| |
| #define | stbi__div4(x) ((stbi_uc) ((x) >> 2)) |
| |
| #define | stbi__div16(x) ((stbi_uc) ((x) >> 4)) |
| |
| #define | stbi__float2fixed(x) (((int) ((x) * 4096.0f + 0.5f)) << 8) |
| |
| #define | STBI__ZFAST_BITS 9 |
| |
| #define | STBI__ZFAST_MASK ((1 << STBI__ZFAST_BITS) - 1) |
| |
| #define | STBI__ZNSYMS 288 |
| |
| #define | stbi__unpremultiply_on_load stbi__unpremultiply_on_load_global |
| |
| #define | stbi__de_iphone_flag stbi__de_iphone_flag_global |
| |
| #define | STBI__PNG_TYPE(a, b, c, d) (((unsigned) (a) << 24) + ((unsigned) (b) << 16) + ((unsigned) (c) << 8) + (unsigned) (d)) |
| |
| #define | STBI__HDR_BUFLEN 1024 |
| |
|
| surface_t * | novasvg::render::surface_create (int width, int height) |
| | Creates a new image surface with the specified dimensions.
|
| |
| surface_t * | novasvg::render::surface_create_for_data (unsigned char *data, int width, int height, int stride) |
| | Creates an image surface using existing pixel data.
|
| |
| surface_t * | novasvg::render::surface_load_from_image_file (const char *filename) |
| | Loads an image surface from a file.
|
| |
| surface_t * | novasvg::render::surface_load_from_image_data (const void *data, int length) |
| | Loads an image surface from raw image data.
|
| |
| NOVASVG_INLINE uint8_t * | novasvg::render::base64_decode (const char *data, int length, size_t *out_length) |
| |
| surface_t * | novasvg::render::surface_load_from_image_base64 (const char *data, int length) |
| | Loads an image surface from base64-encoded data.
|
| |
| surface_t * | novasvg::render::surface_reference (surface_t *surface) |
| | Increments the reference count for a surface.
|
| |
| void | novasvg::render::surface_destroy (surface_t *surface) |
| | Decrements the reference count and destroys the surface if the count reaches zero.
|
| |
| int | novasvg::render::surface_get_reference_count (const surface_t *surface) |
| | Gets the current reference count of a surface.
|
| |
| unsigned char * | novasvg::render::surface_get_data (const surface_t *surface) |
| | Gets the pixel data of the surface.
|
| |
| int | novasvg::render::surface_get_width (const surface_t *surface) |
| | Gets the width of the surface.
|
| |
| int | novasvg::render::surface_get_height (const surface_t *surface) |
| | Gets the height of the surface.
|
| |
| int | novasvg::render::surface_get_stride (const surface_t *surface) |
| | Gets the stride of the surface.
|
| |
| void | novasvg::render::surface_clear (surface_t *surface, const color_t *color) |
| | Clears the entire surface with the specified color.
|
| |
| void | novasvg::render::convert_argb_to_rgba (unsigned char *dst, const unsigned char *src, int width, int height, int stride) |
| | Converts pixel data from premultiplied ARGB to RGBA format.
|
| |
| void | novasvg::render::convert_rgba_to_argb (unsigned char *dst, const unsigned char *src, int width, int height, int stride) |
| | Converts pixel data from RGBA to premultiplied ARGB format.
|
| |