logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ascmap - defines main structures and function for image quantization libAfterImage/ascmap.h

Author

       Sasha Vasko <sasha at aftercode dot net>
       libAfterImage/ASColormapEntry

Description

       Destroys ASColormap object created using colormap_asimage.

3rd Berkeley Distribution                      AfterStep v.2.2.12                                     ascmap(3x)

Inputs

       cmap   - pointer to valid ASColormap structure.

       reusable
              -  if  True, then the memory pointed to by cmap will not be deallocated, as if it was allocated on
              stack

Name

ascmap - defines main structures and function for image quantization libAfterImage/ascmap.h

Nameascmap

       - Defines main structures and function for image quantization.

Nameascolormap

       - ASColormap represents entire colormap generated for the image.

Nameascolormapentry

       - ASColormapEntry represents single colorcell in the colormap.

Namecolormap_Asimage()

Namedestroy_Colormap()

Return Value

       pointer to the array of indexes representing pixel's colorcells. This  array  has  size  of  WIDTHxHEIGHT
       where WIDTH and HEIGHT are size of the source image.

See Also

       Structures :
                ASColormapEntry
                ASColormap

       Functions :
                colormap_asimage(), destroy_colormap()

       Other libAfterImage modules :
                ascmap.h asfont.h asimage.h asvisual.h blender.h export.h
                import.h transform.h ximage.h

Source

           typedef struct ASColormap {
               ASColormapEntry *entries ;  /* array of colorcells */
               unsigned int count ;        /* number of used colorcells */
               ASSortedColorHash *hash ;   /* internal data */
               Bool has_opaque ;           /* If True then Image has opaque pixels */ }ASColormap;

       libAfterImage/colormap_asimage()

Synopsis

       void destroy_colormap( ASColormap *cmap, Bool reusable );

See Also