LLIPS  rev33
Light Library for Image ProcesS
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
llips_functions.c File Reference

Miscellaneous functions used in llips. More...

#include "llips_includes.h"

Go to the source code of this file.

Functions

CPU_INT32U mini (CPU_INT32U a, CPU_INT32U b)
 Compare two CPU_INT32U to find the smallest. More...
 
CPU_INT32U maxi (CPU_INT32U a, CPU_INT32U b)
 compare two CPU_INT32U to find the biggest More...
 
CPU_INT08U ** createTableINT08U (CPU_INT16S nbLin, CPU_INT16S nbCol)
 Allocate memory for a CPU_INT08U 2D table. More...
 
CPU_FP64 ** createTableFP64 (CPU_INT16S nbLin, CPU_INT16S nbCol)
 Allocate memory for a CPU_FP64 2D table. More...
 
CPU_VOID freeTableINT08U (CPU_INT08U **tab)
 Deallocate memory for a CPU_INT08U 2D table. More...
 
CPU_VOID freeTableFP64 (CPU_FP64 **tab)
 Deallocate memory for a CPU_FP64 2D table. More...
 
CPU_INT32S compare (const CPU_VOID *a, const CPU_VOID *b)
 Compare function for qsort function. More...
 

Detailed Description

Miscellaneous functions used in llips.

Author
MPE

Definition in file llips_functions.c.

Function Documentation

CPU_INT32S compare ( const CPU_VOID a,
const CPU_VOID b 
)

Compare function for qsort function.

Parameters
aconst CPU_VOID * - first param
bconst CPU_VOID * - second param
Returns
CPU_INT32S - difference between both

Definition at line 140 of file llips_functions.c.

CPU_FP64** createTableFP64 ( CPU_INT16S  nbLin,
CPU_INT16S  nbCol 
)

Allocate memory for a CPU_FP64 2D table.

Parameters
nbLinCPU_INT16S - number of line (height)
nbColCPU_INT16S - number of column (widht)
Returns
CPU_FP64** - pointer on a CPU_FP64 2D table

Definition at line 92 of file llips_functions.c.

CPU_INT08U** createTableINT08U ( CPU_INT16S  nbLin,
CPU_INT16S  nbCol 
)

Allocate memory for a CPU_INT08U 2D table.

Parameters
nbLinCPU_INT16S - number of line (height)
nbColCPU_INT16S - number of column (widht)
Returns
CPU_INT08U** - pointer on a CPU_INT08U 2D table

Definition at line 72 of file llips_functions.c.

CPU_VOID freeTableFP64 ( CPU_FP64 **  tab)

Deallocate memory for a CPU_FP64 2D table.

Parameters
tabCPU_FP64** - table to destroy
Returns
CPU_VOID

Definition at line 126 of file llips_functions.c.

CPU_VOID freeTableINT08U ( CPU_INT08U **  tab)

Deallocate memory for a CPU_INT08U 2D table.

Parameters
tabCPU_INT08U** - table to destroy
Returns
CPU_VOID

Definition at line 113 of file llips_functions.c.

CPU_INT32U maxi ( CPU_INT32U  a,
CPU_INT32U  b 
)

compare two CPU_INT32U to find the biggest

Parameters
aCPU_INT32U - first value
bCPU_INT32U - second value
Returns
CPU_INT32U - maximal value

Definition at line 51 of file llips_functions.c.

CPU_INT32U mini ( CPU_INT32U  a,
CPU_INT32U  b 
)

Compare two CPU_INT32U to find the smallest.

Parameters
aCPU_INT32U - first value
bCPU_INT32U - second value
Returns
CPU_INT32U - minimal value

Definition at line 29 of file llips_functions.c.