w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

pixman-utils.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "pixman-private.h"
Include dependency graph for pixman-utils.c:

Go to the source code of this file.

Macros

#define N_TMP_BOXES   (16)
 

Functions

pixman_bool_t _pixman_multiply_overflows_size (size_t a, size_t b)
 
pixman_bool_t _pixman_multiply_overflows_int (unsigned int a, unsigned int b)
 
pixman_bool_t _pixman_addition_overflows_int (unsigned int a, unsigned int b)
 
voidpixman_malloc_ab_plus_c (unsigned int a, unsigned int b, unsigned int c)
 
voidpixman_malloc_ab (unsigned int a, unsigned int b)
 
voidpixman_malloc_abc (unsigned int a, unsigned int b, unsigned int c)
 
static uint16_t float_to_unorm (float f, int n_bits)
 
static float unorm_to_float (uint16_t u, int n_bits)
 
void pixman_expand_to_float (argb_t *dst, const uint32_t *src, pixman_format_code_t format, int width)
 
uint16_t pixman_float_to_unorm (float f, int n_bits)
 
float pixman_unorm_to_float (uint16_t u, int n_bits)
 
void pixman_contract_from_float (uint32_t *dst, const argb_t *src, int width)
 
uint32_t_pixman_iter_get_scanline_noop (pixman_iter_t *iter, const uint32_t *mask)
 
void _pixman_iter_init_bits_stride (pixman_iter_t *iter, const pixman_iter_info_t *info)
 
pixman_bool_t pixman_region16_copy_from_region32 (pixman_region16_t *dst, pixman_region32_t *src)
 
pixman_bool_t pixman_region32_copy_from_region16 (pixman_region32_t *dst, pixman_region16_t *src)
 
pixman_implementation_t_pixman_internal_only_get_implementation (void)
 
void _pixman_log_error (const char *function, const char *message)
 

Macro Definition Documentation

◆ N_TMP_BOXES

#define N_TMP_BOXES   (16)

Definition at line 237 of file pixman-utils.c.

Function Documentation

◆ _pixman_addition_overflows_int()

pixman_bool_t _pixman_addition_overflows_int ( unsigned int  a,
unsigned int  b 
)

Definition at line 46 of file pixman-utils.c.

References a, b, and INT32_MAX.

Referenced by create_bits().

◆ _pixman_internal_only_get_implementation()

pixman_implementation_t* _pixman_internal_only_get_implementation ( void  )

Definition at line 310 of file pixman-utils.c.

References get_implementation().

◆ _pixman_iter_get_scanline_noop()

◆ _pixman_iter_init_bits_stride()

void _pixman_iter_init_bits_stride ( pixman_iter_t iter,
const pixman_iter_info_t info 
)

◆ _pixman_log_error()

◆ _pixman_multiply_overflows_int()

pixman_bool_t _pixman_multiply_overflows_int ( unsigned int  a,
unsigned int  b 
)

Definition at line 40 of file pixman-utils.c.

References a, b, and INT32_MAX.

Referenced by create_bits(), and general_composite_rect().

◆ _pixman_multiply_overflows_size()

pixman_bool_t _pixman_multiply_overflows_size ( size_t  a,
size_t  b 
)

Definition at line 34 of file pixman-utils.c.

References a, b, and SIZE_MAX.

Referenced by create_bits().

◆ float_to_unorm()

static uint16_t float_to_unorm ( float  f,
int  n_bits 
)
inlinestatic

Definition at line 84 of file pixman-utils.c.

References f, n_bits, and u.

Referenced by pixman_contract_from_float(), and pixman_float_to_unorm().

◆ pixman_contract_from_float()

void pixman_contract_from_float ( uint32_t dst,
const argb_t src,
int  width 
)

◆ pixman_expand_to_float()

◆ pixman_float_to_unorm()

◆ pixman_malloc_ab()

◆ pixman_malloc_ab_plus_c()

void* pixman_malloc_ab_plus_c ( unsigned int  a,
unsigned int  b,
unsigned int  c 
)

Definition at line 52 of file pixman-utils.c.

References a, b, c, INT32_MAX, malloc, and NULL.

Referenced by general_composite_rect().

◆ pixman_malloc_abc()

void* pixman_malloc_abc ( unsigned int  a,
unsigned int  b,
unsigned int  c 
)

Definition at line 71 of file pixman-utils.c.

References a, b, c, INT32_MAX, malloc, and NULL.

◆ pixman_region16_copy_from_region32()

◆ pixman_region32_copy_from_region16()

◆ pixman_unorm_to_float()

◆ unorm_to_float()

static float unorm_to_float ( uint16_t  u,
int  n_bits 
)
inlinestatic

Definition at line 100 of file pixman-utils.c.

References m, n_bits, and u.

Referenced by pixman_unorm_to_float().