\hypertarget{a00758_source}{}\doxysection{AAX\+\_\+\+Slider\+Conversions.\+h}
\label{a00758_source}\index{AAX\_SliderConversions.h@{AAX\_SliderConversions.h}}
\mbox{\hyperlink{a00758}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{comment}{/*================================================================================================*/}}
\DoxyCodeLine{00002\ \textcolor{comment}{/*}}
\DoxyCodeLine{00003\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00004\ \textcolor{comment}{\ *\ \ Copyright\ 2013-\/2015,\ 2023\ Avid\ Technology,\ Inc.}}
\DoxyCodeLine{00005\ \textcolor{comment}{\ *\ \ All\ rights\ reserved.}}
\DoxyCodeLine{00006\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00007\ \textcolor{comment}{\ *\ \ CONFIDENTIAL:\ this\ document\ contains\ confidential\ information\ of\ Avid.\ Do}}
\DoxyCodeLine{00008\ \textcolor{comment}{\ *\ \ not\ disclose\ to\ any\ third\ party.\ Use\ of\ the\ information\ contained\ in\ this}}
\DoxyCodeLine{00009\ \textcolor{comment}{\ *\ \ document\ is\ subject\ to\ an\ Avid\ SDK\ license.}}
\DoxyCodeLine{00010\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00011\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00012\ }
\DoxyCodeLine{00028\ \textcolor{comment}{/*================================================================================================*/}}
\DoxyCodeLine{00029\ }
\DoxyCodeLine{00030\ }
\DoxyCodeLine{00031\ \textcolor{preprocessor}{\#pragma\ once}}
\DoxyCodeLine{00032\ }
\DoxyCodeLine{00033\ \textcolor{preprocessor}{\#ifndef\ AAX\_SLIDERCONVERSIONS\_H}}
\DoxyCodeLine{00034\ \textcolor{preprocessor}{\#define\ AAX\_SLIDERCONVERSIONS\_H}}
\DoxyCodeLine{00035\ }
\DoxyCodeLine{00036\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{a00533}{AAX.h}}"{}}}
\DoxyCodeLine{00037\ \textcolor{preprocessor}{\#include\ <algorithm>}}
\DoxyCodeLine{00038\ \textcolor{preprocessor}{\#include\ <stdint.h>}}
\DoxyCodeLine{00039\ }
\DoxyCodeLine{00040\ }
\DoxyCodeLine{00041\ \textcolor{preprocessor}{\#define\ AAX\_LIMIT(v1,firstVal,secondVal)\ (\ (secondVal\ >\ firstVal)\ ?\ (std::max)((std::min)(v1,secondVal),firstVal)\ :\ \ (std::min)((std::max)(v1,secondVal),firstVal)\ )}}
\DoxyCodeLine{00042\ }
\DoxyCodeLine{00043\ int32\_t\ \mbox{\hyperlink{a00758_a5125f531cd70d1d4049c99335989a0ee}{LongControlToNewRange}}\ (int32\_t\ aValue,\ int32\_t\ rangeMin,\ int32\_t\ rangeMax);}
\DoxyCodeLine{00044\ }
\DoxyCodeLine{00048\ int32\_t\ \mbox{\hyperlink{a00758_abb594c44cd5d4dee1ec236f7c69adacb}{LongToLongControl}}\ (int32\_t\ aValue,\ int32\_t\ rangeMin,\ int32\_t\ rangeMax);}
\DoxyCodeLine{00049\ }
\DoxyCodeLine{00053\ \textcolor{keywordtype}{double}\ \mbox{\hyperlink{a00758_a8c8994b0486ed20075fd7808dc0bc01e}{LongControlToDouble}}(int32\_t\ aValue,\ \textcolor{keywordtype}{double}\ firstVal,\ \textcolor{keywordtype}{double}\ secondVal);}
\DoxyCodeLine{00054\ }
\DoxyCodeLine{00058\ int32\_t\ \mbox{\hyperlink{a00758_a285ce2bf578a7ceb8c12eabbd5e5ad37}{DoubleToLongControl}}\ (\textcolor{keywordtype}{double}\ aValue,\ \textcolor{keywordtype}{double}\ firstVal,\ \textcolor{keywordtype}{double}\ secondVal);}
\DoxyCodeLine{00059\ }
\DoxyCodeLine{00060\ int32\_t\ \mbox{\hyperlink{a00758_a76082aa640489b279cd7683c12fcbd33}{DoubleToLongControlNonlinear}}(\textcolor{keywordtype}{double}\ aValue,\ \textcolor{keywordtype}{double}*\ minVal,\ \textcolor{keywordtype}{double}*\ rangePercent,\ int32\_t\ numRanges);}
\DoxyCodeLine{00061\ \textcolor{keywordtype}{double}\ \mbox{\hyperlink{a00758_a81279cd99c7d7193e4f79d5c74dccf54}{LongControlToDoubleNonlinear}}(int32\_t\ aValue,\ \textcolor{keywordtype}{double}*\ minVal,\ \textcolor{keywordtype}{double}*\ rangePercent,\ int32\_t\ numRanges);}
\DoxyCodeLine{00062\ }
\DoxyCodeLine{00069\ \textcolor{keywordtype}{double}\ \mbox{\hyperlink{a00758_ae8dc426096379e56390b687762c79665}{LongControlToLogDouble}}(int32\_t\ aValue,\ \textcolor{keywordtype}{double}\ minVal,\ \textcolor{keywordtype}{double}\ maxVal);}
\DoxyCodeLine{00070\ }
\DoxyCodeLine{00077\ int32\_t\ \mbox{\hyperlink{a00758_ad5428b221d38f3503f1c168b6873d2c2}{LogDoubleToLongControl}}(\textcolor{keywordtype}{double}\ aValue,\ \textcolor{keywordtype}{double}\ minVal,\ \textcolor{keywordtype}{double}\ maxVal);}
\DoxyCodeLine{00078\ }
\DoxyCodeLine{00079\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ AAX\_SLIDERCONVERSIONS\_H}}
\DoxyCodeLine{00080\ }

\end{DoxyCode}
