The open imaging DSP library
Loading...
Searching...
No Matches
port.h
1
8#ifndef MPIX_PORT_H
9#define MPIX_PORT_H
10
11#include <stddef.h>
12#include <stdint.h>
13
14#include <mpix/types.h>
15
24
34void *mpix_port_alloc(size_t size, enum mpix_mem_source mem_source);
35
44void mpix_port_free(void *mem, enum mpix_mem_source mem_source);
45
54void mpix_port_printf(const char *fmt, ...);
55
56#endif
void * mpix_port_alloc(size_t size, enum mpix_mem_source mem_source)
Allocate a buffer to use with libmpix.
void mpix_port_printf(const char *fmt,...)
Print debug information to the console.
void mpix_port_free(void *mem, enum mpix_mem_source mem_source)
Free a buffer allocated with mpix_port_alloc().
uint32_t mpix_port_get_uptime_us(void)
Get the uptime in microsecond, used to compute performance statistics.
mpix_mem_source
Flag to specify which memory pool to use.
Definition types.h:88