23 #ifndef DTV_INCLUDED_ATSC_TYPES_H
24 #define DTV_INCLUDED_ATSC_TYPES_H
110 assert (nsegs_of_delay >= 0);
181 return std::memcmp (
data, other.
data, sizeof (
data)) == 0;
185 return !(std::memcmp (
data, other.
data, sizeof (
data)) == 0);
198 return std::memcmp (
data, other.
data, sizeof (
data)) == 0;
202 return !(std::memcmp (
data, other.
data, sizeof (
data)) == 0);
215 return std::memcmp (
data, other.
data, sizeof (
data)) == 0;
219 return !(std::memcmp (
data, other.
data, sizeof (
data)) == 0);
235 return std::memcmp (
data, other.
data, sizeof (
data)) == 0;
239 return !(std::memcmp (
data, other.
data, sizeof (
data)) == 0);
258 return std::memcmp (
data, other.
data, sizeof (
data)) == 0;
262 return !(std::memcmp (
data, other.
data, sizeof (
data)) == 0);
plinfo()
Definition: atsc_types.h:40
float data[ATSC_DATA_SEGMENT_LENGTH]
Definition: atsc_types.h:253
static const int ATSC_DSEGS_PER_FIELD
Definition: atsc_consts.h:42
bool operator!=(const atsc_mpeg_packet_rs_encoded &other) const
Definition: atsc_types.h:218
Definition: atsc_types.h:206
unsigned char _pad_[NPAD]
Definition: atsc_types.h:231
static const int NPAD
Definition: atsc_types.h:228
unsigned int segno() const
Definition: atsc_types.h:57
bool operator==(const atsc_mpeg_packet_rs_encoded &other) const
Definition: atsc_types.h:214
bool operator!=(const atsc_data_segment &other) const
Definition: atsc_types.h:261
Definition: atsc_types.h:189
static const int fl_field_sync2
Definition: atsc_types.h:152
unsigned char data[ATSC_MPEG_DATA_LENGTH+1]
Definition: atsc_types.h:176
unsigned char _pad_[NPAD]
Definition: atsc_types.h:194
bool operator!=(const atsc_mpeg_packet_no_sync &other) const
Definition: atsc_types.h:201
unsigned int flags() const
Definition: atsc_types.h:58
Definition: atsc_types.h:249
static const int NPAD
Definition: atsc_types.h:251
bool operator==(const atsc_data_segment &other) const
Definition: atsc_types.h:257
bool operator==(const atsc_data_segment &other) const
Definition: atsc_types.h:234
pipeline info that flows with data
Definition: atsc_types.h:38
bool first_regular_seg_p() const
Definition: atsc_types.h:53
bool transport_error_p() const
Definition: atsc_types.h:55
void set_field_sync2()
Definition: atsc_types.h:68
short _segno
Definition: atsc_types.h:143
static const int ATSC_DATA_SEGMENT_LENGTH
Definition: atsc_consts.h:41
unsigned char data[ATSC_MPEG_DATA_LENGTH]
Definition: atsc_types.h:193
static const int fl_field_sync1
Definition: atsc_types.h:150
bool operator!=(const atsc_mpeg_packet &other) const
Definition: atsc_types.h:184
static void delay(plinfo &out, const plinfo &in, int nsegs_of_delay)
Definition: atsc_types.h:107
bool operator!=(const plinfo &other) const
Definition: atsc_types.h:99
void set_field_sync1()
Definition: atsc_types.h:62
bool operator==(const atsc_mpeg_packet_no_sync &other) const
Definition: atsc_types.h:197
static const int NPAD
Definition: atsc_types.h:191
bool regular_seg_p() const
Definition: atsc_types.h:48
static const int fl_regular_seg
Definition: atsc_types.h:148
static const int NPAD
Definition: atsc_types.h:208
static const int fl_field2
Definition: atsc_types.h:160
bool operator==(const atsc_mpeg_packet &other) const
Definition: atsc_types.h:180
bool field_sync_p() const
Definition: atsc_types.h:46
static const int ATSC_MPEG_RS_ENCODED_LENGTH
Definition: atsc_consts.h:34
plinfo pli
Definition: atsc_types.h:229
contains 832 3 bit symbols. The low 3 bits in the byte hold the symbol.
Definition: atsc_types.h:226
unsigned char _pad_[NPAD]
Definition: atsc_types.h:177
Definition: atsc_types.h:173
unsigned short _flags
Definition: atsc_types.h:142
plinfo pli
Definition: atsc_types.h:209
bool field_sync2_p() const
Definition: atsc_types.h:45
static void sanity_check(const plinfo &in)
Definition: atsc_types.h:131
void set_regular_seg(bool field2, int segno)
Definition: atsc_types.h:74
bool operator==(const plinfo &other) const
Definition: atsc_types.h:95
void set_transport_error(bool error)
Definition: atsc_types.h:87
bool in_field1_p() const
Definition: atsc_types.h:50
unsigned char data[ATSC_MPEG_RS_ENCODED_LENGTH]
Definition: atsc_types.h:210
bool field_sync1_p() const
Definition: atsc_types.h:44
unsigned char _pad_[NPAD]
Definition: atsc_types.h:254
bool in_field2_p() const
Definition: atsc_types.h:51
static const int fl_first_regular_seg
Definition: atsc_types.h:157
static const int NPAD
Definition: atsc_types.h:175
plinfo pli
Definition: atsc_types.h:252
unsigned char data[ATSC_DATA_SEGMENT_LENGTH]
Definition: atsc_types.h:230
unsigned char _pad_[NPAD]
Definition: atsc_types.h:211
plinfo pli
Definition: atsc_types.h:192
bool operator!=(const atsc_data_segment &other) const
Definition: atsc_types.h:238
static const int fl_transport_error
Definition: atsc_types.h:167
static const int ATSC_MPEG_DATA_LENGTH
Definition: atsc_consts.h:32