Lines Matching refs:cube_info
184 *cube_info; in ClassifyImageColors() local
218 cube_info=GetCubeInfo(); in ClassifyImageColors()
219 if (cube_info == (CubeInfo *) NULL) in ClassifyImageColors()
223 return(cube_info); in ClassifyImageColors()
238 node_info=cube_info->root; in ClassifyImageColors()
246 node_info->child[id]=GetNodeInfo(cube_info,level); in ClassifyImageColors()
290 cube_info->colors++; in ClassifyImageColors()
300 return(cube_info); in ClassifyImageColors()
388 static CubeInfo *DestroyCubeInfo(const Image *image,CubeInfo *cube_info) in DestroyCubeInfo() argument
396 DestroyColorCube(image,cube_info->root); in DestroyCubeInfo()
399 nodes=cube_info->node_queue->next; in DestroyCubeInfo()
400 cube_info->node_queue=(Nodes *) in DestroyCubeInfo()
401 RelinquishMagickMemory(cube_info->node_queue); in DestroyCubeInfo()
402 cube_info->node_queue=nodes; in DestroyCubeInfo()
403 } while (cube_info->node_queue != (Nodes *) NULL); in DestroyCubeInfo()
404 return((CubeInfo *) RelinquishMagickMemory(cube_info)); in DestroyCubeInfo()
477 *cube_info; in GetCubeInfo() local
482 cube_info=(CubeInfo *) AcquireMagickMemory(sizeof(*cube_info)); in GetCubeInfo()
483 if (cube_info == (CubeInfo *) NULL) in GetCubeInfo()
485 (void) ResetMagickMemory(cube_info,0,sizeof(*cube_info)); in GetCubeInfo()
489 cube_info->root=GetNodeInfo(cube_info,0); in GetCubeInfo()
490 if (cube_info->root == (NodeInfo *) NULL) in GetCubeInfo()
492 return(cube_info); in GetCubeInfo()
529 *cube_info; in GetImageHistogram() local
533 cube_info=ClassifyImageColors(image,exception); in GetImageHistogram()
534 if (cube_info != (CubeInfo *) NULL) in GetImageHistogram()
536 histogram=(PixelInfo *) AcquireQuantumMemory((size_t) cube_info->colors, in GetImageHistogram()
546 *number_colors=cube_info->colors; in GetImageHistogram()
548 DefineImageHistogram(image,cube_info->root,&root); in GetImageHistogram()
551 cube_info=DestroyCubeInfo(image,cube_info); in GetImageHistogram()
580 static NodeInfo *GetNodeInfo(CubeInfo *cube_info,const size_t level) in GetNodeInfo() argument
585 if (cube_info->free_nodes == 0) in GetNodeInfo()
596 nodes->next=cube_info->node_queue; in GetNodeInfo()
597 cube_info->node_queue=nodes; in GetNodeInfo()
598 cube_info->node_info=nodes->nodes; in GetNodeInfo()
599 cube_info->free_nodes=NodesInAList; in GetNodeInfo()
601 cube_info->free_nodes--; in GetNodeInfo()
602 node_info=cube_info->node_info++; in GetNodeInfo()
642 *cube_info; in CheckImageColors() local
673 cube_info=GetCubeInfo(); in CheckImageColors()
674 if (cube_info == (CubeInfo *) NULL) in CheckImageColors()
693 node_info=cube_info->root; in CheckImageColors()
701 node_info->child[id]=GetNodeInfo(cube_info,level); in CheckImageColors()
750 cube_info->colors++; in CheckImageColors()
751 if (cube_info->colors > max_colors) in CheckImageColors()
760 cube_info=DestroyCubeInfo(image,cube_info); in CheckImageColors()
1029 *cube_info; in GetNumberColors() local
1031 cube_info=ClassifyImageColors(image,exception); in GetNumberColors()
1032 if (cube_info != (CubeInfo *) NULL) in GetNumberColors()
1033 number_colors=cube_info->colors; in GetNumberColors()
1034 cube_info=DestroyCubeInfo(image,cube_info); in GetNumberColors()
1117 CubeInfo *cube_info,const NodeInfo *node_info,ExceptionInfo *exception) in UniqueColorsToImage() argument
1136 UniqueColorsToImage(unique_image,unique_view,cube_info, in UniqueColorsToImage()
1150 q=QueueCacheViewAuthenticPixels(unique_view,cube_info->x,0,1,1, in UniqueColorsToImage()
1162 cube_info->x++; in UniqueColorsToImage()
1171 cube_info->progress,cube_info->colors); in UniqueColorsToImage()
1175 cube_info->progress++; in UniqueColorsToImage()
1188 *cube_info; in UniqueImageColors() local
1193 cube_info=ClassifyImageColors(image,exception); in UniqueImageColors()
1194 if (cube_info == (CubeInfo *) NULL) in UniqueImageColors()
1196 unique_image=CloneImage(image,cube_info->colors,1,MagickTrue,exception); in UniqueImageColors()
1205 UniqueColorsToImage(unique_image,unique_view,cube_info,cube_info->root, in UniqueImageColors()
1208 cube_info=DestroyCubeInfo(image,cube_info); in UniqueImageColors()