NVIDIA DeepStream SDK API Reference

9.1 Release
sources/includes/gst-nvquery-internal.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2018-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: Apache-2.0
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 #ifndef __GST_NVQUERY_INT_H__
19 #define __GST_NVQUERY_INT_H__
20 
21 #include <gst/gst.h>
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 typedef struct
28 {
29  GstClockTime ntp_time_epoch_ns;
30  GstClockTime frame_timestamp;
31  GstClockTime avg_frame_time;
32 } _NtpData;
33 
34 GstQuery * gst_nvquery_nppstream_new (void);
35 gboolean gst_nvquery_is_nppstream (GstQuery * query);
36 void gst_nvquery_nppstream_set (GstQuery * query, gpointer cudastream);
37 gboolean gst_nvquery_nppstream_parse (GstQuery * query, gpointer cudastreamptr);
38 
39 GstQuery * gst_nvquery_resolution_new (void);
40 gboolean gst_nvquery_is_resolution (GstQuery * query);
41 void gst_nvquery_resolution_set (GstQuery * query, guint width, guint height);
42 gboolean gst_nvquery_resolution_parse (GstQuery * query, guint * width, guint * height);
43 
44 GstQuery * gst_nvquery_stream_caps_new (guint streamId);
45 gboolean gst_nvquery_is_stream_caps (GstQuery * query);
46 void gst_nvquery_stream_caps_set (GstQuery * query, GstCaps* caps);
47 gboolean gst_nvquery_stream_caps_parse_streamid (GstQuery * query, guint * streamid);
48 gboolean gst_nvquery_stream_caps_parse (GstQuery * query, GstStructure** str);
49 
51 gboolean gst_nvquery_is_num_surfaces_per_buffer (GstQuery * query);
52 void gst_nvquery_num_surfaces_per_buffer_set (GstQuery * query, guint num_surfaces_per_buffers);
53 gboolean gst_nvquery_num_surfaces_per_buffer_parse (GstQuery * query, guint * num_surfaces_per_buffers);
54 
55 GstQuery * gst_nvquery_ntp_sync_new (void);
56 gboolean gst_nvquery_is_ntp_sync (GstQuery * query);
57 gboolean gst_nvquery_ntp_sync_parse (GstQuery * query, _NtpData *ntp_data);
58 void gst_nvquery_ntp_sync_set (GstQuery * query, _NtpData *ntp_data);
59 
60 GstQuery * gst_nvquery_uri_from_streamid_new (guint streamid);
61 gboolean gst_nvquery_is_uri_from_streamid (GstQuery * query);
62 void gst_nvquery_uri_from_streamid_set (GstQuery * query, const gchar *uri);
63 gboolean gst_nvquery_uri_from_streamid_parse (GstQuery * query, const gchar **uri);
64 gboolean gst_nvquery_uri_from_streamid_parse_streamid (GstQuery * query, guint *streamid);
65 
66 GstQuery * gst_nvquery_sourceid_new (void);
67 gboolean gst_nvquery_is_sourceid (GstQuery * query);
68 gboolean gst_nvquery_sourceid_parse (GstQuery * query, guint *sourceid);
69 void gst_nvquery_sourceid_set (GstQuery * query, guint sourceid);
70 
71 #ifdef __cplusplus
72 }
73 #endif
74 
75 #endif
gst_nvquery_is_sourceid
gboolean gst_nvquery_is_sourceid(GstQuery *query)
_NtpData::avg_frame_time
GstClockTime avg_frame_time
Definition: sources/includes/gst-nvquery-internal.h:31
gst_nvquery_num_surfaces_per_buffer_parse
gboolean gst_nvquery_num_surfaces_per_buffer_parse(GstQuery *query, guint *num_surfaces_per_buffers)
gst_nvquery_ntp_sync_set
void gst_nvquery_ntp_sync_set(GstQuery *query, _NtpData *ntp_data)
gst_nvquery_is_resolution
gboolean gst_nvquery_is_resolution(GstQuery *query)
gst_nvquery_uri_from_streamid_parse
gboolean gst_nvquery_uri_from_streamid_parse(GstQuery *query, const gchar **uri)
gst_nvquery_resolution_parse
gboolean gst_nvquery_resolution_parse(GstQuery *query, guint *width, guint *height)
gst_nvquery_stream_caps_set
void gst_nvquery_stream_caps_set(GstQuery *query, GstCaps *caps)
gst_nvquery_uri_from_streamid_new
GstQuery * gst_nvquery_uri_from_streamid_new(guint streamid)
gst_nvquery_nppstream_set
void gst_nvquery_nppstream_set(GstQuery *query, gpointer cudastream)
gst_nvquery_uri_from_streamid_parse_streamid
gboolean gst_nvquery_uri_from_streamid_parse_streamid(GstQuery *query, guint *streamid)
gst_nvquery_nppstream_new
GstQuery * gst_nvquery_nppstream_new(void)
gst_nvquery_resolution_new
GstQuery * gst_nvquery_resolution_new(void)
gst_nvquery_stream_caps_parse_streamid
gboolean gst_nvquery_stream_caps_parse_streamid(GstQuery *query, guint *streamid)
gst_nvquery_uri_from_streamid_set
void gst_nvquery_uri_from_streamid_set(GstQuery *query, const gchar *uri)
gst_nvquery_num_surfaces_per_buffer_new
GstQuery * gst_nvquery_num_surfaces_per_buffer_new(void)
gst_nvquery_ntp_sync_parse
gboolean gst_nvquery_ntp_sync_parse(GstQuery *query, _NtpData *ntp_data)
_NtpData::ntp_time_epoch_ns
GstClockTime ntp_time_epoch_ns
Definition: sources/includes/gst-nvquery-internal.h:29
gst_nvquery_is_ntp_sync
gboolean gst_nvquery_is_ntp_sync(GstQuery *query)
gst_nvquery_resolution_set
void gst_nvquery_resolution_set(GstQuery *query, guint width, guint height)
gst_nvquery_nppstream_parse
gboolean gst_nvquery_nppstream_parse(GstQuery *query, gpointer cudastreamptr)
gst_nvquery_stream_caps_parse
gboolean gst_nvquery_stream_caps_parse(GstQuery *query, GstStructure **str)
gst_nvquery_is_uri_from_streamid
gboolean gst_nvquery_is_uri_from_streamid(GstQuery *query)
gst_nvquery_is_num_surfaces_per_buffer
gboolean gst_nvquery_is_num_surfaces_per_buffer(GstQuery *query)
gst_nvquery_sourceid_set
void gst_nvquery_sourceid_set(GstQuery *query, guint sourceid)
gst_nvquery_sourceid_new
GstQuery * gst_nvquery_sourceid_new(void)
NvDsServerAppInstanceInfo::uri
std::string uri
Definition: sources/includes/nvds_rest_server.h:449
gst_nvquery_stream_caps_new
GstQuery * gst_nvquery_stream_caps_new(guint streamId)
gst_nvquery_is_stream_caps
gboolean gst_nvquery_is_stream_caps(GstQuery *query)
gst_nvquery_sourceid_parse
gboolean gst_nvquery_sourceid_parse(GstQuery *query, guint *sourceid)
gst_nvquery_num_surfaces_per_buffer_set
void gst_nvquery_num_surfaces_per_buffer_set(GstQuery *query, guint num_surfaces_per_buffers)
_NtpData::frame_timestamp
GstClockTime frame_timestamp
Definition: sources/includes/gst-nvquery-internal.h:30
_NtpData
Definition: sources/includes/gst-nvquery-internal.h:27
gst_nvquery_is_nppstream
gboolean gst_nvquery_is_nppstream(GstQuery *query)
gst_nvquery_ntp_sync_new
GstQuery * gst_nvquery_ntp_sync_new(void)