Provides common CUDA texture state for frame transformations.
Definition at line 210 of file sources/libs/nvmultiobjecttracker/include/modules/FrameTransform/FrameTransform.hpp.

Public Member Functions | |
| FrameTransformTexture (const int cudaBlockSize_2D=32) | |
| Construct common frame-transform state. More... | |
| ~FrameTransformTexture () | |
| Release resources owned by the FrameTransformTexture instance. More... | |
| void | initialize_common (const int debugVerboseLevel, const int maxStreamNum, const int maxBufSurfAddrSize, const int maxTargetNum, const NvMotDataTypes::Size srcImgSize, const uint srcImgPitch, const NvBufSurfaceColorFormat colorFormatType) |
| Initialize common transform state and allocate output memory. More... | |
| void | updateTextureObject (const std::map< NvMOTStreamId, NvMOTFrame * > &inputMeta) |
| Update texture objects from a batch of source frames. More... | |
| NvBufSurfaceColorFormat | getColorFormat () const |
| Get the input surface color format. More... | |
| uint | getMaxVideoStreams () const |
| Get the maximum number of video streams in a batch. More... | |
| bool | isInitialized_common () const |
| Report whether common frame-transform state is initialized. More... | |
| FrameTransformTexture (const int cudaBlockSize_2D=32) | |
| Construct common frame-transform state. More... | |
| ~FrameTransformTexture () | |
| Release resources owned by the FrameTransformTexture instance. More... | |
| void | initialize_common (const int debugVerboseLevel, const int maxStreamNum, const int maxBufSurfAddrSize, const int maxTargetNum, const NvMotDataTypes::Size srcImgSize, const uint srcImgPitch, const NvBufSurfaceColorFormat colorFormatType) |
| Initialize common transform state and allocate output memory. More... | |
| void | updateTextureObject (const std::map< NvMOTStreamId, NvMOTFrame * > &inputMeta) |
| Update texture objects from a batch of source frames. More... | |
| NvBufSurfaceColorFormat | getColorFormat () const |
| Get the input surface color format. More... | |
| uint | getMaxVideoStreams () const |
| Get the maximum number of video streams in a batch. More... | |
| bool | isInitialized_common () const |
| Report whether common frame-transform state is initialized. More... | |
Protected Member Functions | |
| void | allocateOutputMemories_common () |
| Allocate device and host memory for transform output. More... | |
| void | deAllocateOutputMemories_common () |
| Release device and host memory for transform output. More... | |
| void | allocateOutputMemories_common () |
| Allocate device and host memory for transform output. More... | |
| void | deAllocateOutputMemories_common () |
| Release device and host memory for transform output. More... | |
Protected Attributes | |
| bool | m_isInit_common |
| Indicates whether common transform state is initialized. More... | |
| std::shared_ptr< FrameInputTexture > | m_frameInput |
| Shared input-frame texture manager. More... | |
| float4 * | m_rois_h |
| float4 * | m_rois_d |
| Host and device regions of interest in x, y, width, and height order. More... | |
| uint2 * | m_dstOffsets_h |
| uint2 * | m_dstOffsets_d |
| Host and device byte offsets into transform output memory. More... | |
| std::map< uint, std::pair< NvMOTStreamId, uint > > | m_targetNumInd2RoisInBatchMapper |
| Stream and bounding-box indices keyed by batch target index. More... | |
| int | m_scaleFactor |
| Scale that restores values read through normalized CUDA texture mode. More... | |
| uint | m_lastInd |
| Number of targets in the latest transform. More... | |
| uint | m_numFramesInBatchMax |
| Maximum number of frames processed in a batch. More... | |
| int | m_maxTargetsToTrack |
| Maximum number of targets in a batch. More... | |
| const int | m_cudaBlockSize_2D |
| CUDA block width and height for two-dimensional kernels. More... | |
| cudaStream_t | m_cuStream |
| CUDA stream used for frame transformations. More... | |
| int | m_debugVerboseLevel |
| Debug verbosity level. More... | |
| FrameTransformTexture::FrameTransformTexture | ( | const int | cudaBlockSize_2D = 32 | ) |
Construct common frame-transform state.
| [in] | cudaBlockSize_2D | CUDA block width and height for two-dimensional kernels. |
| FrameTransformTexture::~FrameTransformTexture | ( | ) |
Release resources owned by the FrameTransformTexture instance.
| FrameTransformTexture::FrameTransformTexture | ( | const int | cudaBlockSize_2D = 32 | ) |
Construct common frame-transform state.
| [in] | cudaBlockSize_2D | CUDA block width and height for two-dimensional kernels. |
| FrameTransformTexture::~FrameTransformTexture | ( | ) |
Release resources owned by the FrameTransformTexture instance.
|
protected |
Allocate device and host memory for transform output.
|
protected |
Allocate device and host memory for transform output.
|
protected |
Release device and host memory for transform output.
|
protected |
Release device and host memory for transform output.
|
inline |
Get the input surface color format.
Definition at line 244 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/FrameTransform/FrameTransform.hpp.
References m_frameInput.
|
inline |
Get the input surface color format.
Definition at line 244 of file sources/libs/nvmultiobjecttracker/include/modules/FrameTransform/FrameTransform.hpp.
References m_frameInput.
|
inline |
Get the maximum number of video streams in a batch.
Definition at line 247 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/FrameTransform/FrameTransform.hpp.
References m_numFramesInBatchMax.
|
inline |
Get the maximum number of video streams in a batch.
Definition at line 247 of file sources/libs/nvmultiobjecttracker/include/modules/FrameTransform/FrameTransform.hpp.
References m_numFramesInBatchMax.
| void FrameTransformTexture::initialize_common | ( | const int | debugVerboseLevel, |
| const int | maxStreamNum, | ||
| const int | maxBufSurfAddrSize, | ||
| const int | maxTargetNum, | ||
| const NvMotDataTypes::Size | srcImgSize, | ||
| const uint | srcImgPitch, | ||
| const NvBufSurfaceColorFormat | colorFormatType | ||
| ) |
Initialize common transform state and allocate output memory.
| [in] | debugVerboseLevel | Debug verbosity level. |
| [in] | maxStreamNum | Maximum number of input streams. |
| [in] | maxBufSurfAddrSize | Maximum number of cached surface-buffer addresses. |
| [in] | maxTargetNum | Maximum number of targets in a batch. |
| [in] | srcImgSize | Input image dimensions. |
| [in] | srcImgPitch | Input image pitch in bytes. |
| [in] | colorFormatType | Input surface color format. |
| void FrameTransformTexture::initialize_common | ( | const int | debugVerboseLevel, |
| const int | maxStreamNum, | ||
| const int | maxBufSurfAddrSize, | ||
| const int | maxTargetNum, | ||
| const NvMotDataTypes::Size | srcImgSize, | ||
| const uint | srcImgPitch, | ||
| const NvBufSurfaceColorFormat | colorFormatType | ||
| ) |
Initialize common transform state and allocate output memory.
| [in] | debugVerboseLevel | Debug verbosity level. |
| [in] | maxStreamNum | Maximum number of input streams. |
| [in] | maxBufSurfAddrSize | Maximum number of cached surface-buffer addresses. |
| [in] | maxTargetNum | Maximum number of targets in a batch. |
| [in] | srcImgSize | Input image dimensions. |
| [in] | srcImgPitch | Input image pitch in bytes. |
| [in] | colorFormatType | Input surface color format. |
|
inline |
Report whether common frame-transform state is initialized.
Definition at line 250 of file sources/libs/nvmultiobjecttracker/include/modules/FrameTransform/FrameTransform.hpp.
References m_isInit_common.
|
inline |
Report whether common frame-transform state is initialized.
Definition at line 250 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/FrameTransform/FrameTransform.hpp.
References m_isInit_common.
| void FrameTransformTexture::updateTextureObject | ( | const std::map< NvMOTStreamId, NvMOTFrame * > & | inputMeta | ) |
Update texture objects from a batch of source frames.
| [in] | inputMeta | Source frames keyed by stream ID. |
| void FrameTransformTexture::updateTextureObject | ( | const std::map< NvMOTStreamId, NvMOTFrame * > & | inputMeta | ) |
Update texture objects from a batch of source frames.
| [in] | inputMeta | Source frames keyed by stream ID. |
|
protected |
CUDA block width and height for two-dimensional kernels.
Definition at line 276 of file sources/libs/nvmultiobjecttracker/include/modules/FrameTransform/FrameTransform.hpp.
|
protected |
CUDA stream used for frame transformations.
Definition at line 277 of file sources/libs/nvmultiobjecttracker/include/modules/FrameTransform/FrameTransform.hpp.
|
protected |
Debug verbosity level.
Definition at line 278 of file sources/libs/nvmultiobjecttracker/include/modules/FrameTransform/FrameTransform.hpp.
|
protected |
Host and device byte offsets into transform output memory.
Definition at line 266 of file sources/libs/nvmultiobjecttracker/include/modules/FrameTransform/FrameTransform.hpp.
|
protected |
Definition at line 266 of file sources/libs/nvmultiobjecttracker/include/modules/FrameTransform/FrameTransform.hpp.
|
protected |
Shared input-frame texture manager.
Definition at line 262 of file sources/libs/nvmultiobjecttracker/include/modules/FrameTransform/FrameTransform.hpp.
Referenced by getColorFormat().
|
protected |
Indicates whether common transform state is initialized.
Definition at line 259 of file sources/libs/nvmultiobjecttracker/include/modules/FrameTransform/FrameTransform.hpp.
Referenced by isInitialized_common().
|
protected |
Number of targets in the latest transform.
Definition at line 271 of file sources/libs/nvmultiobjecttracker/include/modules/FrameTransform/FrameTransform.hpp.
|
protected |
Maximum number of targets in a batch.
Definition at line 273 of file sources/libs/nvmultiobjecttracker/include/modules/FrameTransform/FrameTransform.hpp.
|
protected |
Maximum number of frames processed in a batch.
Definition at line 272 of file sources/libs/nvmultiobjecttracker/include/modules/FrameTransform/FrameTransform.hpp.
Referenced by getMaxVideoStreams().
|
protected |
Host and device regions of interest in x, y, width, and height order.
Definition at line 265 of file sources/libs/nvmultiobjecttracker/include/modules/FrameTransform/FrameTransform.hpp.
|
protected |
Definition at line 265 of file sources/libs/nvmultiobjecttracker/include/modules/FrameTransform/FrameTransform.hpp.
|
protected |
Scale that restores values read through normalized CUDA texture mode.
Definition at line 270 of file sources/libs/nvmultiobjecttracker/include/modules/FrameTransform/FrameTransform.hpp.
|
protected |
Stream and bounding-box indices keyed by batch target index.
Definition at line 267 of file sources/libs/nvmultiobjecttracker/include/modules/FrameTransform/FrameTransform.hpp.