Import all sources from perforce.
This commit is contained in:
25
src/nvimage/Quantize.h
Normal file
25
src/nvimage/Quantize.h
Normal file
@ -0,0 +1,25 @@
|
||||
// This code is in the public domain -- castanyo@yahoo.es
|
||||
|
||||
#ifndef NV_IMAGE_QUANTIZE_H
|
||||
#define NV_IMAGE_QUANTIZE_H
|
||||
|
||||
namespace nv
|
||||
{
|
||||
class Image;
|
||||
|
||||
namespace Quantize
|
||||
{
|
||||
void RGB16(Image * img);
|
||||
void BinaryAlpha(Image * img, int alpha_threshold = 127);
|
||||
void Alpha4(Image * img);
|
||||
|
||||
void FloydSteinberg_RGB16(Image * img);
|
||||
void FloydSteinberg_BinaryAlpha(Image * img, int alpha_threshold = 127);
|
||||
void FloydSteinberg_Alpha4(Image * img);
|
||||
|
||||
// @@ Add palette quantization algorithms!
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endif // NV_IMAGE_QUANTIZE_H
|
Reference in New Issue
Block a user