1. 14 May, 2018 1 commit
  2. 28 Apr, 2018 1 commit
  3. 08 Apr, 2018 1 commit
  4. 22 Feb, 2018 4 commits
  5. 15 Feb, 2018 1 commit
  6. 23 Jan, 2018 1 commit
  7. 03 Aug, 2017 1 commit
  8. 26 Jul, 2017 5 commits
  9. 21 May, 2017 1 commit
  10. 27 Mar, 2017 2 commits
    • Nicolas Dufresne's avatar
      array/list: Make gvalue conversion symmetric · d44975a1
      Nicolas Dufresne authored
      This is needed to support matrix. Otherwise, getting
      a matrix would remove the rows envelopess, which would
      make the "cast" fails, since it would not know if the
      internal rows are ValueArray or ValueList. I think reading,
      modifying and setting back the matrix is an important use
      case.
      d44975a1
    • Nicolas Dufresne's avatar
      gstmodule: Factor out gst type creation · c6dee2c2
      Nicolas Dufresne authored
      This reduces a lot the boiler plate all over. At the same
      time, use N instead of O when passing PyObject to fix
      the objects leaks.
      c6dee2c2
  11. 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
  12. 05 Sep, 2016 1 commit
  13. 27 Feb, 2016 1 commit
  14. 20 Feb, 2016 1 commit
  15. 15 Feb, 2016 1 commit
  16. 08 Feb, 2016 1 commit
  17. 08 Nov, 2015 2 commits
  18. 26 Oct, 2015 1 commit
  19. 24 Apr, 2015 3 commits
  20. 19 Mar, 2015 1 commit
  21. 06 Jun, 2014 1 commit
  22. 22 May, 2014 1 commit
  23. 01 Apr, 2014 2 commits
  24. 29 Mar, 2014 2 commits
  25. 15 Mar, 2014 1 commit
  26. 12 Dec, 2013 1 commit
  27. 03 Dec, 2013 1 commit