image

Types and Definitions

cPixel

struct cPixel
{
   int32_t x;
   int32_t y;
};
typedef struct cPixel cPixel;

The cPixel struct can store the coordinates of a pixel inside an image.

Generated

Functions

pixel

pixel_c_

#define pixel_c_( X, Y )

image

image_copy_c_

#define image_copy_c_( Image )

alloc_image_data_c

void* alloc_image_data_c( int32_t w, int32_t h, int64_t typeSize )

for_each_pixel_c_

#define for_each_pixel_c_( X, Y, Image )

to_pixel_value_c

#define to_pixel_value_c_( Image, Type, Pixel )                                \
   to_pixel_value_c(                                                           \
      (Image).w, (Image).h, (Image).data, sizeof_c_( Type ), (Pixel)           \
   )
void const* to_pixel_value_c( int32_t w,
                              int32_t h,
                              void const* data,
                              int64_t typeSize,
                              cPixel pixel );

to_var_pixel_value_c

#define to_var_pixel_value_c_( Image, Type, Pixel )                            \
   to_var_pixel_value_c(                                                       \
      (Image).w, (Image).h, (Image).data, sizeof_c_( Type ), (Pixel)           \
   )
void* to_var_pixel_value_c( int32_t w,
                            int32_t h,
                            void* data,
                            int64_t typeSize,
                            cPixel pixel );