NVIDIA DeepStream SDK API Reference

6.4 Release
GstBufferWrapper Class Reference

Detailed Description

Definition at line 56 of file gstnvstreammux_impl.h.

Inheritance diagram for GstBufferWrapper:
Collaboration diagram for GstBufferWrapper:

Public Member Functions

 GstBufferWrapper (void *buffer, ENTRY_TYPE et, BATCH_SEQUENCE_TYPE bt, GstClockTime a_ntp_ts, GstClockTime a_buf_pts, GstClockTime a_duration, unsigned int id=0)
 
 ~GstBufferWrapper ()
 
void * unwrap ()
 
void free ()
 
void SetAudioParams (NvBufAudioParams aAudioParams)
 
void SetMemTypeNVMM (bool isNVMM)
 
bool IsMemTypeNVMM ()
 

Data Fields

NvBufAudioParams audioParams
 
GstClockTime ntp_ts
 
GstClockTime buf_pts
 
GstClockTime duration
 
unsigned int stream_id
 
gdouble buffer_wrapper_creation_time
 
bool is_nvmm
 
void * raw
 
uint32_t rawSize
 
uint64_t timestamp
 
void * wrapped
 
BATCH_SEQUENCE_TYPE batch_type
 
ENTRY_TYPE type
 

Constructor & Destructor Documentation

◆ GstBufferWrapper()

GstBufferWrapper::GstBufferWrapper ( void *  buffer,
ENTRY_TYPE  et,
BATCH_SEQUENCE_TYPE  bt,
GstClockTime  a_ntp_ts,
GstClockTime  a_buf_pts,
GstClockTime  a_duration,
unsigned int  id = 0 
)
inline

TODO: Raise an exception if raw is nullptr; no_throw shall work whoever creates an object of GstBufferWrapper

Definition at line 60 of file gstnvstreammux_impl.h.

References buf_pts, buffer_wrapper_creation_time, duration, is_nvmm, LOGD, ntp_ts, nvds_enable_latency_measurement, nvds_get_current_system_timestamp(), stream_id, unwrap(), and QueueEntry::wrapped.

◆ ~GstBufferWrapper()

GstBufferWrapper::~GstBufferWrapper ( )
inline

Definition at line 78 of file gstnvstreammux_impl.h.

References free().

Member Function Documentation

◆ free()

void GstBufferWrapper::free ( )
inlinevirtual

Implements BufferWrapper.

Definition at line 99 of file gstnvstreammux_impl.h.

References LOGD, BufferWrapper::raw, and QueueEntry::wrapped.

Referenced by ~GstBufferWrapper().

◆ IsMemTypeNVMM()

bool GstBufferWrapper::IsMemTypeNVMM ( )
inline

Definition at line 115 of file gstnvstreammux_impl.h.

References is_nvmm.

◆ SetAudioParams()

void GstBufferWrapper::SetAudioParams ( NvBufAudioParams  aAudioParams)
inline

Definition at line 105 of file gstnvstreammux_impl.h.

References audioParams.

◆ SetMemTypeNVMM()

void GstBufferWrapper::SetMemTypeNVMM ( bool  isNVMM)
inline

Definition at line 110 of file gstnvstreammux_impl.h.

References is_nvmm.

◆ unwrap()

void* GstBufferWrapper::unwrap ( )
inline

Definition at line 83 of file gstnvstreammux_impl.h.

References BufferWrapper::raw, BufferWrapper::rawSize, and QueueEntry::wrapped.

Referenced by GstBufferWrapper().

Field Documentation

◆ audioParams

NvBufAudioParams GstBufferWrapper::audioParams

Definition at line 120 of file gstnvstreammux_impl.h.

Referenced by SetAudioParams().

◆ batch_type

BATCH_SEQUENCE_TYPE QueueEntry::batch_type
inherited

Definition at line 96 of file nvstreammux_pads.h.

◆ buf_pts

GstClockTime GstBufferWrapper::buf_pts

Definition at line 123 of file gstnvstreammux_impl.h.

Referenced by GstBufferWrapper().

◆ buffer_wrapper_creation_time

gdouble GstBufferWrapper::buffer_wrapper_creation_time

Definition at line 126 of file gstnvstreammux_impl.h.

Referenced by GstBufferWrapper().

◆ duration

GstClockTime GstBufferWrapper::duration

Definition at line 124 of file gstnvstreammux_impl.h.

Referenced by GstBufferWrapper().

◆ is_nvmm

bool GstBufferWrapper::is_nvmm

Definition at line 127 of file gstnvstreammux_impl.h.

Referenced by GstBufferWrapper(), IsMemTypeNVMM(), and SetMemTypeNVMM().

◆ ntp_ts

GstClockTime GstBufferWrapper::ntp_ts

Definition at line 122 of file gstnvstreammux_impl.h.

Referenced by GstBufferWrapper().

◆ raw

void* BufferWrapper::raw
inherited

Definition at line 114 of file nvstreammux_pads.h.

Referenced by BufferWrapper::BufferWrapper(), free(), and unwrap().

◆ rawSize

uint32_t BufferWrapper::rawSize
inherited

Definition at line 115 of file nvstreammux_pads.h.

Referenced by unwrap().

◆ stream_id

unsigned int GstBufferWrapper::stream_id

Definition at line 125 of file gstnvstreammux_impl.h.

Referenced by GstBufferWrapper().

◆ timestamp

uint64_t BufferWrapper::timestamp
inherited

Definition at line 120 of file nvstreammux_pads.h.

Referenced by BufferWrapper::BufferWrapper().

◆ type

ENTRY_TYPE QueueEntry::type
inherited

◆ wrapped

void* QueueEntry::wrapped
inherited

Definition at line 95 of file nvstreammux_pads.h.

Referenced by free(), GstBufferWrapper(), and unwrap().


The documentation for this class was generated from the following file: