2022-06-26 20:06:35 +11:00
|
|
|
/*
|
|
|
|
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
+ +
|
|
|
|
+ Octree Color Quantization +
|
|
|
|
+ ------------------------- +
|
|
|
|
+ +
|
|
|
|
+ http://www.cubic.org/~submissive/sorcerer/octree.htm +
|
|
|
|
+ +
|
|
|
|
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
2022-07-07 21:52:00 +11:00
|
|
|
#include "../tthimage.h"
|
2022-06-26 20:06:35 +11:00
|
|
|
|
|
|
|
/*::------------------------------------------------------------------::*/
|
|
|
|
/*
|
|
|
|
* bon, yapluka, fokon.
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
Image_octree_0(Image_Desc *src, Image_Desc *dst)
|
|
|
|
{
|
|
|
|
|
|
|
|
#if DEBUG
|
2022-07-07 21:52:00 +11:00
|
|
|
fprintf(stderr, ">>> %s ( %p %p )\n", __func__, src, dst);
|
2022-06-26 20:06:35 +11:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return FULL_NUCKED;
|
|
|
|
}
|
|
|
|
/*::------------------------------------------------------------------::*/
|
|
|
|
int
|
|
|
|
Image_octree_1(Image_Desc *src, Image_Desc *dst)
|
|
|
|
{
|
|
|
|
|
|
|
|
#if DEBUG
|
2022-07-07 21:52:00 +11:00
|
|
|
fprintf(stderr, ">>> %s ( %p %p )\n", __func__, src, dst);
|
2022-06-26 20:06:35 +11:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return FULL_NUCKED;
|
|
|
|
}
|
|
|
|
/*::------------------------------------------------------------------::*/
|