Pure DMX merge and processing logic (Art-Net 4).
Pure DMX merge and processing logic (Art-Net 4).
(any-port-merging? state)Returns true if any port is merging multiple sources.
Returns true if any port is merging multiple sources.
(at-source-limit? sources source-key)Returns true if adding new source exceeds limit (2).
Returns true if adding new source exceeds limit (2).
Default sync buffer TTL (1s).
Default sync buffer TTL (1s).
(dmx-source-key sender packet)Returns unique key [host physical] for DMX source.
Returns unique key [host physical] for DMX source.
(extract-dmx-bytes packet)Extracts DMX data as byte array from packet.
Extracts DMX data as byte array from packet.
Max merge sources per port (2).
Max merge sources per port (2).
(merge-htp old new)Returns new byte array with max value at each position (HTP).
Returns new byte array with max value at each position (HTP).
(merge-ltp _old new)Returns clone of new data (LTP).
Returns clone of new data (LTP).
Timeout for merge sources (10s).
Timeout for merge sources (10s).
(merge-sources mode sources)Returns merged source data using specified mode (:htp/:ltp).
Returns merged source data using specified mode (:htp/:ltp).
(merge-sources-htp sources)Returns {:data bytes :length N} merged via HTP.
Returns {:data bytes :length N} merged via HTP.
(merge-sources-ltp sources)Returns {:data bytes :length N} from most recent source (LTP).
Returns {:data bytes :length N} from most recent source (LTP).
(port-merge-mode state port-index)Returns merge mode for port index. Default :htp.
Returns merge mode for port index. Default :htp.
(process-artdmx-merge state packet sender timestamp)Processes ArtDmx packet with multi-source merge tracking.
Returns map: :state - updated state :output-data - bytes :output-length - int :emit? - boolean :merging? - boolean :source-rejected? - boolean
Processes ArtDmx packet with multi-source merge tracking. Returns map: :state - updated state :output-data - bytes :output-length - int :emit? - boolean :merging? - boolean :source-rejected? - boolean
(prune-by-age m now cutoff-ns)(prune-by-age m now cutoff-ns timestamp-key)Returns map with entries older than cutoff-ns removed.
Returns map with entries older than cutoff-ns removed.
(prune-merge-sources sources timestamp)Returns sources map with stale entries removed.
Returns sources map with stale entries removed.
(sync-sender-matches? state sync-sender)Returns true if ArtSync sender matches recent ArtDmx sender.
Returns true if ArtSync sender matches recent ArtDmx sender.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |