1. 02 Nov, 2016 1 commit
    • Gerhard Sittig's avatar
      output/ascii: add support for user configurable character set · 0150fdca
      Gerhard Sittig authored
      Since tastes and requirements might differ, introduce support for a
      user specified character set in the construction of ASCII art graphs
      of signal levels. The syntax is "charset=<low><high>[<fall><rise>]",
      the default remains backwards compatible with existing consumers.
      
      In comparison to assuming a fixed character set, this change addresses
      several distinct aspects:
      
      Users can adjust the output for "higher visual contrast", or "straight
      lines" instead of dotted patterns, or "increased difference in height"
      for low and high signal levels, or "filled" (block like, "wall of text")
      appearance of periods with high levels. User adjustable characters are
      needed, as no single fixed set can satisfy the differing expectations.
      Perception of the output heavily depends on specific terminals and fonts
      in use.
      
      Then there is the issue of levels versus edges, and how their timing
      relates. By default edges are drawn at a point in time where the signal
      was sampled and was deteremined to already _have_ changed and have
      settled to the new level, which means that the position of edges in the
      resulting graph might be off by up to one sample period. Strictly
      speaking, the available set of samples only contains levels, and does
      not hint where exactly an edge might have occured. Though this might be
      considered rather nitpicky, representing the graph without edges does
      better reflect the input data, and might simplify postprocessing.
      
      Compare the previously only supported format (still the default, -O ascii):
      
        1:...................................................../""""""""""""""""""""
        1:""""""""""""""""""""""""""""""""\.........................................
        1:..........................................................................
      
      to those example alternatives:
      
        $ sigrok-cli -i file.sr -O ascii:charset=_\"\\/
        1:_____________________________________________________/""""""""""""""""""""
        1:""""""""""""""""""""""""""""""""\_________________________________________
        1:__________________________________________________________________________
      
        $ sigrok-cli -i file.sr -O ascii:charset=_\"
        1:_____________________________________________________"""""""""""""""""""""
        1:""""""""""""""""""""""""""""""""__________________________________________
        1:__________________________________________________________________________
      
        $ sigrok-cli -i file.sr -O ascii:charset=_^
        1:_____________________________________________________^^^^^^^^^^^^^^^^^^^^^
        1:^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^__________________________________________
        1:__________________________________________________________________________
      
        $ sigrok-cli -i file.sr -O ascii:charset=_M
        1:_____________________________________________________MMMMMMMMMMMMMMMMMMMMM
        1:MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM__________________________________________
        1:__________________________________________________________________________
      
        $ sigrok-cli -i file.sr -O ascii:charset=_X
        1:_____________________________________________________XXXXXXXXXXXXXXXXXXXXX
        1:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX__________________________________________
        1:__________________________________________________________________________
      Signed-off-by: default avatarGerhard Sittig <gerhard.sittig@gmx.net>
      0150fdca
  2. 29 Aug, 2016 1 commit
  3. 13 Sep, 2015 1 commit
  4. 16 Aug, 2015 2 commits
    • Daniel Elstner's avatar
      b9eb8e1a
    • Daniel Elstner's avatar
      Build: Set local include directories in Makefile.am · c1aae900
      Daniel Elstner authored
      Move the include flags for files in the source tree from
      configure.ac to Makefile.am where they belong.  Also use
      AM_CPPFLAGS instead of CFLAGS/CXXFLAGS to make sure the
      files in the build/source tree are always picked up first.
      
      Also, remove the include/libsigrok sub-directory from the
      search path, thereby making the <libsigrok/> prefix mandatory
      when building libsigrok itself.  This matches the convention
      already imposed on users of the library.
      c1aae900
  5. 15 Aug, 2015 1 commit
  6. 21 Mar, 2015 1 commit
  7. 27 Jan, 2015 1 commit
  8. 25 Aug, 2014 1 commit
  9. 15 Aug, 2014 1 commit
  10. 02 Aug, 2014 2 commits
  11. 28 Jul, 2014 1 commit
  12. 26 Jul, 2014 1 commit
  13. 22 Jul, 2014 1 commit
  14. 28 Apr, 2014 1 commit
  15. 21 Apr, 2014 1 commit
  16. 20 Apr, 2014 1 commit
  17. 19 Apr, 2014 2 commits