Skip to content

File peak_detector_runner.c

FileList > csrc > peak_detector_runner.c

Go to the source code of this file

  • #include "peak_detector.h"
  • #include <stddef.h>
  • #include <stdint.h>
  • #include <stdlib.h>

Public Functions

Type Name
int detect_recording_i16 (const int16_t * samples, size_t n, const struct median_detector_cfg * cfg, int * positions, size_t capacity)
Offline detekce nad celou nahrávkou (16bit).

Public Functions Documentation

function detect_recording_i16

Offline detekce nad celou nahrávkou (16bit).

int detect_recording_i16 (
    const int16_t * samples,
    size_t n,
    const struct median_detector_cfg * cfg,
    int * positions,
    size_t capacity
) 

Parameters:

  • samples vstupní pole vzorků
  • n počet vzorků
  • cfg konfigurace
  • positions výstupní pole pro nalezené pozice (absolutní indexy)
  • capacity kapacita pole positions

Returns:

počet detekovaných pozic (>=0) nebo chybový kód (<0)



The documentation for this class was generated from the following file scripts/median-filter/csrc/peak_detector_runner.c