|
|
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))
119 gfloat dstPrincipalPoint[2];
guint spotCSVInit
Boolean indicating whether the spot surface is initialized from CSV data.
NvBufSurfTransform_Inter interpolation_method
Interpolation method for scaling.
Data structure contaning dewarping parameters for all the output surfaces.
gchar * config_file
String contaning path and name of configuration file.
struct _NvDewarperParams NvDewarperParams
Holds all the configuration parameters required for dewarping a surface.
Class for parsing of Aisle CSV data.
guint input_width
Input frame width.
GstCaps * srccaps
Source pad caps.
#define DISTORTION_SIZE
Maximum number of distortion coefficients.
GstBuffer * out_gst_buf
Pointer to the output buffer.
guint rot_matrix_valid
Boolean indicating if the values in "rot_matrix" are valid.
guint gpu_id
ID of the GPU this element uses for dewarping/scaling.
guint num_spot_views
Number of spot views.
void * aisle_output
Placeholder for aisle output host memory pointer.
SpotCSVParser * spotCSVParser
CSV parsed structure for spot calibration.
AisleCSVParser * aisleCSVParser
CSV parsed structure for aisle calibration.
gfloat roll
The roll angle, in degrees.
gfloat src_y0
source principal point in Y direction
guint aisleCSVInit
Boolean indicating whether the aisle surface is initialized from CSV data.
gboolean silent
Boolean indicating swtiching on/off of verbose output.
void * spot_output
Placeholder for spot output host memory pointer.
GstVideoFormat input_fmt
Input stream format derived from sink caps.
guint dewarpWidth
Dewarped Surface width.
GType gst_nvdewarper_get_type(void)
guint output_height
Output frame height.
GstBaseTransformClass parent_class
GstVideoFormat output_fmt
Output stream format derived from src caps.
gfloat top_angle
The top view angle, in degrees.
guint dewarpPitch
Dewarped Surface pitch.
#define MAX_DEWARPED_VIEWS
Maximum number of dewarped surfaces per frame supported.
NvDewarperPriv * priv
Pointer to private data structure contaning dewarping parameters for all the output surfaces.
Holds all the configuration parameters required for dewarping a surface.
guint source_id
Source ID of the input source.
guint num_output_buffers
Number of Output Buffers to be allocated by buffer pool.
void * output
Host memory pointer for output buffer.
guchar * surface
Pointer to Cuda Surface used for Projection.
gint input_feature
Input memory feature can take values MEM_FEATURE_NVMM/MEM_FEATURE_RAW based on input memory type caps...
struct _NvDewarperPriv NvDewarperPriv
Data structure contaning dewarping parameters for all the output surfaces.
guint projection_type
Projection type of type NvDsSurfaceType.
guint frame_num
Number of the frame in the stream that was last processed.
guint surface_index
Surface index.
GstBaseTransform element
Should be the first member when extending from GstBaseTransform.
gboolean spot_calibrationfile_set
Boolean indicating whether the spot calibration file is specified.
NvBufSurfaceMemType
Specifies memory types for NvBufSurface.
GstCaps * sinkcaps
Sink pad caps.
guint addressMode
Cuda Texture Address Mode.
Class for parsing of Spot CSV data.
gfloat srcFov
Source field of view.
guint input_height
Input frame height.
std::vector< NvDewarperParams > vecDewarpSurface
Array of surface parameters of type "NvDewarperParams".
guint num_aisle_views
Number of aisle views.
gboolean aisle_calibrationfile_set
Boolean indicating whether the aisle calibration file is specified.
gchar * spot_calibration_file
String contaning path and name of spot calibration file.
guint output_width
Output frame width.
gfloat bottom_angle
The bottom view angle, in degrees.
GstBufferPool * pool
Internal buffer pool for output buffers
NvBufSurfTransform_Inter
Specifies video interpolation methods.
guint dewarpHeight
Dewarped Surface height.
cudaStream_t stream
Cuda Stream to launch operations on.
gchar * aisle_calibration_file
String contaning path and name of aisle calibration file.
guint num_batch_buffers
Number of batch buffers.
gfloat yaw
The yaw angle, in degrees.
NvBufSurfaceMemType cuda_mem_type
Cuda surface memory type set by "nvbuf-memory-type".
#define FOCAL_LENGTH_SIZE
Focal length array size : two values for X & Y direction.
#define ROTATION_MATRIX_SIZE
Standard rotation matrix size.
gfloat pitch
The pitch angle, in degrees.
gfloat src_x0
source principal point in X direction
gfloat control
Projection-specific controls for Panini, Stereographic and Pushbroom projections.
guint dump_frames
Number of dewarped output frames to be dumped in a *.rgba file.
Gstnvdewarper element structure.
struct _GstBuffer GstBuffer
gint output_feature
Output memory feature can take values MEM_FEATURE_NVMM/MEM_FEATURE_RAW based on output memory type ca...
guint isValid
Boolean indicating if the surface parameters structure is valid.