]> sigrok.org Git - libsigrok.git/commit
output/wavedrom: rephrase accumulation of output data
authorGerhard Sittig <redacted>
Sat, 21 Dec 2019 11:31:56 +0000 (12:31 +0100)
committerGerhard Sittig <redacted>
Sat, 21 Dec 2019 12:58:43 +0000 (13:58 +0100)
commit38950645429a6220bdca129f0ff9b72d4ba6254b
tree7782308dd4879de984d92f098b56bc64e75bde79
parent7a0d1bdc2044cfb1836caaf9e28c1929d06bf66d
output/wavedrom: rephrase accumulation of output data

Iterate over the received sample set first, before iterating over the
respective sample's number of channels. This avoids redundant extraction
of sampled bits (which saves only little), but also increases locality
of processed data (though string accumulation still may be expensive).

It also adds the future option of RLE compression during accumulation of
output data, which perfectly matches the WaveDrom syntax for repeated
bit patterns.
src/output/wavedrom.c