23 #ifndef _ATSC_TYPES_H_
24 #define _ATSC_TYPES_H_
156 return std::memcmp(
data, other.
data,
sizeof(
data)) == 0;
161 return !(std::memcmp(
data, other.
data,
sizeof(
data)) == 0);
176 return std::memcmp(
data, other.
data,
sizeof(
data)) == 0;
181 return !(std::memcmp(
data, other.
data,
sizeof(
data)) == 0);
196 return std::memcmp(
data, other.
data,
sizeof(
data)) == 0;
201 return !(std::memcmp(
data, other.
data,
sizeof(
data)) == 0);
219 return std::memcmp(
data, other.
data,
sizeof(
data)) == 0;
224 return !(std::memcmp(
data, other.
data,
sizeof(
data)) == 0);
245 return std::memcmp(
data, other.
data,
sizeof(
data)) == 0;
250 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:174
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:125
bool regular_seg_p() const
Definition: gr-atsc/include/gnuradio/atsc/types.h:47
bool in_field2_p() const
Definition: gr-atsc/include/gnuradio/atsc/types.h:50
bool first_regular_seg_p() const
Definition: gr-atsc/include/gnuradio/atsc/types.h:52
unsigned int flags() const
Definition: gr-atsc/include/gnuradio/atsc/types.h:57
unsigned char data[ATSC_DATA_SEGMENT_LENGTH]
Definition: gr-atsc/include/gnuradio/atsc/types.h:213
unsigned char data[ATSC_MPEG_RS_ENCODED_LENGTH]
Definition: gr-atsc/include/gnuradio/atsc/types.h:190
unsigned char _pad_[NPAD]
Definition: gr-atsc/include/gnuradio/atsc/types.h:171
bool operator==(const atsc_mpeg_packet_rs_encoded &other) const
Definition: gr-atsc/include/gnuradio/atsc/types.h:194
unsigned char data[ATSC_MPEG_DATA_LENGTH]
Definition: gr-atsc/include/gnuradio/atsc/types.h:170
bool operator!=(const atsc_mpeg_packet_no_sync &other) const
Definition: gr-atsc/include/gnuradio/atsc/types.h:179
static const int fl_field_sync2
Definition: gr-atsc/include/gnuradio/atsc/types.h:127
static void delay(plinfo &out, const plinfo &in, int nsegs_of_delay)
unsigned int segno() const
Definition: gr-atsc/include/gnuradio/atsc/types.h:56
static const int fl_field2
Definition: gr-atsc/include/gnuradio/atsc/types.h:135
static const int NPAD
Definition: gr-atsc/include/gnuradio/atsc/types.h:237
bool field_sync1_p() const
Definition: gr-atsc/include/gnuradio/atsc/types.h:43
Definition: gr-atsc/include/gnuradio/atsc/types.h:165
bool in_field1_p() const
Definition: gr-atsc/include/gnuradio/atsc/types.h:49
static const int fl_transport_error
Definition: gr-atsc/include/gnuradio/atsc/types.h:142
Definition: gr-atsc/include/gnuradio/atsc/types.h:234
bool operator==(const atsc_data_segment &other) const
Definition: gr-atsc/include/gnuradio/atsc/types.h:217
void set_regular_seg(bool field2, int segno)
Definition: gr-atsc/include/gnuradio/atsc/types.h:73
bool operator!=(const atsc_data_segment &other) const
Definition: gr-atsc/include/gnuradio/atsc/types.h:248
unsigned char _pad_[NPAD]
Definition: gr-atsc/include/gnuradio/atsc/types.h:151
float data[ATSC_DATA_SEGMENT_LENGTH]
Definition: gr-atsc/include/gnuradio/atsc/types.h:239
Definition: gr-atsc/include/gnuradio/atsc/types.h:185
plinfo pli
Definition: gr-atsc/include/gnuradio/atsc/types.h:238
bool field_sync2_p() const
Definition: gr-atsc/include/gnuradio/atsc/types.h:44
Definition: gr-atsc/include/gnuradio/atsc/types.h:146
static const int NPAD
Definition: gr-atsc/include/gnuradio/atsc/types.h:211
plinfo pli
Definition: gr-atsc/include/gnuradio/atsc/types.h:189
unsigned short _segno
Definition: gr-atsc/include/gnuradio/atsc/types.h:119
bool operator==(const plinfo &other) const
Definition: gr-atsc/include/gnuradio/atsc/types.h:95
bool operator==(const atsc_data_segment &other) const
Definition: gr-atsc/include/gnuradio/atsc/types.h:243
unsigned char _pad_[NPAD]
Definition: gr-atsc/include/gnuradio/atsc/types.h:240
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:132
unsigned char data[ATSC_MPEG_DATA_LENGTH+1]
Definition: gr-atsc/include/gnuradio/atsc/types.h:150
static const int ATSC_DSEGS_PER_FIELD
Definition: consts.h:34
unsigned short _flags
Definition: gr-atsc/include/gnuradio/atsc/types.h:118
void set_field_sync2()
Definition: gr-atsc/include/gnuradio/atsc/types.h:67
bool transport_error_p() const
Definition: gr-atsc/include/gnuradio/atsc/types.h:54
static const int NPAD
Definition: gr-atsc/include/gnuradio/atsc/types.h:149
unsigned char _pad_[NPAD]
Definition: gr-atsc/include/gnuradio/atsc/types.h:214
plinfo()
Definition: gr-atsc/include/gnuradio/atsc/types.h:39
bool operator!=(const atsc_mpeg_packet &other) const
Definition: gr-atsc/include/gnuradio/atsc/types.h:159
static const int NPAD
Definition: gr-atsc/include/gnuradio/atsc/types.h:188
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:61
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:123
contains 832 3 bit symbols. The low 3 bits in the byte hold the symbol.
Definition: gr-atsc/include/gnuradio/atsc/types.h:208
bool operator!=(const plinfo &other) const
Definition: gr-atsc/include/gnuradio/atsc/types.h:100
bool operator!=(const atsc_mpeg_packet_rs_encoded &other) const
Definition: gr-atsc/include/gnuradio/atsc/types.h:199
unsigned char _pad_[NPAD]
Definition: gr-atsc/include/gnuradio/atsc/types.h:191
plinfo pli
Definition: gr-atsc/include/gnuradio/atsc/types.h:169
bool operator!=(const atsc_data_segment &other) const
Definition: gr-atsc/include/gnuradio/atsc/types.h:222
bool operator==(const atsc_mpeg_packet &other) const
Definition: gr-atsc/include/gnuradio/atsc/types.h:154
void set_transport_error(bool error)
Definition: gr-atsc/include/gnuradio/atsc/types.h:86
plinfo pli
Definition: gr-atsc/include/gnuradio/atsc/types.h:212
bool field_sync_p() const
Definition: gr-atsc/include/gnuradio/atsc/types.h:45
static const int NPAD
Definition: gr-atsc/include/gnuradio/atsc/types.h:168