21 #ifndef PLUGINS_E131_E131_E131HEADER_H_
22 #define PLUGINS_E131_E131_E131HEADER_H_
43 m_has_terminated(
false),
50 bool is_preview =
false,
51 bool has_terminated =
false,
57 m_is_preview(is_preview),
58 m_has_terminated(has_terminated),
63 const std::string Source()
const {
return m_source; }
64 uint8_t Priority()
const {
return m_priority; }
65 uint8_t Sequence()
const {
return m_sequence; }
66 uint16_t
Universe()
const {
return m_universe; }
67 bool PreviewData()
const {
return m_is_preview; }
68 bool StreamTerminated()
const {
return m_has_terminated; }
70 bool UsingRev2()
const {
return m_is_rev2; }
72 bool operator==(
const E131Header &other)
const {
73 return m_source == other.m_source &&
74 m_priority == other.m_priority &&
75 m_sequence == other.m_sequence &&
76 m_universe == other.m_universe &&
77 m_is_preview == other.m_is_preview &&
78 m_has_terminated == other.m_has_terminated &&
79 m_is_rev2 == other.m_is_rev2;
82 enum { SOURCE_NAME_LEN = 64 };
85 struct e131_pdu_header_s {
86 char source[SOURCE_NAME_LEN];
93 typedef struct e131_pdu_header_s e131_pdu_header;
95 static const uint8_t PREVIEW_DATA_MASK = 0x80;
96 static const uint8_t STREAM_TERMINATED_MASK = 0x40;
104 bool m_has_terminated;
115 bool is_preview =
false,
116 bool has_terminated =
false)
117 :
E131Header(source, priority, sequence, universe, is_preview,
118 has_terminated,
true) {
121 enum { REV2_SOURCE_NAME_LEN = 32 };
124 char source[REV2_SOURCE_NAME_LEN];
133 #endif // PLUGINS_E131_E131_E131HEADER_H_