NVIDIA DeepStream SDK API Reference

4.0.1 Release

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups
Query Functions

Detailed Description

Gets information such as the batch size and the number of streams.

Functions

GstQuery * gst_nvquery_batch_size_new (void)
 Creates a new batch-size query, which can be used by elements to query upstream the number of buffers in the batched buffer. More...
 
gboolean gst_nvquery_is_batch_size (GstQuery *query)
 Determines whether a query is a batch size query. More...
 
void gst_nvquery_batch_size_set (GstQuery *query, guint batch_size)
 Sets the batch size, which is used by the elements responding to the batch size query. More...
 
gboolean gst_nvquery_batch_size_parse (GstQuery *query, guint *batch_size)
 Parses the batch size from a batch size query. More...
 
GstQuery * gst_nvquery_numStreams_size_new (void)
 Creates a number of streams query, which can be used by elements to query upstream the number of input sources. More...
 
gboolean gst_nvquery_is_numStreams_size (GstQuery *query)
 Determines whether a query is a number of streams query. More...
 
void gst_nvquery_numStreams_size_set (GstQuery *query, guint numStreams_size)
 Sets the number of input sources. More...
 
gboolean gst_nvquery_numStreams_size_parse (GstQuery *query, guint *numStreams_size)
 Parses the number of streams from a number of streams query. More...
 

Function Documentation

GstQuery* gst_nvquery_batch_size_new ( void  )

Creates a new batch-size query, which can be used by elements to query upstream the number of buffers in the batched buffer.

Returns
A pointer to the new batch size query.
gboolean gst_nvquery_batch_size_parse ( GstQuery *  query,
guint *  batch_size 
)

Parses the batch size from a batch size query.

params[in] query A batch size GstQuery. params[out] batch_size A pointer to an unsigned integer in which the function will places the batch size.

return A boolean indicating whether the query was successfully parsed.

void gst_nvquery_batch_size_set ( GstQuery *  query,
guint  batch_size 
)

Sets the batch size, which is used by the elements responding to the batch size query.

This function fails if the query is not a batch size query.

params[in] query A batch size GstQuery. params[in] batch_size The batch size to be set.

gboolean gst_nvquery_is_batch_size ( GstQuery *  query)

Determines whether a query is a batch size query.

params[in] query The GstQuery to be checked.

Returns
A boolean indicating whether the query is a batch size query.
gboolean gst_nvquery_is_numStreams_size ( GstQuery *  query)

Determines whether a query is a number of streams query.

params[in] query The GstQuery to be checked.

Returns
A boolean indicating if the query is a number of streams query.
GstQuery* gst_nvquery_numStreams_size_new ( void  )

Creates a number of streams query, which can be used by elements to query upstream the number of input sources.

Returns
A pointer to the new query.
gboolean gst_nvquery_numStreams_size_parse ( GstQuery *  query,
guint *  numStreams_size 
)

Parses the number of streams from a number of streams query.

params[in] query A number of streams GstQuery. params[out] batch_size A pointer to an unsigned integer in which the function is to place the number of streams.

return A boolean indicating if the query was successfully parsed.

void gst_nvquery_numStreams_size_set ( GstQuery *  query,
guint  numStreams_size 
)

Sets the number of input sources.

This is used by the elements responding to a number of streams query. The function fails if the query is not of the correct type.

params[in] query A number of streams GstQuery. params[in] numStreams_size The number of input sources.