1. 16 Sep, 2017 1 commit
  2. 08 Aug, 2017 1 commit
    • wm4's avatar
      imgutils: add function to clear an image to black · 463b81de
      wm4 authored
      Black isn't always just memset(ptr, 0, size). Limited YUV in particular
      requires relatively non-obvious values, and filling a frame with
      repeating 0 bytes is disallowed in some contexts. With component sizes
      larger than 8 or packed YUV, this can become relatively complicated. So
      having a generic function for this seems helpful.
      
      In order to handle the complex cases in a generic way without destroying
      performance, this code attempts to compute a black pixel, and then uses
      that value to clear the image data quickly by using a function like
      memset.
      
      Common cases like yuv410p10 or rgba can't be handled with a simple
      memset, so there is some code to fill memory with 2/4/8 byte patterns.
      For the remaining cases, a generic slow fallback is used.
      Signed-off-by: 's avatarAnton Khirnov <anton@khirnov.net>
      
      Merged from Libav commit 45df7adc.
      463b81de
  3. 26 Jul, 2017 1 commit
    • wm4's avatar
      imgutils: add function to clear an image to black · 45df7adc
      wm4 authored
      Black isn't always just memset(ptr, 0, size). Limited YUV in particular
      requires relatively non-obvious values, and filling a frame with
      repeating 0 bytes is disallowed in some contexts. With component sizes
      larger than 8 or packed YUV, this can become relatively complicated. So
      having a generic function for this seems helpful.
      
      In order to handle the complex cases in a generic way without destroying
      performance, this code attempts to compute a black pixel, and then uses
      that value to clear the image data quickly by using a function like
      memset.
      
      Common cases like yuv410p10 or rgba can't be handled with a simple
      memset, so there is some code to fill memory with 2/4/8 byte patterns.
      For the remaining cases, a generic slow fallback is used.
      Signed-off-by: 's avatarAnton Khirnov <anton@khirnov.net>
      45df7adc
  4. 12 Jun, 2017 1 commit
  5. 10 Dec, 2016 1 commit
  6. 31 Aug, 2016 1 commit
  7. 28 Feb, 2016 1 commit
  8. 14 Feb, 2016 1 commit
  9. 13 Feb, 2016 2 commits
  10. 27 Jan, 2016 1 commit
  11. 11 Jan, 2016 1 commit
  12. 24 Nov, 2015 1 commit
  13. 07 Sep, 2015 1 commit
  14. 12 Jun, 2015 1 commit
  15. 13 May, 2015 1 commit
  16. 28 Feb, 2015 1 commit
  17. 14 Jan, 2015 1 commit
    • Stefano Sabatini's avatar
      imgutils: create misc functions for dealing with buffers · e2ad0b66
      Stefano Sabatini authored
      Move the lavc/imgconvert functions and rename them as follows:
        avpicture_get_size -> av_image_get_buffer_size()
        avpicture_fill     -> av_image_fill_arrays()
        avpicture_layout   -> av_image_copy_to_buffer()
      
      The new functions have an align parameter, which allows to define the
      linesize alignment assumed in the buffer (which is set or read).
      
      The names of the functions are consistent with the lavu/samples API
      (av_samples_get_buffer_size(), av_samples_fill_arrays()).
      
      A redundant check has been dropped from av_image_fill_arrays().
      Signed-off-by: 's avatarVittorio Giovara <vittorio.giovara@gmail.com>
      e2ad0b66
  18. 27 Nov, 2014 1 commit
  19. 20 Jun, 2014 1 commit
  20. 25 May, 2014 1 commit
  21. 15 May, 2013 2 commits
  22. 09 May, 2013 1 commit
  23. 25 Nov, 2012 1 commit
  24. 23 Nov, 2012 1 commit
  25. 31 Oct, 2012 1 commit
  26. 14 Oct, 2012 1 commit
  27. 13 Oct, 2012 1 commit
  28. 12 Oct, 2012 2 commits
  29. 08 Oct, 2012 1 commit
  30. 15 Aug, 2012 1 commit
  31. 27 Jul, 2012 1 commit
  32. 26 Jun, 2012 1 commit
    • Stefano Sabatini's avatar
      lavu/imgutils: create misc functions for dealing with buffers · e6674e46
      Stefano Sabatini authored
      Move the lavc/imgconvert functions and rename them as follows:
      avpicture_get_size -> av_image_get_buffer_size()
      avpicture_fill     -> av_image_fill_arrays()
      avpicture_layout   -> av_image_copy_to_buffer()
      
      The new functions have an align parameter, which allows to define the
      linesize alignment assumed in the buffer (which is set or read).
      
      The names of the functions are consistent with the lavu/samples API
      (av_samples_get_buffer_size(), av_samples_fill_arrays()).
      e6674e46
  33. 13 Apr, 2012 1 commit
  34. 28 Mar, 2012 1 commit
  35. 08 Feb, 2012 1 commit
  36. 23 Dec, 2011 1 commit
  37. 19 Nov, 2011 1 commit