1. 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.
    • Wim Taymans's avatar
      Update for new gthread API · 252327f8
      Wim Taymans authored
  2. 18 Jan, 2012 1 commit
  3. 16 Jan, 2012 1 commit
  4. 09 Jan, 2012 1 commit
  5. 06 Jan, 2012 4 commits
  6. 05 Jan, 2012 3 commits
  7. 03 Jan, 2012 1 commit
  8. 11 Nov, 2011 1 commit
  9. 10 Nov, 2011 2 commits
  10. 28 Sep, 2011 1 commit
  11. 26 Sep, 2011 1 commit
  12. 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
  13. 10 Aug, 2011 1 commit
  14. 04 Aug, 2011 1 commit
  15. 11 Jul, 2011 2 commits
    • Wim Taymans's avatar
      buffer: fix negative offsets some more · 8461249f
      Wim Taymans authored
      Allow for negative offsets when doing memory copy and share.
      Add fast path in the _get_sizes() function.
      Fix resize for negative offset and expanding the buffer.
      Add some unit tests.
    • Wim Taymans's avatar
      buffer: add api to get the current memory offset · abf62936
      Wim Taymans authored
      Also return the offset in a GstMemory block with the get_sizes() method. This
      allows us to figure out how much prefix there is unused.
      Change the resize function so that a negative offset can be given. This would
      make it possible to resize the buffer so that the prefix becomes available.
      Add gst_buffer_get_sizes() to return the offset and maxsize as well as the size.
      Also change the buffer resize method so that we can specify a negative offset
      to remove prefix bytes.
  16. 22 Jun, 2011 1 commit
  17. 10 Jun, 2011 3 commits
  18. 08 Jun, 2011 2 commits
    • Wim Taymans's avatar
      memory: Require implementation to implement _share · b84fff07
      Wim Taymans authored
      Require the memory implementations to implement a share operation. This allows
      us to remove the fallback share implementation which uses a different allocator
      implementation and complicates things too much.
      Update design doc a bit.
    • Wim Taymans's avatar
      memory: cleanups and improve docs · f6dc8eba
      Wim Taymans authored
      Make the fallback copy use the same memory allocator as the original object.
      Improve some docs.
      Require an alloc function when registering an allocator.
      Remove gst_memory_allocator_get_default() and merge the feature in
      Fix locks on the hashtable.
      Remove defined but not-implemented gst_memory_span() method.
  19. 07 Jun, 2011 2 commits
    • Wim Taymans's avatar
      memory: pass user_data to the alloc function · cfd3faef
      Wim Taymans authored
      Pass the user data that was passed to _register to the alloc function of an
    • Wim Taymans's avatar
      memory: use allocators to allocate memory · acb3ee9b
      Wim Taymans authored
      Rename the GstMemoryImpl to GstMemoryAllocator because that's really what it is.
      Add an alloc vmethod to the allocator members.
      Improve registration of allocators.
      Add methods to get and set the default allocator
      Always use an allocator to allocate memory, use the default allocator when NULL
      is passed.
      Add user_data to the allocator Info so that we can pass extra info to the
      allocator new method.
  20. 02 Jun, 2011 2 commits
  21. 06 Apr, 2011 1 commit
  22. 30 Mar, 2011 2 commits
  23. 29 Mar, 2011 2 commits
  24. 28 Mar, 2011 2 commits