Classes | Macros | Typedefs | Functions
tofi_util.h File Reference
#include <ctype.h>
#include <errno.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "tofi_error.h"
Include dependency graph for tofi_util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  FileData
 
struct  Point2F
 
struct  Point2I
 
struct  Point3F
 
struct  Point3I
 

Macros

#define CLK_FREQ   ((long double)1200000.0)
 
#define ION_HEAP_ID_SYSTEM   25
 
#define MAX_FREQUENCIES   3
 
#define MAX_IMAGE_HEIGHT   1024
 
#define MAX_IMAGE_WIDTH   1024
 
#define MAX_KERNEL_SIZE   7
 
#define MAX_PHASES   3
 

Typedefs

typedef float ConfBuf
 
typedef float DataBuffer
 
typedef Point2F Point2
 
typedef Point3F Point3
 

Functions

uint32_t Gcd (uint32_t a, uint32_t b)
 
uint32_t GetDataFileSize (char *file_name)
 
uint32_t GetProcessPath (char *process_path, uint32_t path_size)
 
FileData LoadFileContents (char *file_name)
 
uint32_t TransformationXyzToZ (uint32_t n_rows, uint32_t n_cols, const Point3I *p_xyz_image_data, uint16_t *p_zdepth_image_data)
 
uint32_t WriteDataToFile (char *file_name, uint8_t *buffer, uint32_t buffer_size)
 

Macro Definition Documentation

◆ CLK_FREQ

#define CLK_FREQ   ((long double)1200000.0)

Definition at line 28 of file tofi_util.h.

◆ ION_HEAP_ID_SYSTEM

#define ION_HEAP_ID_SYSTEM   25

Definition at line 31 of file tofi_util.h.

◆ MAX_FREQUENCIES

#define MAX_FREQUENCIES   3

Definition at line 24 of file tofi_util.h.

◆ MAX_IMAGE_HEIGHT

#define MAX_IMAGE_HEIGHT   1024

Definition at line 26 of file tofi_util.h.

◆ MAX_IMAGE_WIDTH

#define MAX_IMAGE_WIDTH   1024

Definition at line 25 of file tofi_util.h.

◆ MAX_KERNEL_SIZE

#define MAX_KERNEL_SIZE   7

Definition at line 27 of file tofi_util.h.

◆ MAX_PHASES

#define MAX_PHASES   3

Definition at line 23 of file tofi_util.h.

Typedef Documentation

◆ ConfBuf

typedef float ConfBuf

Definition at line 39 of file tofi_util.h.

◆ DataBuffer

typedef float DataBuffer

Definition at line 76 of file tofi_util.h.

◆ Point2

typedef Point2F Point2

Definition at line 74 of file tofi_util.h.

◆ Point3

typedef Point3F Point3

Definition at line 75 of file tofi_util.h.

Function Documentation

◆ Gcd()

uint32_t Gcd ( uint32_t  a,
uint32_t  b 
)

Definition at line 159 of file tofi_util.c.

◆ GetDataFileSize()

uint32_t GetDataFileSize ( char *  file_name)

Definition at line 66 of file tofi_util.c.

◆ GetProcessPath()

uint32_t GetProcessPath ( char *  process_path,
uint32_t  path_size 
)

Definition at line 138 of file tofi_util.c.

◆ LoadFileContents()

FileData LoadFileContents ( char *  file_name)

Definition at line 78 of file tofi_util.c.

◆ TransformationXyzToZ()

uint32_t TransformationXyzToZ ( uint32_t  n_rows,
uint32_t  n_cols,
const Point3I p_xyz_image_data,
uint16_t *  p_zdepth_image_data 
)

Definition at line 53 of file tofi_util.c.

◆ WriteDataToFile()

uint32_t WriteDataToFile ( char *  file_name,
uint8_t *  buffer,
uint32_t  buffer_size 
)

Definition at line 116 of file tofi_util.c.



libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:04