NVIDIA DeepStream SDK API Reference

9.1 Release
9.1/sources/gst-plugins/gst-nvdewarper/nvdewarper_property_parser.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2019-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: Apache-2.0
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
26 #ifndef NVDEWARPER_PROPERTY_FILE_PARSER_H_
27 #define NVDEWARPER_PROPERTY_FILE_PARSER_H_
28 
29 #include <gst/gst.h>
30 #include "gstnvdewarper.h"
31 
38 #define CONFIG_GROUP_DEWARPER_PROPERTY "property"
39 #define CONFIG_GROUP_DEWARPER_PROPERTY_OUTPUT_WIDTH "output-width"
40 #define CONFIG_GROUP_DEWARPER_PROPERTY_OUTPUT_HEIGHT "output-height"
41 #define CONFIG_GROUP_DEWARPER_PROPERTY_CUDA_MEMORY_TYPE "cuda-memory-type"
42 #define CONFIG_GROUP_DEWARPER_PROPERTY_NUM_BATCH_BUFFERS "num-batch-buffers"
43 #define CONFIG_GROUP_DEWARPER_PROPERTY_DUMP_FRAMES "dewarp-dump-frames"
44 #define CONFIG_GROUP_DEWARPER_PROPERTY_AISLE_CALIB_FILE "aisle-calibration-file"
45 #define CONFIG_GROUP_DEWARPER_PROPERTY_SPOT_CALIB_FILE "spot-calibration-file"
55 #define CONFIG_GROUP_DEWARPER_SURFACE_ATTRS_PREFIX "surface"
56 #define CONFIG_GROUP_DEWARPER_SURFACE_INDEX "surface-index"
57 #define CONFIG_GROUP_DEWARPER_SURFACE_PROJECTION_TYPE "projection-type"
58 #define CONFIG_GROUP_DEWARPER_SURFACE_WIDTH "width"
59 #define CONFIG_GROUP_DEWARPER_SURFACE_HEIGHT "height"
60 #define CONFIG_GROUP_DEWARPER_SURFACE_TOP_ANGLE "top-angle"
61 #define CONFIG_GROUP_DEWARPER_SURFACE_BOTTOM_ANGLE "bottom-angle"
62 #define CONFIG_GROUP_DEWARPER_SURFACE_PITCH "pitch"
63 #define CONFIG_GROUP_DEWARPER_SURFACE_YAW "yaw"
64 #define CONFIG_GROUP_DEWARPER_SURFACE_ROLL "roll"
65 #define CONFIG_GROUP_DEWARPER_SURFACE_FOCAL_LENGTH "focal-length"
66 #define CONFIG_GROUP_DEWARPER_SURFACE_ADDRESS_MODE "cuda-address-mode"
69 #define CONFIG_GROUP_DEWARPER_SURFACE_ROTATION_AXES "rot-axes"
70 #define CONFIG_GROUP_DEWARPER_SURFACE_CONTROL "control"
71 #define CONFIG_GROUP_DEWARPER_SURFACE_ROTATION_MATRIX "rot-matrix"
73 #define CONFIG_GROUP_DEWARPER_SURFACE_FIELD_OF_VIEW "src-fov"
74 #define CONFIG_GROUP_DEWARPER_SURFACE_DISTORTION "distortion"
75 #define CONFIG_GROUP_DEWARPER_SURFACE_SRC_X0 "src-x0"
76 #define CONFIG_GROUP_DEWARPER_SURFACE_SRC_Y0 "src-y0"
79 #define CONFIG_GROUP_DEWARPER_SURFACE_DST_FOCAL_LENGTH "dst-focal-length"
80 
81 #define CONFIG_GROUP_DEWARPER_SURFACE_DST_PRINCIPAL_POINT "dst-principal-point"
82 
84 gboolean
85 nvdewarper_parse_config_file (Gstnvdewarper *nvdewarper, gchar *cfg_file_path);
86 
87 gboolean
88 nvdewarper_parse_dewarper_props (Gstnvdewarper *nvdewarper, GKeyFile *key_file,
89  gchar *group, gchar *cfg_file_path);
90 
91 
92 #endif /* NVDEWARPER_PROPERTY_FILE_PARSER_H_ */
nvdewarper_parse_dewarper_props
gboolean nvdewarper_parse_dewarper_props(Gstnvdewarper *nvdewarper, GKeyFile *key_file, gchar *group, gchar *cfg_file_path)
gstnvdewarper.h
_Gstnvdewarper
Gstnvdewarper element structure.
Definition: sources/gst-plugins/gst-nvdewarper/gstnvdewarper.h:125
nvdewarper_parse_config_file
gboolean nvdewarper_parse_config_file(Gstnvdewarper *nvdewarper, gchar *cfg_file_path)