ai_driver_utils.h
Go to the documentation of this file.
1// Copyright 2021 Autodesk, Inc. All rights reserved.
2//
3// Use of this software is subject to the terms of the Autodesk license
4// agreement provided at the time of installation or download, or which
5// otherwise accompanies this software in either electronic or hard copy form.
6
12#pragma once
13#include "ai_api.h"
14#include <stdint.h> // uint32_t etc
15
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);
25/*\}*/
26
27/*\}*/
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

© 2022 Autodesk, Inc. · All rights reserved · www.arnoldrenderer.com