|
NVIDIA DeepStream SDK API Reference
|
8.0 Release
|
Go to the documentation of this file.
13 #ifndef __GST_DSEXAMPLE_CUDA_H__
14 #define __GST_DSEXAMPLE_CUDA_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"
27 #include "opencv2/core/cuda.hpp"
28 #include "opencv2/cudaimgproc.hpp"
29 #include "opencv2/cudafilters.hpp"
31 #pragma GCC diagnostic pop
34 #include <cuda_runtime.h>
39 #include "dsexample_lib/dsexample_lib.h"
42 #define PACKAGE "dsexample"
44 #define LICENSE "Proprietary"
45 #define DESCRIPTION "NVIDIA example plugin for integration with DeepStream on DGPU"
46 #define BINARY_PACKAGE "NVIDIA DeepStream 3rdparty IP integration example plugin"
47 #define URL "http://nvidia.com/"
56 #define GST_TYPE_DSEXAMPLE (gst_dsexample_get_type())
57 #define GST_DSEXAMPLE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_DSEXAMPLE,GstDsExample))
58 #define GST_DSEXAMPLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_DSEXAMPLE,GstDsExampleClass))
59 #define GST_DSEXAMPLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GST_TYPE_DSEXAMPLE, GstDsExampleClass))
60 #define GST_IS_DSEXAMPLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_DSEXAMPLE))
61 #define GST_IS_DSEXAMPLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_DSEXAMPLE))
62 #define GST_DSEXAMPLE_CAST(obj) ((GstDsExample *)(obj))
65 #define NVDSEXAMPLE_MAX_BATCH_SIZE 1024
92 cv::cuda::GpuMat *cvgpumat;
GType gst_dsexample_get_type(void)
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.
struct DsExampleCtx DsExampleCtx
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.