Lines Matching refs:cube_info
214 *cube_info; in ClassifyImageColors() local
247 cube_info=GetCubeInfo(); in ClassifyImageColors()
248 if (cube_info == (CubeInfo *) NULL) in ClassifyImageColors()
252 return(cube_info); in ClassifyImageColors()
266 node_info=cube_info->root; in ClassifyImageColors()
274 node_info->child[id]=GetNodeInfo(cube_info,level); in ClassifyImageColors()
322 cube_info->colors++; in ClassifyImageColors()
332 return(cube_info); in ClassifyImageColors()
420 static CubeInfo *DestroyCubeInfo(const Image *image,CubeInfo *cube_info) in DestroyCubeInfo() argument
428 DestroyColorCube(image,cube_info->root); in DestroyCubeInfo()
431 nodes=cube_info->node_queue->next; in DestroyCubeInfo()
432 cube_info->node_queue=(Nodes *) in DestroyCubeInfo()
433 RelinquishMagickMemory(cube_info->node_queue); in DestroyCubeInfo()
434 cube_info->node_queue=nodes; in DestroyCubeInfo()
435 } while (cube_info->node_queue != (Nodes *) NULL); in DestroyCubeInfo()
436 return((CubeInfo *) RelinquishMagickMemory(cube_info)); in DestroyCubeInfo()
509 *cube_info; in GetCubeInfo() local
514 cube_info=(CubeInfo *) AcquireMagickMemory(sizeof(*cube_info)); in GetCubeInfo()
515 if (cube_info == (CubeInfo *) NULL) in GetCubeInfo()
517 (void) memset(cube_info,0,sizeof(*cube_info)); in GetCubeInfo()
521 cube_info->root=GetNodeInfo(cube_info,0); in GetCubeInfo()
522 if (cube_info->root == (NodeInfo *) NULL) in GetCubeInfo()
524 return(cube_info); in GetCubeInfo()
561 *cube_info; in GetImageHistogram() local
565 cube_info=ClassifyImageColors(image,exception); in GetImageHistogram()
566 if (cube_info != (CubeInfo *) NULL) in GetImageHistogram()
568 histogram=(PixelInfo *) AcquireQuantumMemory((size_t) cube_info->colors+1, in GetImageHistogram()
578 *number_colors=cube_info->colors; in GetImageHistogram()
580 DefineImageHistogram(image,cube_info->root,&root); in GetImageHistogram()
583 cube_info=DestroyCubeInfo(image,cube_info); in GetImageHistogram()
612 static NodeInfo *GetNodeInfo(CubeInfo *cube_info,const size_t level) in GetNodeInfo() argument
617 if (cube_info->free_nodes == 0) in GetNodeInfo()
628 nodes->next=cube_info->node_queue; in GetNodeInfo()
629 cube_info->node_queue=nodes; in GetNodeInfo()
630 cube_info->node_info=nodes->nodes; in GetNodeInfo()
631 cube_info->free_nodes=NodesInAList; in GetNodeInfo()
633 cube_info->free_nodes--; in GetNodeInfo()
634 node_info=cube_info->node_info++; in GetNodeInfo()
674 *cube_info; in CheckImageColors() local
705 cube_info=GetCubeInfo(); in CheckImageColors()
706 if (cube_info == (CubeInfo *) NULL) in CheckImageColors()
725 node_info=cube_info->root; in CheckImageColors()
733 node_info->child[id]=GetNodeInfo(cube_info,level); in CheckImageColors()
782 cube_info->colors++; in CheckImageColors()
783 if (cube_info->colors > max_colors) in CheckImageColors()
792 cube_info=DestroyCubeInfo(image,cube_info); in CheckImageColors()
1062 *cube_info; in GetNumberColors() local
1064 cube_info=ClassifyImageColors(image,exception); in GetNumberColors()
1065 if (cube_info != (CubeInfo *) NULL) in GetNumberColors()
1066 number_colors=cube_info->colors; in GetNumberColors()
1067 cube_info=DestroyCubeInfo(image,cube_info); in GetNumberColors()
1149 CubeInfo *cube_info,const NodeInfo *node_info,ExceptionInfo *exception) in UniqueColorsToImage() argument
1168 UniqueColorsToImage(unique_image,unique_view,cube_info, in UniqueColorsToImage()
1182 q=QueueCacheViewAuthenticPixels(unique_view,cube_info->x,0,1,1, in UniqueColorsToImage()
1194 cube_info->x++; in UniqueColorsToImage()
1203 cube_info->progress,cube_info->colors); in UniqueColorsToImage()
1207 cube_info->progress++; in UniqueColorsToImage()
1220 *cube_info; in UniqueImageColors() local
1225 cube_info=ClassifyImageColors(image,exception); in UniqueImageColors()
1226 if (cube_info == (CubeInfo *) NULL) in UniqueImageColors()
1228 unique_image=CloneImage(image,cube_info->colors,1,MagickTrue,exception); in UniqueImageColors()
1237 UniqueColorsToImage(unique_image,unique_view,cube_info,cube_info->root, in UniqueImageColors()
1240 cube_info=DestroyCubeInfo(image,cube_info); in UniqueImageColors()