NVIDIA DeepStream SDK API Reference

6.4 Release
deepstream_asr_tts_app.h File Reference

Go to the source code of this file.

Data Structures

struct  __StreamCtx
 
struct  __AppCtx
 

Macros

#define CHECK_PTR(ptr)
 
#define MAX_FILENAME_LENGTH   (256)
 
#define MUX_AUDIO_VIDEO_OUT
 
#define LINK_REQUEST_PAD_STATIC_PAD(src, srcpadname, sink, sinkpadname)
 
#define LINK_STATIC_PAD_REQUEST_PAD(src, srcpadname, sink, sinkpadname)
 
#define ATTACH_STATIC_PAD_PROBE(element, padname, probe_type, probe, dataptr)
 

Typedefs

typedef struct __StreamCtx StreamCtx
 
typedef struct __AppCtx AppCtx
 

Functions

int create_pipeline (AppCtx *appctx, int stream_num, StreamCtx *sctx, GstElement **p_proxy_audio_sink)
 
int create_renderer_pipeline (AppCtx *appctx)
 
int start_pipeline (int stream_num, StreamCtx *sctx)
 
int destroy_pipeline (StreamCtx *sctx)
 
guint get_num_sources (gchar *cfg_file_path)
 
gboolean parse_config_file (AppCtx *appctx, gchar *config_file)
 
G_BEGIN_DECLS guint get_num_sources_yaml (gchar *cfg_file_path)
 
gboolean parse_config_file_yaml (AppCtx *appctx, gchar *config_file)
 

Macro Definition Documentation

◆ ATTACH_STATIC_PAD_PROBE

#define ATTACH_STATIC_PAD_PROBE (   element,
  padname,
  probe_type,
  probe,
  dataptr 
)
Value:
{ \
GstPad *pad = gst_element_get_static_pad (element, padname); \
if (!pad) { \
g_printerr ("Get pad failed for %s %s. Exiting.\n",#element, padname); \
return -1; \
} \
gst_pad_add_probe (pad, probe_type, probe, dataptr, NULL); \
gst_object_unref (pad); \
}

Definition at line 87 of file deepstream_asr_tts_app.h.

◆ CHECK_PTR

#define CHECK_PTR (   ptr)
Value:
if(ptr == NULL) \
{ \
return -1; \
}

Definition at line 34 of file deepstream_asr_tts_app.h.

◆ LINK_REQUEST_PAD_STATIC_PAD

#define LINK_REQUEST_PAD_STATIC_PAD (   src,
  srcpadname,
  sink,
  sinkpadname 
)
Value:
{ \
GstPad *srcpad = gst_element_request_pad_simple (src, srcpadname); \
if (!srcpad) { \
g_printerr ("%s source pad %s request failed.\n", #src, #srcpadname); \
return -1; \
} \
GstPad *sinkpad = gst_element_get_static_pad (sink, sinkpadname); \
if (!sinkpad) { \
g_printerr ("%s sink pad %s request failed.\n", #sink, #sinkpadname); \
return -1; \
} \
\
if (gst_pad_link (srcpad, sinkpad) != GST_PAD_LINK_OK) { \
g_printerr ("Failed to link %s to %s\n", #src, #sink); \
return -1; \
} \
gst_object_unref (srcpad); \
gst_object_unref (sinkpad); \
}

Definition at line 44 of file deepstream_asr_tts_app.h.

◆ LINK_STATIC_PAD_REQUEST_PAD

#define LINK_STATIC_PAD_REQUEST_PAD (   src,
  srcpadname,
  sink,
  sinkpadname 
)
Value:
{ \
GstPad *srcpad = gst_element_get_static_pad (src, srcpadname); \
if (!srcpad) { \
g_printerr ("%s source pad %s request failed.\n", #src, #srcpadname); \
return -1; \
} \
GstPad *sinkpad = gst_element_request_pad_simple (sink, sinkpadname); \
if (!sinkpad) { \
g_printerr ("%s sink pad %s request failed.\n", #sink, #sinkpadname); \
return -1; \
} \
\
if (gst_pad_link (srcpad, sinkpad) != GST_PAD_LINK_OK) { \
g_printerr ("Failed to link %s to %s\n", #src, #sink); \
return -1; \
} \
gst_object_unref (srcpad); \
gst_object_unref (sinkpad); \
}

Definition at line 66 of file deepstream_asr_tts_app.h.

◆ MAX_FILENAME_LENGTH

#define MAX_FILENAME_LENGTH   (256)

Definition at line 40 of file deepstream_asr_tts_app.h.

◆ MUX_AUDIO_VIDEO_OUT

#define MUX_AUDIO_VIDEO_OUT

Definition at line 41 of file deepstream_asr_tts_app.h.

Typedef Documentation

◆ AppCtx

typedef struct __AppCtx AppCtx

◆ StreamCtx

typedef struct __StreamCtx StreamCtx

Function Documentation

◆ create_pipeline()

int create_pipeline ( AppCtx appctx,
int  stream_num,
StreamCtx sctx,
GstElement **  p_proxy_audio_sink 
)

◆ create_renderer_pipeline()

int create_renderer_pipeline ( AppCtx appctx)

◆ destroy_pipeline()

int destroy_pipeline ( StreamCtx sctx)

◆ get_num_sources()

guint get_num_sources ( gchar *  cfg_file_path)

◆ get_num_sources_yaml()

G_BEGIN_DECLS guint get_num_sources_yaml ( gchar *  cfg_file_path)

◆ parse_config_file()

gboolean parse_config_file ( AppCtx appctx,
gchar *  config_file 
)

◆ parse_config_file_yaml()

gboolean parse_config_file_yaml ( AppCtx appctx,
gchar *  config_file 
)

◆ start_pipeline()

int start_pipeline ( int  stream_num,
StreamCtx sctx 
)