ogl_beamforming

Ultrasound Beamforming Implemented with OpenGL
git clone anongit@rnpnr.xyz:ogl_beamforming.git
Log | Files | Refs | Feed | Submodules | LICENSE

Commit: 89c7d075c80efacfb98f346d2fe5a0b50307a30d
Parent: 849ff4782b2fc8a30dd7c817dd3c9c03ba50b4ba
Author: Randy Palamar
Date:   Tue,  7 Jan 2025 19:49:10 -0700

helper lib: change output_points to uv4 in beamform_data_synchronized

this way bp.output_points can be used directly

Diffstat:
Mhelpers/ogl_beamformer_lib.c | 3++-
Mhelpers/ogl_beamformer_lib.h | 2+-
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/helpers/ogl_beamformer_lib.c b/helpers/ogl_beamformer_lib.c @@ -270,7 +270,7 @@ set_beamformer_parameters(char *shm_name, BeamformerParameters *new_bp) void beamform_data_synchronized(char *pipe_name, char *shm_name, i16 *data, uv2 data_dim, - uv3 output_points, f32 *out_data) + uv4 output_points, f32 *out_data) { if (!check_shared_memory(shm_name)) return; @@ -278,6 +278,7 @@ beamform_data_synchronized(char *pipe_name, char *shm_name, i16 *data, uv2 data_ if (output_points.x == 0) output_points.x = 1; if (output_points.y == 0) output_points.y = 1; if (output_points.z == 0) output_points.z = 1; + output_points.w = 1; Pipe pipe = os_open_read_pipe(OS_EXPORT_PIPE_NAME); if (pipe.file == INVALID_FILE) { diff --git a/helpers/ogl_beamformer_lib.h b/helpers/ogl_beamformer_lib.h @@ -41,4 +41,4 @@ LIB_FN b32 send_data(char *pipe_name, char *shm_name, i16 *data, uv2 data_dim); * out_data: must be allocated by the caller as 2 f32s per output point. */ LIB_FN void beamform_data_synchronized(char *pipe_name, char *shm_name, i16 *data, uv2 data_dim, - uv3 output_points, f32 *out_data); + uv4 output_points, f32 *out_data);