NVIDIA DeepStream SDK API Reference

9.1 Release
sources/includes/nvds_opticalflow_meta.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 
33 #ifndef _NVDS_OPTICALFLOW_META_H_
34 #define _NVDS_OPTICALFLOW_META_H_
35 
36 #ifdef __cplusplus
37 extern "C"
38 {
39 #endif
40 
44 typedef struct _NvOFFlowVector
45 {
47  short flowx;
48 
50  short flowy;
52 
56 typedef struct
57 {
61  unsigned int rows;
65  unsigned int cols;
67  unsigned int mv_size;
69  unsigned int cost_size;
71  unsigned long frame_num;
73  void *data;
75  void *cost;
77  void *priv;
79  void *reserved;
81 
82 #ifdef __cplusplus
83 }
84 #endif
85 
86 #endif
87 
NvDsOpticalFlowMeta::priv
void * priv
Reserved for internal use.
Definition: sources/includes/nvds_opticalflow_meta.h:77
_NvOFFlowVector::flowy
short flowy
Holds the motion vector Y component.
Definition: sources/includes/nvds_opticalflow_meta.h:50
NvDsOpticalFlowMeta::rows
unsigned int rows
Holds the number of rows in the frame for a given block size, e.g.
Definition: sources/includes/nvds_opticalflow_meta.h:61
NvDsOpticalFlowMeta
Holds optical flow metadata about a frame.
Definition: sources/includes/nvds_opticalflow_meta.h:56
NvOFFlowVector
struct _NvOFFlowVector NvOFFlowVector
Holds motion vector information about an element.
NvDsOpticalFlowMeta::frame_num
unsigned long frame_num
Holds the current frame number of the source.
Definition: sources/includes/nvds_opticalflow_meta.h:71
NvDsOpticalFlowMeta::cost
void * cost
Holds a pointer to the cost of the motion vector.
Definition: sources/includes/nvds_opticalflow_meta.h:75
NvDsOpticalFlowMeta::cost_size
unsigned int cost_size
Holds the size of the confidence values of the motion vector.
Definition: sources/includes/nvds_opticalflow_meta.h:69
NvDsOpticalFlowMeta::reserved
void * reserved
Reserved for internal use.
Definition: sources/includes/nvds_opticalflow_meta.h:79
_NvOFFlowVector
Holds motion vector information about an element.
Definition: sources/includes/nvds_opticalflow_meta.h:44
NvDsOpticalFlowMeta::data
void * data
Holds a pointer to the motion vector.
Definition: sources/includes/nvds_opticalflow_meta.h:73
NvDsOpticalFlowMeta::mv_size
unsigned int mv_size
Holds the size of the motion vector.
Definition: sources/includes/nvds_opticalflow_meta.h:67
NvDsOpticalFlowMeta::cols
unsigned int cols
Holds the number of columns in the frame for given block size, e.g.
Definition: sources/includes/nvds_opticalflow_meta.h:65
_NvOFFlowVector::flowx
short flowx
Holds the motion vector X component.
Definition: sources/includes/nvds_opticalflow_meta.h:47