|
NVIDIA DeepStream SDK API Reference
|
7.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>
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.
GstCaps * srccaps
Source pad caps.
struct _NvDewarperPriv NvDewarperPriv
Data structure contaning dewarping parameters for all the output surfaces.
#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.
guint input_width
Input frame width.
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.
guchar * surface
Pointer to Cuda Surface used for Projection.
GstBuffer * out_gst_buf
Pointer to the output buffer.
gfloat roll
The roll angle, in degrees.
gfloat src_y0
source principal point in Y direction
GstCaps * sinkcaps
Sink pad caps.
guint aisleCSVInit
Boolean indicating whether the aisle surface is initialized from CSV data.
gboolean silent
Boolean indicating swtiching on/off of verbose output.
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.
AisleCSVParser * aisleCSVParser
CSV parsed structure for aisle calibration.
guint dewarpPitch
Dewarped Surface pitch.
#define MAX_DEWARPED_VIEWS
Maximum number of dewarped surfaces per frame supported.
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.
NvDewarperPriv * priv
Pointer to private data structure contaning dewarping parameters for all the output surfaces.
SPDX-FileCopyrightText: Copyright (c) 2018 NVIDIA CORPORATION & AFFILIATES.
struct _NvDewarperParams NvDewarperParams
Holds all the configuration parameters required for dewarping a surface.
gint input_feature
Input memory feature can take values MEM_FEATURE_NVMM/MEM_FEATURE_RAW based on input memory type caps...
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.
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.
guint num_aisle_views
Number of aisle views.
gboolean aisle_calibrationfile_set
Boolean indicating whether the aisle calibration file is specified.
guint output_width
Output frame width.
gfloat bottom_angle
The bottom view angle, in degrees.
void * spot_output
Placeholder for spot output host memory pointer.
NvBufSurfTransform_Inter
Specifies video interpolation methods.
guint dewarpHeight
Dewarped Surface height.
struct _GstBuffer GstBuffer
cudaStream_t stream
Cuda Stream to launch operations on.
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".
std::vector< NvDewarperParams > vecDewarpSurface
Array of surface parameters of type "NvDewarperParams".
gchar * aisle_calibration_file
String contaning path and name of aisle calibration file.
SPDX-FileCopyrightText: Copyright (c) 2018 NVIDIA CORPORATION & AFFILIATES.
GstBufferPool * pool
Internal buffer pool for output buffers
gfloat pitch
The pitch angle, in degrees.
gfloat src_x0
source principal point in X direction
#define DISTORTION_SIZE
Maximum number of distortion coefficients.
gfloat control
Projection-specific controls for Panini, Stereographic and Pushbroom projections.
#define FOCAL_LENGTH_SIZE
Focal length array size : two values for X & Y direction.
guint dump_frames
Number of dewarped output frames to be dumped in a *.rgba file.
Gstnvdewarper element structure.
gchar * spot_calibration_file
String contaning path and name of spot calibration file.
void * output
Host memory pointer for output buffer.
SpotCSVParser * spotCSVParser
CSV parsed structure for spot calibration.
gchar * config_file
String contaning path and name of configuration file.
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.