23 #ifndef _ATSC_TYPES_H_
24 #define _ATSC_TYPES_H_
152 return std::memcmp (data, other.
data, sizeof (data)) == 0;
156 return !(std::memcmp (data, other.
data, sizeof (data)) == 0);
169 return std::memcmp (data, other.
data, sizeof (data)) == 0;
173 return !(std::memcmp (data, other.
data, sizeof (data)) == 0);
186 return std::memcmp (data, other.
data, sizeof (data)) == 0;
190 return !(std::memcmp (data, other.
data, sizeof (data)) == 0);
206 return std::memcmp (data, other.
data, sizeof (data)) == 0;
210 return !(std::memcmp (data, other.
data, sizeof (data)) == 0);
229 return std::memcmp (data, other.
data, sizeof (data)) == 0;
233 return !(std::memcmp (data, other.
data, sizeof (data)) == 0);
bool operator==(const atsc_mpeg_packet_no_sync &other) const
Definition: gr-atsc/include/gnuradio/atsc/types.h:168
static const int ATSC_DATA_SEGMENT_LENGTH
Definition: consts.h:33
static const int fl_field_sync1
Definition: gr-atsc/include/gnuradio/atsc/types.h:121
bool regular_seg_p() const
Definition: gr-atsc/include/gnuradio/atsc/types.h:46
bool in_field2_p() const
Definition: gr-atsc/include/gnuradio/atsc/types.h:49
bool first_regular_seg_p() const
Definition: gr-atsc/include/gnuradio/atsc/types.h:51
unsigned int flags() const
Definition: gr-atsc/include/gnuradio/atsc/types.h:56
unsigned char data[ATSC_DATA_SEGMENT_LENGTH]
Definition: gr-atsc/include/gnuradio/atsc/types.h:201
unsigned char data[ATSC_MPEG_RS_ENCODED_LENGTH]
Definition: gr-atsc/include/gnuradio/atsc/types.h:181
unsigned char _pad_[NPAD]
Definition: gr-atsc/include/gnuradio/atsc/types.h:165
bool operator==(const atsc_mpeg_packet_rs_encoded &other) const
Definition: gr-atsc/include/gnuradio/atsc/types.h:185
unsigned char data[ATSC_MPEG_DATA_LENGTH]
Definition: gr-atsc/include/gnuradio/atsc/types.h:164
bool operator!=(const atsc_mpeg_packet_no_sync &other) const
Definition: gr-atsc/include/gnuradio/atsc/types.h:172
static const int fl_field_sync2
Definition: gr-atsc/include/gnuradio/atsc/types.h:123
static void delay(plinfo &out, const plinfo &in, int nsegs_of_delay)
unsigned int segno() const
Definition: gr-atsc/include/gnuradio/atsc/types.h:55
static const int fl_field2
Definition: gr-atsc/include/gnuradio/atsc/types.h:131
static const int NPAD
Definition: gr-atsc/include/gnuradio/atsc/types.h:222
bool field_sync1_p() const
Definition: gr-atsc/include/gnuradio/atsc/types.h:42
Definition: gr-atsc/include/gnuradio/atsc/types.h:160
bool in_field1_p() const
Definition: gr-atsc/include/gnuradio/atsc/types.h:48
static const int fl_transport_error
Definition: gr-atsc/include/gnuradio/atsc/types.h:138
Definition: gr-atsc/include/gnuradio/atsc/types.h:220
bool operator==(const atsc_data_segment &other) const
Definition: gr-atsc/include/gnuradio/atsc/types.h:205
void set_regular_seg(bool field2, int segno)
Definition: gr-atsc/include/gnuradio/atsc/types.h:72
bool operator!=(const atsc_data_segment &other) const
Definition: gr-atsc/include/gnuradio/atsc/types.h:232
unsigned char _pad_[NPAD]
Definition: gr-atsc/include/gnuradio/atsc/types.h:148
float data[ATSC_DATA_SEGMENT_LENGTH]
Definition: gr-atsc/include/gnuradio/atsc/types.h:224
Definition: gr-atsc/include/gnuradio/atsc/types.h:177
plinfo pli
Definition: gr-atsc/include/gnuradio/atsc/types.h:223
bool field_sync2_p() const
Definition: gr-atsc/include/gnuradio/atsc/types.h:43
Definition: gr-atsc/include/gnuradio/atsc/types.h:144
static const int NPAD
Definition: gr-atsc/include/gnuradio/atsc/types.h:199
plinfo pli
Definition: gr-atsc/include/gnuradio/atsc/types.h:180
unsigned short _segno
Definition: gr-atsc/include/gnuradio/atsc/types.h:115
bool operator==(const plinfo &other) const
Definition: gr-atsc/include/gnuradio/atsc/types.h:93
bool operator==(const atsc_data_segment &other) const
Definition: gr-atsc/include/gnuradio/atsc/types.h:228
unsigned char _pad_[NPAD]
Definition: gr-atsc/include/gnuradio/atsc/types.h:225
static const int ATSC_MPEG_RS_ENCODED_LENGTH
Definition: consts.h:32
static const int fl_first_regular_seg
Definition: gr-atsc/include/gnuradio/atsc/types.h:128
unsigned char data[ATSC_MPEG_DATA_LENGTH+1]
Definition: gr-atsc/include/gnuradio/atsc/types.h:147
static const int ATSC_DSEGS_PER_FIELD
Definition: consts.h:34
unsigned short _flags
Definition: gr-atsc/include/gnuradio/atsc/types.h:114
void set_field_sync2()
Definition: gr-atsc/include/gnuradio/atsc/types.h:66
bool transport_error_p() const
Definition: gr-atsc/include/gnuradio/atsc/types.h:53
static const int NPAD
Definition: gr-atsc/include/gnuradio/atsc/types.h:146
unsigned char _pad_[NPAD]
Definition: gr-atsc/include/gnuradio/atsc/types.h:202
plinfo()
Definition: gr-atsc/include/gnuradio/atsc/types.h:38
bool operator!=(const atsc_mpeg_packet &other) const
Definition: gr-atsc/include/gnuradio/atsc/types.h:155
static const int NPAD
Definition: gr-atsc/include/gnuradio/atsc/types.h:179
pipeline info that flows with data
Definition: gr-atsc/include/gnuradio/atsc/types.h:36
static void sanity_check(const plinfo &in)
void set_field_sync1()
Definition: gr-atsc/include/gnuradio/atsc/types.h:60
static const int ATSC_MPEG_DATA_LENGTH
Definition: consts.h:30
static const int fl_regular_seg
Definition: gr-atsc/include/gnuradio/atsc/types.h:119
contains 832 3 bit symbols. The low 3 bits in the byte hold the symbol.
Definition: gr-atsc/include/gnuradio/atsc/types.h:197
bool operator!=(const plinfo &other) const
Definition: gr-atsc/include/gnuradio/atsc/types.h:97
bool operator!=(const atsc_mpeg_packet_rs_encoded &other) const
Definition: gr-atsc/include/gnuradio/atsc/types.h:189
unsigned char _pad_[NPAD]
Definition: gr-atsc/include/gnuradio/atsc/types.h:182
plinfo pli
Definition: gr-atsc/include/gnuradio/atsc/types.h:163
bool operator!=(const atsc_data_segment &other) const
Definition: gr-atsc/include/gnuradio/atsc/types.h:209
bool operator==(const atsc_mpeg_packet &other) const
Definition: gr-atsc/include/gnuradio/atsc/types.h:151
void set_transport_error(bool error)
Definition: gr-atsc/include/gnuradio/atsc/types.h:85
plinfo pli
Definition: gr-atsc/include/gnuradio/atsc/types.h:200
bool field_sync_p() const
Definition: gr-atsc/include/gnuradio/atsc/types.h:44
static const int NPAD
Definition: gr-atsc/include/gnuradio/atsc/types.h:162