23AI_API AI_CONST uint8_t
AiQuantize8bit (
int x,
int y,
int i,
float value,
bool dither);
24AI_API AI_CONST uint16_t
AiQuantize16bit(
int x,
int y,
int i,
float value,
bool dither);
DLL export prefix for API functions (necessary for multi-platform development)
AI_API AI_CONST uint8_t AiQuantize8bit(int x, int y, int i, float value, bool dither)
Quantize a floating point number down to an 8-bit integer.
Definition: ai_driver_utils.cpp:44
AI_API AI_CONST uint16_t AiQuantize16bit(int x, int y, int i, float value, bool dither)
Quantize a floating point number down to a 16-bit integer.
Definition: ai_driver_utils.cpp:61