1. 18 Dec, 2015 1 commit
  2. 17 Dec, 2015 1 commit
  3. 09 Dec, 2015 2 commits
  4. 08 Nov, 2015 1 commit
    • Pavel Rojtberg's avatar
      remove support of Video4Linux1 API · a581ddd8
      Pavel Rojtberg authored
      the last kernel that allowed compiling this code was 2.6.37 which was
      released almost 5 Years ago. So probably it does not get much testing
      any more. Furthermore even back then one was better off using the V4L2
      API.
      
      The only change touching currently used code is the removal of the
      global V4L2_SUPPORT variable.
      a581ddd8
  5. 05 Nov, 2015 1 commit
    • Marian Zajko's avatar
      XIMEA adapter update · 691fb1ff
      Marian Zajko authored
      - replaced m3api/m3apiX64 binaries with latest xiapi32/xiapi64 to
      support latest camera models
      - added new parameter definitions to videoio_c.h and
      SetProperty/GetProperty calls
      - added acquisition resetting for specific parmateters in SetProperty
      call
      - added new error return value evaluators
      691fb1ff
  6. 08 Sep, 2015 1 commit
  7. 10 Jul, 2015 1 commit
  8. 02 Jun, 2015 1 commit
  9. 20 May, 2015 1 commit
  10. 15 May, 2015 1 commit
  11. 25 Mar, 2015 1 commit
  12. 02 Mar, 2015 3 commits
  13. 17 Oct, 2014 1 commit
  14. 28 Sep, 2014 1 commit
  15. 25 Sep, 2014 1 commit
  16. 09 Sep, 2014 2 commits
  17. 08 Aug, 2014 1 commit
  18. 05 Aug, 2014 1 commit
  19. 28 Jul, 2014 1 commit
  20. 20 Jul, 2014 1 commit
  21. 14 Jul, 2014 2 commits
  22. 07 Jul, 2014 1 commit
  23. 01 Jul, 2014 1 commit
  24. 03 Mar, 2014 1 commit
    • GregoryMorse's avatar
      Update cap_msmf.cpp · 90920c23
      GregoryMorse authored
      Add support for WinRT in the MF capture framework by removing the disallowed calls to enumerate devices and create a sample grabber sink and adding framework for the MediaCapture interface and a custom sink which interfaces with the sample grabber callback interface. The change requires discussion for making it completely functional as redundancy is required given that if the source is a video file, the old code pathways must be used. Otherwise all IMFMediaSession, IMFMediaSource, and IMFActivate code must use a MediaCapture code path and all sink code must use the CMediaSink custom sink.
      
      Support for the custom sink is extended to non-WinRT not for compatibility as Windows Vista client is a minimum regardless, but because it offers more flexibility, could be faster and is able to be used as an optionally different code path during sink creation based on a future configuration parameter.
      
      My discussion and proposal to finish this change:
       Devices are so easily enumerated through WinRT Windows.Devices namespace that wrapping the calls in a library is quite a chore for little benefit though to get the various modes and formats could still be a worthwhile project. For now conditional compilation to remove videodevices and any offending non-video file related activity in videodevice. In my opinion, this is a different , far less fundamental and important change which can possibly be done as a future project and also much more easily implemented in C++/CX.
      
      ImageGrabber has the IMFSampleGrabberSinkCallback replaced with a base class (SharedSampleGrabber) which also be is base class for ImageGrabberRT. This change is necessary as the custom sink does not require a thread to pump events which is done through MediaCapture already. IMFSampleGrabberSinkCallback is the common element between both models and that piece can be shared. Initializing the new ImageGrabberRT is as simple as passing an already initialized MediaCapture object and any video format/encoding parameters.
      
      The concurrency event is necessary to wait for completion and is the way the underlying, IAsyncAction wrappers in the task library work as well. Native WIN32 event objects would be an option if HAVE_CONCURRENCY is not defined. I could even imagine doing it with sleep/thread yield and InterlockedCompareExchange yet I am not enthusiastic about that approach either. Since there is a specific compiler HAVE_ for concurrency, I do not like pulling it in though I think for WinRT it is safe to say we will always have it available though should probably conditionally compile with the Interlocked option as WIN32 events would require HAVE_WIN32.
      
      It looks like C++/CX cannot be used for the IMediaExtension sink (which should not be a problem) as using COM objects requires WRL and though deriving from IMediaExtension can be done, there is little purpose without COM. Objects from C++/CX can be swapped to interact with objects from native C++ as Inspectable* can reinterpret_cast to the ref object IInspectable^ and vice-versa. A solution to the COM class with C++/CX would be great so we could have dual support. Also without #define for every WRL object in use, the code will get quite muddy given that the */^ would need to be ifdef'd everywhere.
      
      Update cap_msmf.cpp
      
      Fixed bugs and completed the change.  I believe the new classes need to be moved to a header file as the file has become to large and more classes need to be added for handling all the asynchronous problems (one wrapping IAsyncAction in a task and another for making a task out of IAsyncAction).  Unfortunately, blocking on the UI thread is not an option in WinRT so a synchronous architecture is considered "illegal" by Microsoft's standards even if implementable (C++/CX ppltasks library throws errors if you try it).  Worse, either by design or a bug in the MF MediaCapture class with Custom Sinks causes a crash if stop/start previewing without reinitializing (spPreferredPreviewMediaType is fatally nulled).  After decompiling Windows.Media.dll, I worked around this in my own projects by using an activate-able custom sink ID which strangely assigns 1 to this pointer allowing it to be reinitialized in what can only be described as a hack by Microsoft.  This would add additional overhead to the project to implement especially for static libraries as it requires IDL/DLL exporting followed by manifest declaration.  Better to document that it is not supported.
      
      Furthermore, an additional class for IMFAttributes should be implemented to make clean architecture for passing around attributes as opposed to directly calling non-COM interface calls on the objects and making use of SetProperties which would also be a set up for an object that uses the RuntimeClass activation ID.
      
      The remaining changes are not difficult and will be complete soon along with debug tracing messages.
      
      Update cap_msmf.cpp
      
      Create cap_msmf.h
      
      Update cap_msmf.cpp
      
      Update cap_msmf.h
      
      Update cap_msmf.cpp
      
      Update cap_msmf.h
      
      Update and rename cap_msmf.h to cap_msmf.hpp
      
      Update cap_msmf.cpp
      
      Update CMakeLists.txt
      
      Update cap_msmf.hpp
      
      Update cap_msmf.cpp
      
      Update cap_msmf.cpp
      
      Update cap_msmf.cpp
      
      Update cap_msmf.hpp
      
      Update cap_msmf.hpp
      
      Update cap_msmf.cpp
      
      Successful test - samples are grabbed
      
      Update cap_msmf.cpp
      
      Update cap_msmf.hpp
      
      Update cap_msmf.cpp
      
      Update cap_msmf.hpp
      
      Update cap_msmf.hpp
      
      Update cap_msmf.cpp
      
      Update cap_msmf.hpp
      
      Update cap_msmf.cpp
      
      Update cap_msmf.hpp
      
      Update cap_msmf.cpp
      
      Update cap_msmf.hpp
      
      Create ppltasks_winrt.h
      
      Update cap_msmf.hpp
      
      Update cap_msmf.hpp
      
      Update cap_msmf.cpp
      
      Update ppltasks_winrt.h
      
      Library updated and cleaned up with comments, marshaling, exceptions and linker settings
      
      Update ppltasks_winrt.h
      
      Fixed trailing whitespace
      90920c23
  25. 24 Jan, 2014 1 commit
  26. 21 Jan, 2014 1 commit
  27. 17 Dec, 2013 1 commit
  28. 13 Dec, 2013 1 commit
  29. 11 Nov, 2013 1 commit
  30. 10 Nov, 2013 1 commit
  31. 09 Oct, 2013 1 commit
  32. 02 Oct, 2013 1 commit
    • Tony's avatar
      These changes introduce Gtk3 support into the highgui module. · 81d6842b
      Tony authored
      A new option WITH_GTK3 has been added to the cmake configure system to enable compilation under Gtk version 3.The flag HAVE_GTK3 is also introduced to select the new Gtk3 code in the source files. (Gtk2 is disbled when Gtk3 is selected).
      
      window_gtk.cpp has been modified to remove obsolete (and deleted from libgtk 3) and introduce new Gtk3 code in its place when compiled for Gtk3.
      
      To compile for Gtk2, disable WITH_GTK3 in cmake. To build for Gtk3 both WITH_GTK and WITH_GTK3 must be selected.
      81d6842b
  33. 23 Aug, 2013 2 commits
  34. 22 Aug, 2013 1 commit