![]() |
The open imaging DSP library
|
Low-level functions to implement new libmpix ports. More...
Functions | |
| uint32_t | mpix_port_get_uptime_us (void) |
| Get the uptime in microsecond, used to compute performance statistics. | |
| void * | mpix_port_alloc (size_t size, enum mpix_mem_source mem_source) |
| Allocate a buffer to use with libmpix. | |
| void | mpix_port_free (void *mem, enum mpix_mem_source mem_source) |
| Free a buffer allocated with mpix_port_alloc(). | |
| void | mpix_port_printf (const char *fmt,...) |
| Print debug information to the console. | |
Low-level functions to implement new libmpix ports.
SPDX-License-Identifier: Apache-2.0
| void * mpix_port_alloc | ( | size_t | size, |
| enum mpix_mem_source | mem_source | ||
| ) |
Allocate a buffer to use with libmpix.
This will be used to allocate the small intermediate buffers present between the operations.
| size | Number of bytes available in the buffer |
| mem_source | Source of memory |
| void mpix_port_free | ( | void * | mem, |
| enum mpix_mem_source | mem_source | ||
| ) |
Free a buffer allocated with mpix_port_alloc().
This will be used to free the buffers that were allocated after all processing.
| mem | Pointer to the buffer to free. |
| mem_source | Source of memory |
| uint32_t mpix_port_get_uptime_us | ( | void | ) |
Get the uptime in microsecond, used to compute performance statistics.
Counter overflows are not fatal to the system as this is only for benchmarking purpose.
| void mpix_port_printf | ( | const char * | fmt, |
| ... | |||
| ) |
Print debug information to the console.
This will be used to log debug messages according to the log level, as well as print image previews in the terminal.
| fmt | A printf format string followed by arguments to be printed. |