\doxysection{/src/blacknest/bds/bds/bds\+Data\+Lib/canada\+\_\+compress.h File Reference}
\hypertarget{canada__compress_8h}{}\label{canada__compress_8h}\index{/src/blacknest/bds/bds/bdsDataLib/canada\_compress.h@{/src/blacknest/bds/bds/bdsDataLib/canada\_compress.h}}
{\ttfamily \#include $<$arpa/inet.\+h$>$}\newline
\doxysubsubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \mbox{\hyperlink{canada__compress_8h_a6e5ca189abf1878393d61e95273d7687}{CANCOMP\+\_\+\+ERR}}~-\/1 /\texorpdfstring{$\ast$}{*} unrecoverable \textbf{ error} (malloc fails) \texorpdfstring{$\ast$}{*}/
\item 
\#define \mbox{\hyperlink{canada__compress_8h_aebcfff74999e72486ca4a1121f2ee5e2}{CANCOMP\+\_\+\+SUCCESS}}~0 /\texorpdfstring{$\ast$}{*} success \texorpdfstring{$\ast$}{*}/
\item 
\#define \mbox{\hyperlink{canada__compress_8h_ad31b0bafead52752950a42c656c5bb70}{CANCOMP\+\_\+\+NOT\+\_\+20}}~1 /\texorpdfstring{$\ast$}{*} \textbf{ number} of samples not divisible by 20 \texorpdfstring{$\ast$}{*}/
\item 
\#define \mbox{\hyperlink{canada__compress_8h_ad6a89049f8f4d1a2a2d89c5782a00842}{CANCOMP\+\_\+\+CORRUPT}}~2 /\texorpdfstring{$\ast$}{*} corrupted call \texorpdfstring{$\ast$}{*}/
\item 
\#define \mbox{\hyperlink{canada__compress_8h_a709a0718f0f608bda924b232a3706fea}{CANCOMP\+\_\+\+EXCEED}}
\end{DoxyCompactItemize}
\doxysubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \mbox{\hyperlink{canada__compress_8h_a51ae1dec141cdbc9470b5faa9039dc77}{canada\+\_\+uncompress}} (unsigned char \texorpdfstring{$\ast$}{*}b, uint32\+\_\+t \texorpdfstring{$\ast$}{*}y, int \texorpdfstring{$\ast$}{*}n, int m, uint32\+\_\+t \texorpdfstring{$\ast$}{*}v0)
\begin{DoxyCompactList}\small\item\em De-\/compressses Canada format seismic data. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{canada__compress_8h_a845f65c629f046cd36ae207d1008713c}{canada\+\_\+compress}} (unsigned char \texorpdfstring{$\ast$}{*}b, unsigned long \texorpdfstring{$\ast$}{*}y, int \texorpdfstring{$\ast$}{*}n, int m, unsigned long \texorpdfstring{$\ast$}{*}v0)
\begin{DoxyCompactList}\small\item\em Compressses Canada format seismic data. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Macro Definition Documentation}
\Hypertarget{canada__compress_8h_a6e5ca189abf1878393d61e95273d7687}\label{canada__compress_8h_a6e5ca189abf1878393d61e95273d7687} 
\index{canada\_compress.h@{canada\_compress.h}!CANCOMP\_ERR@{CANCOMP\_ERR}}
\index{CANCOMP\_ERR@{CANCOMP\_ERR}!canada\_compress.h@{canada\_compress.h}}
\doxysubsubsection{\texorpdfstring{CANCOMP\_ERR}{CANCOMP\_ERR}}
{\footnotesize\ttfamily \#define CANCOMP\+\_\+\+ERR~-\/1 /\texorpdfstring{$\ast$}{*} unrecoverable \textbf{ error} (malloc fails) \texorpdfstring{$\ast$}{*}/}

\Hypertarget{canada__compress_8h_aebcfff74999e72486ca4a1121f2ee5e2}\label{canada__compress_8h_aebcfff74999e72486ca4a1121f2ee5e2} 
\index{canada\_compress.h@{canada\_compress.h}!CANCOMP\_SUCCESS@{CANCOMP\_SUCCESS}}
\index{CANCOMP\_SUCCESS@{CANCOMP\_SUCCESS}!canada\_compress.h@{canada\_compress.h}}
\doxysubsubsection{\texorpdfstring{CANCOMP\_SUCCESS}{CANCOMP\_SUCCESS}}
{\footnotesize\ttfamily \#define CANCOMP\+\_\+\+SUCCESS~0 /\texorpdfstring{$\ast$}{*} success \texorpdfstring{$\ast$}{*}/}

\Hypertarget{canada__compress_8h_ad31b0bafead52752950a42c656c5bb70}\label{canada__compress_8h_ad31b0bafead52752950a42c656c5bb70} 
\index{canada\_compress.h@{canada\_compress.h}!CANCOMP\_NOT\_20@{CANCOMP\_NOT\_20}}
\index{CANCOMP\_NOT\_20@{CANCOMP\_NOT\_20}!canada\_compress.h@{canada\_compress.h}}
\doxysubsubsection{\texorpdfstring{CANCOMP\_NOT\_20}{CANCOMP\_NOT\_20}}
{\footnotesize\ttfamily \#define CANCOMP\+\_\+\+NOT\+\_\+20~1 /\texorpdfstring{$\ast$}{*} \textbf{ number} of samples not divisible by 20 \texorpdfstring{$\ast$}{*}/}

\Hypertarget{canada__compress_8h_ad6a89049f8f4d1a2a2d89c5782a00842}\label{canada__compress_8h_ad6a89049f8f4d1a2a2d89c5782a00842} 
\index{canada\_compress.h@{canada\_compress.h}!CANCOMP\_CORRUPT@{CANCOMP\_CORRUPT}}
\index{CANCOMP\_CORRUPT@{CANCOMP\_CORRUPT}!canada\_compress.h@{canada\_compress.h}}
\doxysubsubsection{\texorpdfstring{CANCOMP\_CORRUPT}{CANCOMP\_CORRUPT}}
{\footnotesize\ttfamily \#define CANCOMP\+\_\+\+CORRUPT~2 /\texorpdfstring{$\ast$}{*} corrupted call \texorpdfstring{$\ast$}{*}/}

\Hypertarget{canada__compress_8h_a709a0718f0f608bda924b232a3706fea}\label{canada__compress_8h_a709a0718f0f608bda924b232a3706fea} 
\index{canada\_compress.h@{canada\_compress.h}!CANCOMP\_EXCEED@{CANCOMP\_EXCEED}}
\index{CANCOMP\_EXCEED@{CANCOMP\_EXCEED}!canada\_compress.h@{canada\_compress.h}}
\doxysubsubsection{\texorpdfstring{CANCOMP\_EXCEED}{CANCOMP\_EXCEED}}
{\footnotesize\ttfamily \#define CANCOMP\+\_\+\+EXCEED}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 3\ \ \ \ \textcolor{comment}{/*\ number\ of\ bytes\ available\ in\ compressed}}
\DoxyCodeLine{\textcolor{comment}{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ data\ exceeded\ during\ decompression\ */}}

\end{DoxyCode}


\doxysubsection{Function Documentation}
\Hypertarget{canada__compress_8h_a51ae1dec141cdbc9470b5faa9039dc77}\label{canada__compress_8h_a51ae1dec141cdbc9470b5faa9039dc77} 
\index{canada\_compress.h@{canada\_compress.h}!canada\_uncompress@{canada\_uncompress}}
\index{canada\_uncompress@{canada\_uncompress}!canada\_compress.h@{canada\_compress.h}}
\doxysubsubsection{\texorpdfstring{canada\_uncompress()}{canada\_uncompress()}}
{\footnotesize\ttfamily int canada\+\_\+uncompress (\begin{DoxyParamCaption}\item[{unsigned char \texorpdfstring{$\ast$}{*}}]{b,  }\item[{uint32\+\_\+t \texorpdfstring{$\ast$}{*}}]{y,  }\item[{int \texorpdfstring{$\ast$}{*}}]{n,  }\item[{int}]{m,  }\item[{uint32\+\_\+t \texorpdfstring{$\ast$}{*}}]{v0 }\end{DoxyParamCaption})}



De-\/compressses Canada format seismic data. 

\Hypertarget{canada__compress_8h_a845f65c629f046cd36ae207d1008713c}\label{canada__compress_8h_a845f65c629f046cd36ae207d1008713c} 
\index{canada\_compress.h@{canada\_compress.h}!canada\_compress@{canada\_compress}}
\index{canada\_compress@{canada\_compress}!canada\_compress.h@{canada\_compress.h}}
\doxysubsubsection{\texorpdfstring{canada\_compress()}{canada\_compress()}}
{\footnotesize\ttfamily int canada\+\_\+compress (\begin{DoxyParamCaption}\item[{unsigned char \texorpdfstring{$\ast$}{*}}]{b,  }\item[{unsigned long \texorpdfstring{$\ast$}{*}}]{y,  }\item[{int \texorpdfstring{$\ast$}{*}}]{n,  }\item[{int}]{m,  }\item[{unsigned long \texorpdfstring{$\ast$}{*}}]{v0 }\end{DoxyParamCaption})}



Compressses Canada format seismic data. 

