NVIDIA DeepStream SDK API Reference

8.0 Release
gstnvdsudpcommon.h File Reference

Go to the source code of this file.

Data Structures

struct  _GstRTPTimestampMeta
 

Macros

#define CHECK_CUDA(err, err_str)
 
#define INVALID_STREAM_ID   ((rmax_stream_id)-1L)
 
#define MAX_ST2022_7_STREAMS   2
 
#define round_up(num, round)   ((((num) + (round) - 1) / (round)) * (round))
 
#define LEAP_SECONDS   (37)
 
#define DEFAULT_PTP_SRC   NULL
 

Typedefs

typedef enum StreamType StreamType
 
typedef enum VideoType VideoType
 
typedef enum MemoryType MemoryType
 
typedef struct _GstRTPTimestampMeta GstRTPTimestampMeta
 

Enumerations

enum  StreamType {
  VIDEO_2110_20_STREAM,
  VIDEO_2110_22_STREAM,
  AUDIO_2110_30_31_STREAM,
  ANCILLARY_2110_40_STREAM,
  APPLICATION_CUSTOM_STREAM
}
 
enum  VideoType {
  PROGRESSIVE = 1,
  INTERLACE = 2
}
 
enum  MemoryType {
  MEM_TYPE_HOST,
  MEM_TYPE_DEVICE,
  MEM_TYPE_SYSTEM,
  MEM_TYPE_UNKNOWN
}
 

Functions

gboolean gst_udp_parse_uri (const gchar *uristr, gchar **host, guint16 *port)
 
GInetAddress * gst_udp_resolve_name (gpointer obj, const gchar *address)
 
GType gst_rtp_timestamp_meta_api_get_type (void)
 
const GstMetaInfo * gst_rtp_timestamp_meta_get_info (void)
 
GstRTPTimestampMetagst_buffer_add_rtp_timestamp_meta (GstBuffer *buffer, guint32 timestamp)
 
GstRTPTimestampMetagst_buffer_get_rtp_timestamp_meta (GstBuffer *buffer)
 
void * gpu_allocate_memory (int gpuId, size_t size, size_t align)
 
size_t gpu_aligned_size (int gpuId, size_t allocSize)
 
gboolean cudaFreeMmap (uint64_t *ptr, size_t size)
 

Macro Definition Documentation

◆ CHECK_CUDA

#define CHECK_CUDA (   err,
  err_str 
)
Value:
do { \
if ((err) != cudaSuccess) { \
GST_WARNING (err_str ", cuda err: %s", cudaGetErrorName (err)); \
return FALSE; \
} \
} while (0)

Definition at line 21 of file gstnvdsudpcommon.h.

◆ DEFAULT_PTP_SRC

#define DEFAULT_PTP_SRC   NULL

Definition at line 62 of file gstnvdsudpcommon.h.

◆ INVALID_STREAM_ID

#define INVALID_STREAM_ID   ((rmax_stream_id)-1L)

Definition at line 29 of file gstnvdsudpcommon.h.

◆ LEAP_SECONDS

#define LEAP_SECONDS   (37)

Definition at line 61 of file gstnvdsudpcommon.h.

◆ MAX_ST2022_7_STREAMS

#define MAX_ST2022_7_STREAMS   2

Definition at line 30 of file gstnvdsudpcommon.h.

◆ round_up

#define round_up (   num,
  round 
)    ((((num) + (round) - 1) / (round)) * (round))

Definition at line 32 of file gstnvdsudpcommon.h.

Typedef Documentation

◆ GstRTPTimestampMeta

Definition at line 65 of file gstnvdsudpcommon.h.

◆ MemoryType

typedef enum MemoryType MemoryType

◆ StreamType

typedef enum StreamType StreamType

◆ VideoType

typedef enum VideoType VideoType

Enumeration Type Documentation

◆ MemoryType

enum MemoryType
Enumerator
MEM_TYPE_HOST 
MEM_TYPE_DEVICE 
MEM_TYPE_SYSTEM 
MEM_TYPE_UNKNOWN 

Definition at line 48 of file gstnvdsudpcommon.h.

◆ StreamType

enum StreamType
Enumerator
VIDEO_2110_20_STREAM 
VIDEO_2110_22_STREAM 
AUDIO_2110_30_31_STREAM 
ANCILLARY_2110_40_STREAM 
APPLICATION_CUSTOM_STREAM 

Definition at line 35 of file gstnvdsudpcommon.h.

◆ VideoType

enum VideoType
Enumerator
PROGRESSIVE 
INTERLACE 

Definition at line 43 of file gstnvdsudpcommon.h.

Function Documentation

◆ cudaFreeMmap()

gboolean cudaFreeMmap ( uint64_t *  ptr,
size_t  size 
)

◆ gpu_aligned_size()

size_t gpu_aligned_size ( int  gpuId,
size_t  allocSize 
)

◆ gpu_allocate_memory()

void* gpu_allocate_memory ( int  gpuId,
size_t  size,
size_t  align 
)

◆ gst_buffer_add_rtp_timestamp_meta()

GstRTPTimestampMeta* gst_buffer_add_rtp_timestamp_meta ( GstBuffer buffer,
guint32  timestamp 
)

◆ gst_buffer_get_rtp_timestamp_meta()

GstRTPTimestampMeta* gst_buffer_get_rtp_timestamp_meta ( GstBuffer buffer)

◆ gst_rtp_timestamp_meta_api_get_type()

GType gst_rtp_timestamp_meta_api_get_type ( void  )

◆ gst_rtp_timestamp_meta_get_info()

const GstMetaInfo* gst_rtp_timestamp_meta_get_info ( void  )

◆ gst_udp_parse_uri()

gboolean gst_udp_parse_uri ( const gchar *  uristr,
gchar **  host,
guint16 *  port 
)

◆ gst_udp_resolve_name()

GInetAddress* gst_udp_resolve_name ( gpointer  obj,
const gchar *  address 
)