|
NVIDIA DeepStream SDK API Reference
|
7.1 Release
|
Go to the documentation of this file.
14 #ifndef __DEEPSTREAM_TTS_APP_H_
15 #define __DEEPSTREAM_TTS_APP_H_
18 #include <gst/audio/audio.h>
24 #define CHECK_PTR(ptr) \
30 #define MAX_FILENAME_LENGTH (256)
31 #define MUX_AUDIO_VIDEO_OUT
34 #define LINK_REQUEST_PAD_STATIC_PAD(src, srcpadname, sink, sinkpadname) \
36 GstPad *srcpad = gst_element_request_pad_simple (src, srcpadname); \
38 g_printerr ("%s source pad %s request failed.\n", #src, #srcpadname); \
41 GstPad *sinkpad = gst_element_get_static_pad (sink, sinkpadname); \
43 g_printerr ("%s sink pad %s request failed.\n", #sink, #sinkpadname); \
47 if (gst_pad_link (srcpad, sinkpad) != GST_PAD_LINK_OK) { \
48 g_printerr ("Failed to link %s to %s\n", #src, #sink); \
51 gst_object_unref (srcpad); \
52 gst_object_unref (sinkpad); \
56 #define LINK_STATIC_PAD_REQUEST_PAD(src, srcpadname, sink, sinkpadname) \
58 GstPad *srcpad = gst_element_get_static_pad (src, srcpadname); \
60 g_printerr ("%s source pad %s request failed.\n", #src, #srcpadname); \
63 GstPad *sinkpad = gst_element_request_pad_simple (sink, sinkpadname); \
65 g_printerr ("%s sink pad %s request failed.\n", #sink, #sinkpadname); \
69 if (gst_pad_link (srcpad, sinkpad) != GST_PAD_LINK_OK) { \
70 g_printerr ("Failed to link %s to %s\n", #src, #sink); \
73 gst_object_unref (srcpad); \
74 gst_object_unref (sinkpad); \
77 #define ATTACH_STATIC_PAD_PROBE(element, padname, probe_type, probe, dataptr) \
79 GstPad *pad = gst_element_get_static_pad (element, padname); \
81 g_printerr ("Get pad failed for %s %s. Exiting.\n",#element, padname); \
84 gst_pad_add_probe (pad, probe_type, probe, dataptr, NULL); \
85 gst_object_unref (pad); \
120 GstElement **p_proxy_audio_sink);
GstElement * input_downmixer
GstElement * asr_pipeline
REST server application context.
GstElement ** proxy_audio_sinks
gboolean parse_config_file(AppCtx *appctx, gchar *config_file)
const char * playback_output_file_name
int create_pipeline(AppCtx *appctx, int stream_num, StreamCtx *sctx, GstElement **p_proxy_audio_sink)
G_BEGIN_DECLS guint get_num_sources_yaml(gchar *cfg_file_path)
gboolean parse_config_file_yaml(AppCtx *appctx, gchar *config_file)
guint get_num_sources(gchar *cfg_file_path)
int destroy_pipeline(StreamCtx *sctx)
GstElement ** proxy_audio_sources
int start_pipeline(int stream_num, StreamCtx *sctx)
int create_renderer_pipeline(AppCtx *appctx)
NvDsAudioConfig audio_config
struct __StreamCtx StreamCtx
GstElement * renderer_pipeline