Back to Jetson Inference

Jetson Inference: Utilities Library (jetson

docs/html/group__util.html

latest6.9 KB
Original Source

| | Jetson Inference

DNN Vision Library |

Modules | Macros | Functions

Utilities Library (jetson-utils)

Tools and utilities for video streaming, codecs, display, and CUDA processing. More...

|

Modules

| | | Camera Capture | | | Camera capture and streaming for MIPI CSI and V4L2 devices (deprecated).
| | | | | Codec | | | Hardware-accelerated video encoder and decoder (H.264/H.265) using GStreamer.
| | | | | Command-Line Parsing | | | Parsing of command line arguments, flags, and variables.
| | | | | CSV Parsing | | | Text file parsing for Comma-Separated Value (CSV) formats, with user-defined delimiters beyond just commas, including spaces, tabs, or other symbols.
| | | | | CUDA | | | CUDA utilities and image processing kernels.
| | | | | Filesystem | | | Functions for listing files in directories and manipulating file paths.
| | | | | Image Formats | | | Enumerations and helper functions for different types of image formats.
| | | | | Image I/O | | | Loading and saving image files from disk.
| | | | | Input | | | HID input devices including gamepad controllers, joysticks, and keyboard.
| | | | | Logging | | | Message logging with a variable level of output and destinations.
| | | | | Matrix | | | 3x3 matrix operations from mat33.h
| | | | | Multithreading | | | Mutex, events, threads, and process objects based on pthreads.
| | | | | Networking | | | TCP/UDP sockets and IP address manipulation.
| | | | | OpenGL | | | OpenGL textures and display window (X11/GLX).
| | | | | Time | | | Timestamping operations for measuring the timing of CPU code.
| | | | | Video Streaming | | | videoSource and videoOutput APIs for input and output video streams.
| | |

|

Macros

| | #define | SAFE_DELETE(x) if(x != NULL) { delete x; x = NULL; } | | | Check for non-NULL pointer before deleting it, and then set the pointer to NULL. More...
| | | | #define | SAFE_FREE(x) if(x != NULL) { free(x); x = NULL; } | | | Check for non-NULL pointer before freeing it, and then set the pointer to NULL. More...
| | | | #define | PI 3.1415926535897932384626433832795f | | | Constant representing PI. More...
| | | | #define | TWO_PI 6.283185307179586476925286766559f | | | Constant representing two PI. More...
| | | | #define | PI_OVER_TWO 1.5707963267948966192313216916398f; | | | Constant representing PI over two. More...
| | | | #define | DEG_TO_RAD 0.017453292519943295769236907684886f | | | Constant for converting from degrees to radians. More...
| | | | #define | RAD_TO_DEG 57.295779513082320876798154814105f | | | Constant for converting from radians to degrees. More...
| | |

|

Functions

| | float | randf (float range_min=0.0f, float range_max=1.0f) | | | Generate a floating-point random number within the specified range. More...
| | | | int | rand (int range_min, int range_max) | | | Generate a random integer within the specified range. More...
| | | | void | srand_time () | | | Seed the random number generator based on the system time. More...
| | |

Detailed Description

Tools and utilities for video streaming, codecs, display, and CUDA processing.

Macro Definition Documentation

DEG_TO_RAD

| #define DEG_TO_RAD 0.017453292519943295769236907684886f |

Constant for converting from degrees to radians.

PI

| #define PI 3.1415926535897932384626433832795f |

Constant representing PI.

PI_OVER_TWO

| #define PI_OVER_TWO 1.5707963267948966192313216916398f; |

Constant representing PI over two.

RAD_TO_DEG

| #define RAD_TO_DEG 57.295779513082320876798154814105f |

Constant for converting from radians to degrees.

SAFE_DELETE

| #define SAFE_DELETE | ( | | x | ) | if(x != NULL) { delete x; x = NULL; } |

Check for non-NULL pointer before deleting it, and then set the pointer to NULL.

SAFE_FREE

| #define SAFE_FREE | ( | | x | ) | if(x != NULL) { free(x); x = NULL; } |

Check for non-NULL pointer before freeing it, and then set the pointer to NULL.

TWO_PI

| #define TWO_PI 6.283185307179586476925286766559f |

Constant representing two PI.

Function Documentation

rand()

|

| int rand | ( | int | range_min, | | | | int | range_max | | | ) | | |

| inline |

Generate a random integer within the specified range.

randf()

|

| float randf | ( | float | range_min = 0.0f, | | | | float | range_max = 1.0f | | | ) | | |

| inline |

Generate a floating-point random number within the specified range.

srand_time()

|

| void srand_time | ( | | ) | |

| inline |

Seed the random number generator based on the system time.

  • Generated on Tue Mar 28 2023 14:27:58 for Jetson Inference by 1.8.17