\hypertarget{a00575_source}{}\doxysection{AAX\+\_\+\+Utils\+Native.\+h}
\label{a00575_source}\index{AAX\_UtilsNative.h@{AAX\_UtilsNative.h}}
\mbox{\hyperlink{a00575}{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-\/2017,\ 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{00019\ \textcolor{comment}{/*================================================================================================*/}}
\DoxyCodeLine{00020\ }
\DoxyCodeLine{00021\ }
\DoxyCodeLine{00022\ \textcolor{preprocessor}{\#pragma\ once}}
\DoxyCodeLine{00023\ }
\DoxyCodeLine{00024\ \textcolor{preprocessor}{\#ifndef\ \_AAX\_UTILSNATIVE\_H\_}}
\DoxyCodeLine{00025\ \textcolor{preprocessor}{\#define\ \_AAX\_UTILSNATIVE\_H\_}}
\DoxyCodeLine{00026\ }
\DoxyCodeLine{00027\ }
\DoxyCodeLine{00028\ \textcolor{preprocessor}{\#ifndef\ \_TMS320C6X}}
\DoxyCodeLine{00029\ }
\DoxyCodeLine{00030\ \textcolor{comment}{//\ AAX\ Includes}}
\DoxyCodeLine{00031\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{a00413}{AAX\_CString.h}}"{}}}
\DoxyCodeLine{00032\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{a00542}{AAX\_IString.h}}"{}}}
\DoxyCodeLine{00033\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{a00728}{AAX\_Assert.h}}"{}}}
\DoxyCodeLine{00034\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{a00533}{AAX.h}}"{}}}
\DoxyCodeLine{00035\ }
\DoxyCodeLine{00036\ \textcolor{comment}{//\ Standard\ Library\ Includes}}
\DoxyCodeLine{00037\ \textcolor{preprocessor}{\#include\ <cmath>}\ \textcolor{comment}{//\ for\ log()}}
\DoxyCodeLine{00038\ \textcolor{preprocessor}{\#include\ <string.h>}}
\DoxyCodeLine{00039\ }
\DoxyCodeLine{00040\ }
\DoxyCodeLine{00041\ \textcolor{comment}{//-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/}}
\DoxyCodeLine{00042\ \textcolor{preprocessor}{\#pragma\ mark\ Utility\ functions}}
\DoxyCodeLine{00043\ }
\DoxyCodeLine{00044\ \textcolor{keyword}{namespace\ }\mbox{\hyperlink{a00935}{AAX}}}
\DoxyCodeLine{00045\ \{}
\DoxyCodeLine{00046\ \ \ \ \ }
\DoxyCodeLine{00050\ \ \ \ \ \textcolor{keyword}{inline}\ \textcolor{keywordtype}{double}\ \mbox{\hyperlink{a00935_ae8de30637f08cd29bb0e27526ce9e21b}{SafeLog}}\ (\textcolor{keywordtype}{double}\ aValue)\ \{\ \textcolor{keywordflow}{return}\ aValue\ <=\ 0.0\ ?\ 0.0\ :\ log(aValue);\ \}}
\DoxyCodeLine{00051\ }
\DoxyCodeLine{00055\ \ \ \ \ \textcolor{keyword}{inline}\ \textcolor{keywordtype}{float}\ \mbox{\hyperlink{a00935_ad762727aac31ad8b7bba8b67a4bc2edc}{SafeLogf}}\ (\textcolor{keywordtype}{float}\ aValue)\ \{\ \textcolor{keywordflow}{return}\ aValue\ <=\ 0.0f\ ?\ 0.0f\ :\ logf(aValue);\ \}}
\DoxyCodeLine{00056\ }
\DoxyCodeLine{00059\ \ \ \ \ \textcolor{keyword}{inline}\ \mbox{\hyperlink{a00533_aa216506530f1d19a2965931ced2b274b}{AAX\_CBoolean}}\ \mbox{\hyperlink{a00935_ae4d1a0a925aa954899fec653dc041b75}{IsParameterIDEqual}}\ (\ \mbox{\hyperlink{a00533_a1440c756fe5cb158b78193b2fc1780d1}{AAX\_CParamID}}\ iParam1,\ \mbox{\hyperlink{a00533_a1440c756fe5cb158b78193b2fc1780d1}{AAX\_CParamID}}\ iParam2\ )\ \{\ \textcolor{keywordflow}{return}\ \textcolor{keyword}{static\_cast<}\mbox{\hyperlink{a00533_aa216506530f1d19a2965931ced2b274b}{AAX\_CBoolean}}\textcolor{keyword}{>}(\ strcmp\ (\ iParam1,\ iParam2\ )\ ==\ 0\ );\ \}}
\DoxyCodeLine{00060\ }
\DoxyCodeLine{00063\ \ \ \ \ \textcolor{keyword}{inline}\ \mbox{\hyperlink{a00533_aa216506530f1d19a2965931ced2b274b}{AAX\_CBoolean}}\ \mbox{\hyperlink{a00935_aef81989128dcac01f2be8fd25096540f}{IsEffectIDEqual}}\ (\ \textcolor{keyword}{const}\ \mbox{\hyperlink{a02305}{AAX\_IString}}\ *\ iEffectID1,\ \textcolor{keyword}{const}\ \mbox{\hyperlink{a02305}{AAX\_IString}}\ *\ iEffectID2\ )\ \{\ \textcolor{keywordflow}{return}\ \textcolor{keyword}{static\_cast<}\mbox{\hyperlink{a00533_aa216506530f1d19a2965931ced2b274b}{AAX\_CBoolean}}\textcolor{keyword}{>}(\ strcmp\ (\ iEffectID1-\/>\mbox{\hyperlink{a02305_a1724cb70a19c290763c61b19b01c9d76}{Get}}(),\ iEffectID2-\/>\mbox{\hyperlink{a02305_a1724cb70a19c290763c61b19b01c9d76}{Get}}()\ )\ ==\ 0\ );\ \}}
\DoxyCodeLine{00064\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00067\ \ \ \ \ \textcolor{keyword}{inline}\ \mbox{\hyperlink{a00533_aa216506530f1d19a2965931ced2b274b}{AAX\_CBoolean}}\ \mbox{\hyperlink{a00935_ab63efd791ab1cbbcdb004302b106c45c}{IsAvidNotification}}\ (\ \mbox{\hyperlink{a00533_ac678f9c1fbcc26315d209f71a147a175}{AAX\_CTypeID}}\ inNotificationID\ )}
\DoxyCodeLine{00068\ \ \ \ \ \{}
\DoxyCodeLine{00069\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ (\mbox{\hyperlink{a00533_aa216506530f1d19a2965931ced2b274b}{AAX\_CBoolean}})(((\textcolor{charliteral}{'A'}\ ==\ ((inNotificationID\ \&\ 0xFF000000)\ >>\ 24))\ \&\&}
\DoxyCodeLine{00070\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{charliteral}{'X'}\ ==\ ((inNotificationID\ \&\ 0x00FF0000)\ >>\ 16)))\ ||}
\DoxyCodeLine{00071\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (inNotificationID\ ==\ \textcolor{stringliteral}{'ASPv'}));}
\DoxyCodeLine{00072\ \ \ \ \ \}}
\DoxyCodeLine{00073\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00074\ \}\ \textcolor{comment}{//\ namespace\ AAX}}
\DoxyCodeLine{00075\ }
\DoxyCodeLine{00076\ }
\DoxyCodeLine{00077\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ \#ifndef\ \_TMS320C6X}}
\DoxyCodeLine{00078\ }
\DoxyCodeLine{00079\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ \#ifndef\ \_AAX\_UTILSNATIVE\_H\_}}

\end{DoxyCode}
