|
NVIDIA DeepStream SDK API Reference
|
6.4 Release
|
Go to the documentation of this file.
23 #ifndef __GST_DSEXAMPLE_H__
24 #define __GST_DSEXAMPLE_H__
26 #include <gst/base/gstbasetransform.h>
27 #include <gst/video/video.h>
30 #pragma GCC diagnostic push
32 #pragma GCC diagnostic ignored "-Wclass-memaccess"
35 #include "opencv2/imgproc/imgproc.hpp"
36 #include "opencv2/highgui/highgui.hpp"
38 #pragma GCC diagnostic pop
41 #include <cuda_runtime.h>
49 #define PACKAGE "dsexample"
51 #define LICENSE "Proprietary"
52 #define DESCRIPTION "NVIDIA example plugin for integration with DeepStream on DGPU"
53 #define BINARY_PACKAGE "NVIDIA DeepStream 3rdparty IP integration example plugin"
54 #define URL "http://nvidia.com/"
63 #define GST_TYPE_DSEXAMPLE (gst_dsexample_get_type())
64 #define GST_DSEXAMPLE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_DSEXAMPLE,GstDsExample))
65 #define GST_DSEXAMPLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_DSEXAMPLE,GstDsExampleClass))
66 #define GST_DSEXAMPLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GST_TYPE_DSEXAMPLE, GstDsExampleClass))
67 #define GST_IS_DSEXAMPLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_DSEXAMPLE))
68 #define GST_IS_DSEXAMPLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_DSEXAMPLE))
69 #define GST_DSEXAMPLE_CAST(obj) ((GstDsExample *)(obj))
struct DsExampleCtx DsExampleCtx
gboolean process_full_frame
Boolean indicating if entire frame or cropped objects should be processed.
Holds information about batched buffers.
gint processing_width
Resolution at which frames/objects should be processed.
GstVideoInfo video_info
Input video info (resolution, color format, framerate, etc)
typedefG_BEGIN_DECLS struct _GstDsExample GstDsExample
guint gpu_id
GPU ID on which we expect to execute the task.
cudaStream_t cuda_stream
CUDA Stream used for allocating the CUDA task.
GstBaseTransformClass parent_class
guint64 frame_num
Frame number of the current input buffer.
guint unique_id
Unique ID of the element.
NvBufSurface * inter_buf
the intermediate scratch buffer for conversions RGBA
GstBaseTransform base_trans
DsExampleCtx * dsexamplelib_ctx
Context of the custom algorithm library.
GType gst_dsexample_get_type(void)