You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
497B

  1. package gpudemod
  2. type ExtractJob struct {
  3. OffsetHz float64
  4. BW float64
  5. OutRate int
  6. }
  7. func (e *Engine) ShiftFilterDecimateBatch(iq []complex64, jobs []ExtractJob) ([][]complex64, []int, error) {
  8. outs := make([][]complex64, len(jobs))
  9. rates := make([]int, len(jobs))
  10. for i, job := range jobs {
  11. out, rate, err := e.ShiftFilterDecimate(iq, job.OffsetHz, job.BW, job.OutRate)
  12. if err != nil {
  13. return nil, nil, err
  14. }
  15. outs[i] = out
  16. rates[i] = rate
  17. }
  18. return outs, rates, nil
  19. }