\IfFileExists{oidn-doc/intel-spec.cls}
{
  \documentclass[oneside]{oidn-doc/intel-spec}
}{
  \documentclass[oneside]{report}
  \newcommand{\copyrightyears}[1] {}
  \newcommand{\trademarkacknowledgment}[1] {}
  \newcommand{\performancedisclaimer}{}
  \newcommand{\optimizationdisclaimer}{}
  \newcommand{\makedisclaimers}{}
  \newcommand{\version}[1] { \author{Version ##1} }
}

\include{preamble}

\begin{document}
\title{Intel® Open Image Denoise\vskip0.3\baselineskip\IntelFontOneRegular\LARGE
\noindent High-Performance Denoising Library\\for Ray Tracing}
\version{\oidnversion}

\maketitle
\tableofcontents

\input{tmp/overview}
\input{tmp/changelog}
\input{tmp/compilation}
\addtocontents{toc}{\protect\setcounter{tocdepth}{2}}
\hypersetup{bookmarksdepth=2}
\input{tmp/api}
\addtocontents{toc}{\protect\setcounter{tocdepth}{1}}
\hypersetup{bookmarksdepth=1}
\input{tmp/examples}
\input{tmp/training}

\makedisclaimers

\end{document}
