|
NVIDIA DeepStream SDK API Reference
|
7.1 Release
|
Go to the documentation of this file.
13 #ifndef __GST_DSEXAMPLE_H__
14 #define __GST_DSEXAMPLE_H__
16 #include <gst/base/gstbasetransform.h>
17 #include <gst/video/video.h>
20 #pragma GCC diagnostic push
22 #pragma GCC diagnostic ignored "-Wclass-memaccess"
25 #include "opencv2/imgproc/imgproc.hpp"
26 #include "opencv2/highgui/highgui.hpp"
28 #pragma GCC diagnostic pop
31 #include <cuda_runtime.h>
39 #define PACKAGE "dsexample"
41 #define LICENSE "Proprietary"
42 #define DESCRIPTION "NVIDIA example plugin for integration with DeepStream on DGPU"
43 #define BINARY_PACKAGE "NVIDIA DeepStream 3rdparty IP integration example plugin"
44 #define URL "http://nvidia.com/"
53 #define GST_TYPE_DSEXAMPLE (gst_dsexample_get_type())
54 #define GST_DSEXAMPLE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_DSEXAMPLE,GstDsExample))
55 #define GST_DSEXAMPLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_DSEXAMPLE,GstDsExampleClass))
56 #define GST_DSEXAMPLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GST_TYPE_DSEXAMPLE, GstDsExampleClass))
57 #define GST_IS_DSEXAMPLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_DSEXAMPLE))
58 #define GST_IS_DSEXAMPLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_DSEXAMPLE))
59 #define GST_DSEXAMPLE_CAST(obj) ((GstDsExample *)(obj))
62 #define NVDSEXAMPLE_MAX_BATCH_SIZE 1024
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.
guint max_batch_size
Maximum batch size.
GstBaseTransformClass parent_class
guint64 frame_num
Frame number of the current input buffer.
NvBufSurfTransformConfigParams transform_config_params
Config params required by NvBufSurfTransform API.
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)