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