|
|
NVIDIA DeepStream SDK API Reference
|
9.0 Release
|
Go to the documentation of this file.
32 #ifndef __GST_NVDEWARPER_H__
33 #define __GST_NVDEWARPER_H__
36 #include <gst/video/gstvideometa.h>
37 #include <gst/video/video.h>
38 #include <gst/base/gstbasetransform.h>
43 #include "nv_aisle_csvparser.hpp"
44 #include "nv_spot_csvparser.hpp"
45 #include "gstnvdsmeta.h"
46 #include "nvds_dewarper_meta.h"
47 #include "nvbufsurface.h"
48 #include "nvbufsurftransform.h"
53 #define DISTORTION_SIZE 5
54 #define FOCAL_LENGTH_SIZE 2
55 #define ROTATION_MATRIX_SIZE 9
63 #define GST_TYPE_NVDEWARPER \
64 (gst_nvdewarper_get_type())
65 #define GST_NVDEWARPER(obj) \
66 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_NVDEWARPER,Gstnvdewarper))
67 #define GST_NVDEWARPER_CLASS(klass) \
68 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_NVDEWARPER,GstnvdewarperClass))
69 #define GST_IS_NVDEWARPER(obj) \
70 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_NVDEWARPER))
71 #define GST_IS_NVDEWARPER_CLASS(klass) \
72 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_NVDEWARPER))
85 guint projection_type;
116 guint rot_matrix_valid;
119 gfloat dstPrincipalPoint[2];
125 std::vector<NvDewarperParams> vecDewarpSurface;
133 GstBaseTransform element;
143 guint num_batch_buffers;
147 gchar* spot_calibration_file;
148 gchar* aisle_calibration_file;
161 GstVideoFormat input_fmt;
162 GstVideoFormat output_fmt;
174 gboolean spot_calibrationfile_set;
175 gboolean aisle_calibrationfile_set;
180 guint num_output_buffers;
183 guint num_spot_views;
184 guint num_aisle_views;
198 GstBaseTransformClass parent_class;
#define ROTATION_MATRIX_SIZE
Standard rotation matrix size.
Data structure contaning dewarping parameters for all the output surfaces.
Class for parsing of Aisle CSV data.
#define MAX_DEWARPED_VIEWS
Maximum number of dewarped surfaces per frame supported.
Holds all the configuration parameters required for dewarping a surface.
#define DISTORTION_SIZE
Maximum number of distortion coefficients.
NvBufSurfaceMemType
Specifies memory types for NvBufSurface.
Class for parsing of Spot CSV data.
GType gst_nvdewarper_get_type(void)
struct _NvDewarperPriv NvDewarperPriv
Data structure contaning dewarping parameters for all the output surfaces.
#define FOCAL_LENGTH_SIZE
Focal length array size : two values for X & Y direction.
NvBufSurfTransform_Inter
Specifies video interpolation methods.
struct _NvDewarperParams NvDewarperParams
Holds all the configuration parameters required for dewarping a surface.
Gstnvdewarper element structure.
struct _GstBuffer GstBuffer