VisionWorks Toolkit Reference

April 8, 2016 | 1.4 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:///v4l2?index=0"` for the first V4L2 camera
37  - `--source="device:///v4l2?index=1"` for the second V4L2 camera.
38  - `--source="device:///nvcamera?index=0"` for the GStreamer NVIDIA camera (Jetson TX1 only).
39  - `--source="device:///nvmedia?config=dvp-ov10635-yuv422-ab-e2379&number=4"` for the GStreamer NVIDIA camera (Vibrante for Linux only).
40 
41 @note The V4L platform has a permissions issue. The hardware decoder is used and the sample must be
42 executed with super user permissions, i.e., with `sudo`.
43 
44 #### \-h, \--help ####
45 - Description: Prints the help message.
46 
47 ### Operational Keys ###
48 - Use `ESC` to close the sample.
49 
50 @}