1. 28 Oct, 2018 1 commit
    • Håvard Graff's avatar
      meson: use new python module · af4ade37
      Håvard Graff authored
      This patch makes the tests pass running uninstalled and installed, with
      python2 and python3 on linux, windows and osx.
      
      The main gist is to use the new python-module to do the lifting done
      by pythondetector, and with that add support for python2 and windows.
      af4ade37
  2. 25 Apr, 2018 1 commit
  3. 08 Apr, 2018 1 commit
  4. 22 Feb, 2018 3 commits
  5. 15 Feb, 2018 1 commit
  6. 26 Jul, 2017 4 commits
  7. 21 May, 2017 1 commit
  8. 24 Mar, 2017 1 commit
    • Nicolas Dufresne's avatar
      overrides: Add more GstValue overrides · a4566ffb
      Nicolas Dufresne authored
      This patch adds overrides to support IntRange, Int64Range, DoubleRange,
      FractionRange, Array and List. For integer ranges, it maps this
      to python 'range'. Gst.IntRange() and Gst.Int64Range() are simple cast
      to let the underlying code know which GType to use. To set such range in
      python you will do:
      
        structure["range"] = Gst.IntRange(range(0,10,2)))
      
      Same for the 64 bit variant. And when you do:
      
        r = structure.get_value("range")
      
      A range will be returned directly, without the wrapper. For DoubleRange
      and FractionRange, there is no native support in python. So the usage
      will be:
      
        structure["range"] = Gst.DoubleRange(0,10.0)
        structure["range"] =
            Gst.FractionRange(Gst.Fraction(1/30), Gst.Fraction(1/5)
      
      When getting this value, Gst.DoubleRange and Gst.FractionRange class are
      returned. They both have start/stop members. The naming was taken from
      range type.
      
      For Array and List, both uses the native list type, though they can be
      constructed from any python sequence. So again, the class is just like
      a cast, to let it pick the right GType and python list are being
      returned.
      
        structure["list"] = Gst.ValueList([1,2,3,4])
        structure["array"] = Gst.ValueArray([1,2,3,4)
      
      Using string and tuple could also work. Since Gst.ValueList/Array are
      sequence, you can convert one to the other with:
      
        list = Gst.ValueList([1,2,3,4])
        array = Gst.ValueArray (list)
      
      https://bugzilla.gnome.org/show_bug.cgi?id=753754
      a4566ffb
  9. 08 Nov, 2015 2 commits
  10. 26 Oct, 2015 1 commit
  11. 24 Apr, 2015 3 commits
  12. 19 Mar, 2015 1 commit
  13. 06 Jun, 2014 1 commit
  14. 22 May, 2014 1 commit
  15. 01 Apr, 2014 2 commits
  16. 15 Mar, 2014 1 commit
  17. 12 Dec, 2013 1 commit
  18. 03 Dec, 2013 1 commit
  19. 26 Nov, 2013 1 commit
  20. 26 Aug, 2013 1 commit
  21. 07 Dec, 2012 1 commit
  22. 22 Nov, 2012 1 commit
  23. 04 Nov, 2012 2 commits
  24. 24 Oct, 2012 1 commit
  25. 15 Oct, 2012 6 commits