README
Upload User: shyika
Upload Date: 2017-11-25
Package Size: 1227k
Code Size: 2k
Category:

Video Capture

Development Platform:

Unix_Linux

  1. This directory contains examples for 'libunicap' and 'libunicapgtk'. 
  2. ** INSTALLATION **
  3.  Before you can build any example, you have to build 'libunicap' first. 
  4.  Most examples come with a simple 'Makefile' and use 'pkg-config' to find their libraries. 
  5.  If 'pkg-config' complains that it can not find a specific library, you will have to set 
  6.  the 'PKG_CONFIG_PATH' variable to the path where the 'libunicap.pc' got installed. This 
  7.  should be '/usr/local/lib/pkgconfig' per default. 
  8.  The 'xv_display' example comes in it's own "xv_display*.tar.gz" archive and has it's own 
  9.  'configure' script. This script will look for all required X11 and unicap libraries. 
  10. ** EXAMPLES **
  11. Below is a short description of ( hopefully ) each example: 
  12. device_info: 
  13. Enumerates all devices found by unicap and prints out all supported video 
  14. formats and properties of each device. 
  15. raw_image: 
  16. Opens the first device found by unicap, captures one frame with the default video 
  17. format of this device and outputs the captured data to stdout.
  18. sdl_display: 
  19. Prompts the user for a video capture device and video format. Then it starts capturing 
  20. from this device and displays the captured data using a SDL YUV overlay. 
  21. Currently only UYVY formats are supported by this example. 
  22. sdl_image_saving:
  23. Saves images from the live stream to .jpg files using "jpeglib". 
  24. Click on the video window to save an image.
  25. xv_display: 
  26. Works like the SDL example but uses the Xv extension to display the video data. 
  27. Again only UYVY formats are supported. 
  28. unicapgtk_simple: 
  29. Shows the use of the videodisplay widget of 'libunicapgtk'. Creates a GTK window and 
  30. displays a live video from the first capture device found by unicap. 
  31. unicapgtk_cb: 
  32. Shows the use of callbacks with 'libunicapgtk'. Creates a GTK window and captures data
  33. from the first capture device found by unicap. For each captured frame it inverts the 
  34. first half of the image data before this data gets displayed. 
  35. unicapgtk_smallapp: 
  36. Shows the use of the deviceproperty widget of 'libunicapgtk'. Shows a live video 
  37. from the first capture device found by unicap and presents a set of controls to 
  38. adjust the properties for this device.