VisionWorks Toolkit Reference

December 18, 2015 | 1.2 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
stable/opengl_interop/opengl_interop_user_guide.md
Go to the documentation of this file.
1 <!-- Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved. -->
2 
3 @defgroup vwx_sample_opengl_interop OpenGL Interop Sample App
4 @brief OpenGL Interop Sample user guide.
5 @ingroup nvx_samples
6 @{
7 
8 <a name="Introduction">
9 ## Introduction ##
10 
11 `nvx_sample_opengl_interop` shows the interoperability of VisionWorks with OpenGL.
12 
13 `nvx_sample_opengl_interop` is installed in the following directory:
14 
15  /usr/share/visionworks/sources/samples/opengl_interop
16 
17 For the steps to build sample applications, see the @ref nvx_samples_and_demos section for your OS.
18 
19 <a name="Executing">
20 ## Executing the OpenGL Interop Sample ##
21 
22  ./nvx_sample_opengl_interop [options]
23 
24 ### Command Line Options ###
25 
26 This topic provides a list of supported options and the values they consume.
27 
28 #### \-s, \--source ####
29 - Parameter: [inputUri]
30 - Description: Specifies the input URI. Accepted parameters include a video (in .avi format), an image or an image sequence (.png, .jpg, .jpeg, .bmp, .tiff), camera to grab frames.
31 - Usage:
32 
33  - `--source=/path/to/video.avi` for video
34  - `--source=/path/to/image.png` for image
35  - `--source=/path/to/image_%04d_sequence.png` for image sequence sequence
36  - `--source=device://camera0` for the first camera
37  - `--source=device://camera1` for the second camera.
38 
39 @note The V4L platform has a permissions issue. The hardware decoder is used and the sample must be
40 executed with super user permissions, i.e., with `sudo`.
41 
42 #### \-h, \--help ####
43 - Description: Prints the help message.
44 
45 ### Operational Keys ###
46 - Use `ESC` to close the sample.
47 
48 @}