ogl_beamforming

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

Commit: 7ed54a288e85891d149b4edc2de10ea0be08646f
Parent: 0d0fce1c8572bfe29e07ccf08d027486de7cc1c4
Author: Randy Palamar
Date:   Thu, 30 Oct 2025 17:46:48 -0600

core: ensure iq_pipeline is cleared if we change from iq to rf

Diffstat:
Mbeamformer.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/beamformer.c b/beamformer.c @@ -466,7 +466,7 @@ plan_compute_pipeline(BeamformerComputePlan *cp, BeamformerParameterBlock *pb) if (demodulate) run_cuda_hilbert = 0; - if (demodulate || run_cuda_hilbert) cp->iq_pipeline = 1; + cp->iq_pipeline = demodulate || run_cuda_hilbert; f32 sampling_frequency = pb->parameters.sampling_frequency; u32 decimation_rate = MAX(pb->parameters.decimation_rate, 1); @@ -477,8 +477,8 @@ plan_compute_pipeline(BeamformerComputePlan *cp, BeamformerParameterBlock *pb) } cp->rf_size = sample_count * pb->parameters.channel_count * pb->parameters.acquisition_count; - if (demodulate || run_cuda_hilbert) cp->rf_size *= 8; - else cp->rf_size *= 4; + if (cp->iq_pipeline) cp->rf_size *= 8; + else cp->rf_size *= 4; u32 das_sample_stride = 1; u32 das_transmit_stride = sample_count;