21 #ifndef PLUGINS_E131_E131_E131HEADER_H_
22 #define PLUGINS_E131_E131_E131HEADER_H_
41 bool is_preview =
false,
42 bool has_terminated =
false,
48 m_is_preview(is_preview),
49 m_has_terminated(has_terminated),
54 const std::string Source()
const {
return m_source; }
55 uint8_t Priority()
const {
return m_priority; }
56 uint8_t Sequence()
const {
return m_sequence; }
57 uint16_t
Universe()
const {
return m_universe; }
58 bool PreviewData()
const {
return m_is_preview; }
59 bool StreamTerminated()
const {
return m_has_terminated; }
61 bool UsingRev2()
const {
return m_is_rev2; }
63 bool operator==(
const E131Header &other)
const {
64 return m_source == other.m_source &&
65 m_priority == other.m_priority &&
66 m_sequence == other.m_sequence &&
67 m_universe == other.m_universe &&
68 m_is_preview == other.m_is_preview &&
69 m_has_terminated == other.m_has_terminated &&
70 m_is_rev2 == other.m_is_rev2;
73 enum { SOURCE_NAME_LEN = 64 };
76 char source[SOURCE_NAME_LEN];
82 } __attribute__((packed));
85 static const uint8_t PREVIEW_DATA_MASK = 0x80;
86 static const uint8_t STREAM_TERMINATED_MASK = 0x40;
94 bool m_has_terminated;
105 bool is_preview =
false,
106 bool has_terminated =
false)
107 :
E131Header(source, priority, sequence, universe, is_preview,
108 has_terminated,
true) {
111 enum { REV2_SOURCE_NAME_LEN = 32 };
114 char source[REV2_SOURCE_NAME_LEN];
123 #endif // PLUGINS_E131_E131_E131HEADER_H_