|
ESP-IDF Firmware
Firmware architecture and call graph
|
#include "dspi_dotprod.h"Go to the source code of this file.
Functions | |
| esp_err_t | dspi_dotprod_s16_ansi (image2d_t *in_image, image2d_t *filter, int16_t *out_value, int count_x, int count_y, int shift) |
| dot product of two images Dot product calculation for two floating point images: out_value += image[i...] * src2[i*...]); i= [0..count_x*count_y) The extension (_ansi) use ANSI C and could be compiled and run on any platform. The extension (_ae32) is optimized for ESP32 chip. | |
| esp_err_t dspi_dotprod_s16_ansi | ( | image2d_t * | in_image, |
| image2d_t * | filter, | ||
| int16_t * | out_value, | ||
| int | count_x, | ||
| int | count_y, | ||
| int | shift ) |
dot product of two images Dot product calculation for two floating point images: out_value += image[i...] * src2[i*...]); i= [0..count_x*count_y) The extension (_ansi) use ANSI C and could be compiled and run on any platform. The extension (_ae32) is optimized for ESP32 chip.
| [in] | in_image | descriptor of the image |
| [in] | filter | descriptor of the filter |
| [out] | out_value | pointer to the output value |
| [in] | count_x | amount of samples by X axis (count_x*step_X <= widdth) |
| [in] | count_y | amount of samples by Y axis (count_y*step_Y <= height) |
| [in] | shift | - result shift to right, by default must be 15 for int16_t or 7 for int8_t |
Definition at line 17 of file dspi_dotprod_s16_ansi.c.
References image2d_s::data, ESP_ERR_DSP_PARAM_OUTOFRANGE, ESP_OK, image2d_s::step_x, image2d_s::step_y, image2d_s::stride_x, image2d_s::stride_y, x, and y.