23 #ifndef _ATSC_FS_CHECKER_NAIVE_H_
24 #define _ATSC_FS_CHECKER_NAIVE_H_
35 static const int SRSIZE = 1024;
37 float d_sample_sr[SRSIZE];
39 unsigned char d_bit_sr[SRSIZE];
43 static const int OFFSET_511 = 0;
44 static const int LENGTH_511 = 511 + 4;
45 static const int OFFSET_2ND_63 = 578;
46 static const int LENGTH_2ND_63 = 63;
48 static unsigned char s_511[LENGTH_511];
49 static unsigned char s_63[LENGTH_2ND_63];
51 inline static int wrap (
int index){
return index & (SRSIZE - 1); }
52 inline static int incr (
int index){
return wrap (index + 1); }
53 inline static int decr (
int index){
return wrap (index - 1); }
62 virtual void reset ();
#define ATSC_API
Definition: gr-atsc/include/gnuradio/atsc/api.h:30
virtual void filter(float input_sample, atsc::syminfo input_tag, float *output_sample, atsc::syminfo *output_tag)=0
virtual int delay() const =0
return delay in samples from input to output
Definition: syminfo_impl.h:30
abstract base class for ATSC field sync checker
Definition: fs_checker_impl.h:51
Naive concrete implementation of field sync checker.
Definition: fs_checker_naive_impl.h:32