23#ifndef _ATSC_FS_CORRELATOR_NAIVE_H_
24#define _ATSC_FS_CORRELATOR_NAIVE_H_
36 static const int SRSIZE = 1024;
38 float d_sample_sr[SRSIZE];
39 unsigned char d_bit_sr[SRSIZE];
41 static const int OFFSET_511 = 0;
42 static const int LENGTH_511 = 511 + 4;
43 static const int OFFSET_2ND_63 = 578;
44 static const int LENGTH_2ND_63 = 63;
46 static unsigned char s_511[LENGTH_511];
47 static unsigned char s_63[LENGTH_2ND_63];
49 inline static int wrap(
int index) {
return index & (SRSIZE - 1); }
50 inline static int incr(
int index) {
return wrap(index + 1); }
51 inline static int decr(
int index) {
return wrap(index - 1); }
60 void filter(
float input_sample,
float* output_sample,
float* output_tag);
Naive concrete implementation of field sync correlator.
Definition: fs_correlator_naive_impl.h:33
int delay() const
return delay in samples from input to output
atsci_fs_correlator_naive()
~atsci_fs_correlator_naive()
void filter(float input_sample, float *output_sample, float *output_tag)
abstract base class for ATSC field sync correlator
Definition: fs_correlator_impl.h:49
#define ATSC_API
Definition: gr-atsc/include/gnuradio/atsc/api.h:30