1. 29 Mar, 2012 1 commit
  2. 15 Mar, 2012 2 commits
    • Wim Taymans's avatar
      memory: group allocation parameters in a struct · 85c95438
      Wim Taymans authored
      Group the extra allocation parameters in a GstAllocationParams structure to make
      it easier to deal with them and so that we can extend them later if needed.
      Make gst_buffer_new_allocate() take the GstAllocationParams for added
      functionality.
      Add boxed type for GstAllocationParams.
      85c95438
    • Wim Taymans's avatar
      memory: fix maxsize after align · 592b5bec
      Wim Taymans authored
      when we align the data pointer, make sure to update the maxsize.
      Add some more debug
      592b5bec
  3. 14 Mar, 2012 1 commit
    • Wim Taymans's avatar
      memory: Add 0 padding · edd2ffe4
      Wim Taymans authored
      Change gst_allocator_alloc() so that we can also spicify flags and padding.
      Add 2 new flags to mark the memory 0 prefixed/padded. This allows us to
      remove some resizes in the base classes.
      When allocating memory, memset prefix and padding with 0 when the flags tell
      us to.
      On resize, clear the zero padding flags if we can't guarantee the memory is
      still 0 filled.
      Update tests.
      edd2ffe4
  4. 08 Mar, 2012 1 commit
  5. 23 Feb, 2012 1 commit
  6. 22 Feb, 2012 1 commit
  7. 18 Feb, 2012 1 commit
  8. 13 Feb, 2012 1 commit
    • Wim Taymans's avatar
      memory: more work on refcount and writability · c6a1bed1
      Wim Taymans authored
      Rename _is_writable() with _is_exclusive because the writability does not depend
      on the amount of references to the memory object anymore.
      Add accessor macros for the memory flags.
      Rename the GstBuffer _peek_memory() method to _get_memory() and return a
      reference to the memory now that we can do this without affecting writability
      of the memory object. Make it possible to also make this function merge the
      buffer memory.
      Add methods to replace memory in a buffer. Make some convience macros for the
      buffer memory functions.
      Fix unit tests.
      c6a1bed1
  9. 02 Feb, 2012 2 commits
  10. 30 Jan, 2012 3 commits
    • Wim Taymans's avatar
      memory: add memory type · 16d9a9ef
      Wim Taymans authored
      Add memory type when registering memory allocators. Add getter for the memory
      type.
      16d9a9ef
    • Wim Taymans's avatar
      memory: add boxed GType for the allocator · f8c6cd19
      Wim Taymans authored
      f8c6cd19
    • Wim Taymans's avatar
      memory: make the allocator refcounted · af2fc026
      Wim Taymans authored
      Add refcounting to the GstAllocator object.
      Remove const from functions because the allocator is refcounted now.
      Rename the vmethods for consistency
      Expose the constructor for GstAllocator and add a destroy notify for the
      user_data. This should make it possible to create allocators that are not
      registered and shared globally along with the possibility to destroy them
      properly.
      Update defs with new symbols.
      af2fc026
  11. 27 Jan, 2012 1 commit
  12. 26 Jan, 2012 1 commit
  13. 25 Jan, 2012 4 commits
  14. 19 Jan, 2012 2 commits
    • Wim Taymans's avatar
      memory improvements · a1d7bd02
      Wim Taymans authored
      Make the memory object simply manage the data pointer and the maxsize and move
      the offset and size handling to common functionality.
      Use the READONLY flag to set a readonly lock.
      Remove the data and size fields from the unmap method. We need an explicit
      resize operation instead of using the unmap function.
      Make internal helper lock and unlock functions.
      Update unit test and users of the old API.
      a1d7bd02
    • Wim Taymans's avatar
      Update for new gthread API · 252327f8
      Wim Taymans authored
      252327f8
  15. 18 Jan, 2012 1 commit
  16. 16 Jan, 2012 1 commit
  17. 09 Jan, 2012 1 commit
  18. 06 Jan, 2012 4 commits
  19. 05 Jan, 2012 3 commits
  20. 03 Jan, 2012 1 commit
  21. 11 Nov, 2011 1 commit
  22. 10 Nov, 2011 2 commits
  23. 28 Sep, 2011 1 commit
  24. 26 Sep, 2011 1 commit
  25. 29 Aug, 2011 1 commit
    • Wim Taymans's avatar
      init: add _get_type() functions · f3b0d3cd
      Wim Taymans authored
      Remove gst_mini_object_register() and add a GST_DEFINE_MINI_OBJECT macro to
      define a _get_type() function for the boxed miniobject.
      Remove a bunch of custom _get_type() functions and replace them with the
      miniobject macro.
      Rename some _init method to _priv_*_initialize() like the rest of them.
      
      Inspired by patch from Johan Dahlin and see bug #657603
      f3b0d3cd
  26. 10 Aug, 2011 1 commit