1. 20 Jul, 2017 1 commit
  2. 18 Jul, 2017 2 commits
  3. 22 May, 2017 1 commit
  4. 08 May, 2017 1 commit
    • Aaron Levinson's avatar
      avdevice/decklink: fix MSVC build issues · 7f7ee86d
      Aaron Levinson authored
      Purpose: Made minor changes to get the decklink avdevice code to build
      using Visual C++.
      
      Notes: Made changes to configure per Hendrik Leppkes's review of first
      and second versions of patch.  Also made slight alterations per Marton
      Balint's reviews.
      
      Comments:
      
      -- configure: Added if enabled decklink section and setting
         decklink_indev_extralibs and decklink_outdev_extralibs here for
         both mingw and Windows.  Also eliminated the setting of these
         variables in the mingw section earlier in the file.
      
      -- libavdevice/decklink_common.cpp: Switched the order of the include
         of libavformat/internal.h to workaround build issues with Visual
         C++.  See comment in file for more details.
      
      -- libavdevice/decklink_dec.cpp:
      a) Rearranged the include of libavformat/internal.h (for reasons as
         described above).
      b) Made slight alteration to an argument for call to av_rescale_q() to
         workaround a compiler error with Visual C++.  This appears to only
         be an issue when building C++ files with Visual C++.  See comment
         in code for more details.
      
      -- libavdevice/decklink_enc.cpp: Rearranged the include of
         libavformat/internal.h (for reasons as described above).
      Signed-off-by: 's avatarAaron Levinson <alevinsn@aracnet.com>
      Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
      7f7ee86d
  5. 06 May, 2017 1 commit
  6. 23 Apr, 2017 1 commit
  7. 15 Apr, 2017 1 commit
    • Aaron Levinson's avatar
      avdevice/decklink: remove pthread dependency · 9e86a618
      Aaron Levinson authored
      Purpose: avdevice/decklink: Removed pthread dependency by replacing
      semaphore used in code appropriately.  Doing so makes it easier to
      build ffmpeg using Visual C++ on Windows.  This is a contination of
      Kyle Schwarz's "avdevice/decklink: Remove pthread dependency" patch
      that is available at https://patchwork.ffmpeg.org/patch/2654/ .  This
      patch wasn't accepted, and as far as I can tell, there was no
      follow-up after it was rejected.
      
      Notes: Used Visual Studio 2015 (with update 3) for this.
      
      Comments:
      
      -- configure: Eliminated pthreads dependency for decklink_indev_deps
         and decklink_outdev_deps and replaced with threads dependency
      
      -- libavdevice/decklink_common.cpp / .h:
      a) Eliminated semaphore and replaced with a combination of a mutex,
         condition variable, and a counter (frames_buffer_available_spots).
      b) Removed include of pthread.h and semaphore.h and now using
         libavutil/thread.h instead.
      
      -- libavdevice/decklink_dec.cpp: Eliminated include of pthread.h and
         semaphore.h.
      
      -- libavdevice/decklink_enc.cpp:
      a) Eliminated include of pthread.h and semaphore.h.
      b) Replaced use of semaphore with the equivalent using a combination
         of a mutex, condition variable, and a counter
         (frames_buffer_available_spots).  In theory, libavutil/thread.h and
         the associated code could have been modified instead to add
         cross-platform implementations of the sem_ functions, but an
         inspection of the ffmpeg source base indicates that there are only
         two cases in which semaphores are used (including this one that was
         replaced), so it was deemed to not be worth the effort.
      Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
      9e86a618
  8. 02 Apr, 2017 2 commits
  9. 31 Mar, 2017 2 commits
  10. 28 Mar, 2017 2 commits
  11. 22 Mar, 2017 2 commits
  12. 07 Mar, 2017 1 commit
  13. 26 Feb, 2017 4 commits
  14. 22 Feb, 2017 1 commit
  15. 21 Feb, 2017 1 commit
  16. 19 Feb, 2017 1 commit
  17. 24 Jan, 2017 2 commits
  18. 12 Jan, 2017 1 commit
  19. 27 Dec, 2016 2 commits
  20. 22 Dec, 2016 1 commit
  21. 19 Dec, 2016 1 commit
  22. 09 Dec, 2016 1 commit
  23. 03 Dec, 2016 1 commit
  24. 08 Nov, 2016 1 commit
  25. 03 Nov, 2016 1 commit
    • Nicolas George's avatar
      lavd/xcbgrab: do not try to create refcounted packets. · 0bd1be65
      Nicolas George authored
      The framework will allocate a buffer and copy the data to it,
      that takes time. But it avoids constently creating and
      destroyng the shared memory segment, and that saves more time.
      
      On my setup,
      from ~200 to ~300 FPS at full screen (1920×1200),
      from ~1400 to ~3300 at smaller size (640×480),
      similar to legacy x11grab and confirmed by others.
      
      Plus, shared memory segments are a scarce resource,
      allocating potentially many is a bad idea.
      
      Note: if the application were to drop all references to the
      buffer before the next call to av_read_frame(), then passing
      the shared memory segment as a refcounted buffer would be
      even more efficient, but it is hard to guarantee, and it does
      not happen with the ffmpeg command-line tool. Using a small
      number of preallocated buffers and resorting to a copy when
      the pool is exhausted would be a solution to get the better
      of both worlds.
      0bd1be65
  26. 26 Oct, 2016 2 commits
  27. 22 Oct, 2016 1 commit
  28. 21 Oct, 2016 2 commits