ogl_beamforming

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

Commit: 53c5030fe0613e2c311a827aa8764875be59f639
Parent: 69a5320e4116301fe989550e38b0d1fdaa14e184
Author: Randy Palamar
Date:   Tue, 21 Apr 2026 06:25:12 -0600

core: use table for testing if the data_kind is complex

Diffstat:
Mbeamformer_core.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/beamformer_core.c b/beamformer_core.c @@ -354,9 +354,7 @@ plan_compute_pipeline(BeamformerComputePlan *cp, BeamformerParameterBlock *pb) if (demodulate) run_cuda_hilbert = 0; BeamformerDataKind data_kind = pb->pipeline.data_kind; - cp->iq_pipeline = data_kind == BeamformerDataKind_Float32Complex || - data_kind == BeamformerDataKind_Int16Complex || - demodulate || run_cuda_hilbert; + cp->iq_pipeline = beamformer_data_kind_complex[data_kind] || demodulate || run_cuda_hilbert; f32 sampling_frequency = pb->parameters.sampling_frequency; u32 decimation_rate = Max(pb->parameters.decimation_rate, 1);