ogl_beamforming

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

Commit: 2ae07e5f5f0b3c72b81dcf85f7ea5fe522727750
Parent: 6ea45a030a59bbdfb99c91b35c1584124627b4f4
Author: Randy Palamar
Date:   Mon, 20 Jul 2026 19:17:12 -0700

math: flip yz transform normal

Diffstat:
Mbeamformer_core.c | 1-
Mmath.c | 3++-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/beamformer_core.c b/beamformer_core.c @@ -1,6 +1,5 @@ /* See LICENSE for license details. */ /* TODO(rnp): - * [ ]: bug? beamforming non XZ tag from non-0 parameter slot doesn't work? * [ ]: backtrace dumping on SIGSEGV * [ ]: bug? HERCULES might be broken, we may need to to chunk on transmits instead of channels * [ ]: refactor: do_compute should build its own "command graph" which tracks diff --git a/math.c b/math.c @@ -877,7 +877,8 @@ das_transform_2d_xz(v2 min_coordinate, v2 max_coordinate, f32 y_off) function m4 das_transform_2d_yz(v2 min_coordinate, v2 max_coordinate, f32 x_off) { - m4 result = das_transform_2d_with_normal((v3){.x = 1.0f}, min_coordinate, max_coordinate, x_off); + // NOTE(rnp): flip so that region extends in correct direction + m4 result = das_transform_2d_with_normal((v3){.x = -1.0f}, min_coordinate, max_coordinate, x_off); return result; }