NVIDIA DeepStream SDK API Reference

6.4 Release
SinkPad Class Reference

Detailed Description

Definition at line 178 of file nvstreammux_pads.h.

Inheritance diagram for SinkPad:

Public Member Functions

 SinkPad (unsigned int id, void *pad)
 
virtual ~SinkPad ()
 
void release ()
 
void wait_till_empty ()
 
bool check_queue_empty ()
 
void queue_entry (std::shared_ptr< QueueEntry >)
 
void push_events (SourcePad *src_pad)
 
virtual void push_event (SourcePad *src_pad, QueueEntry *)
 
unsigned int get_available ()
 
void adjust_event_indices (unsigned int, bool is_event)
 
void update_frame_count (unsigned int count)
 
unsigned long get_frame_count ()
 
void reset_frame_count ()
 
void reset ()
 
void clear_frames ()
 
void set_switched_to_idle (bool val)
 
void set_switched_to_active (bool val)
 
bool get_switched_to_idle ()
 
bool get_switched_to_active ()
 
void set_mime_type (PAD_MIME_TYPE n_mime_type)
 
PAD_MIME_TYPE get_mime_type ()
 
void set_eos (bool aEos)
 
bool get_eos ()
 
void push_buffer_done ()
 
void wait_if_queue_full ()
 always call after queue_entry() for type=ENTRY_BUFFER More...
 
void pop_buffer_done ()
 
void set_max_buffer_count (unsigned int max_buffer_c)
 
unsigned int get_max_buffer_count ()
 
void set_debug_interface (INvStreammuxDebug *a_debug_iface)
 

Data Fields

SOURCE_STATE state
 
std::vector< std::shared_ptr< QueueEntry > > queue
 
std::vector< unsigned int > event_indices
 
unsigned int id
 
void * wrapped
 
std::mutex mutex
 
std::mutex mutex_buffer_count
 
unsigned int top_event_index
 
unsigned int source_id
 

Protected Attributes

std::condition_variable cv
 cv which shall be notified when we have input buffer in queue More...
 
std::condition_variable cv_input_full
 cv which shall be notified when we have space left in queue More...
 
unsigned long frame_count
 
unsigned long buffer_count
 
unsigned long max_buffer_count
 

Friends

class SourcePad
 

Constructor & Destructor Documentation

◆ SinkPad()

SinkPad::SinkPad ( unsigned int  id,
void *  pad 
)
inline

◆ ~SinkPad()

virtual SinkPad::~SinkPad ( )
inlinevirtual

Definition at line 195 of file nvstreammux_pads.h.

Member Function Documentation

◆ adjust_event_indices()

void SinkPad::adjust_event_indices ( unsigned int  ,
bool  is_event 
)

◆ check_queue_empty()

bool SinkPad::check_queue_empty ( )

◆ clear_frames()

void SinkPad::clear_frames ( )

◆ get_available()

unsigned int SinkPad::get_available ( )

◆ get_eos()

bool SinkPad::get_eos ( )
inline

Definition at line 278 of file nvstreammux_pads.h.

◆ get_frame_count()

unsigned long SinkPad::get_frame_count ( )

◆ get_max_buffer_count()

unsigned int SinkPad::get_max_buffer_count ( )
inline

Definition at line 306 of file nvstreammux_pads.h.

References max_buffer_count, and mutex_buffer_count.

◆ get_mime_type()

PAD_MIME_TYPE SinkPad::get_mime_type ( )
inline

Definition at line 268 of file nvstreammux_pads.h.

◆ get_switched_to_active()

bool SinkPad::get_switched_to_active ( )
inline

Definition at line 258 of file nvstreammux_pads.h.

◆ get_switched_to_idle()

bool SinkPad::get_switched_to_idle ( )
inline

Definition at line 253 of file nvstreammux_pads.h.

◆ pop_buffer_done()

void SinkPad::pop_buffer_done ( )
inline

Definition at line 292 of file nvstreammux_pads.h.

References buffer_count, cv_input_full, max_buffer_count, and mutex_buffer_count.

◆ push_buffer_done()

void SinkPad::push_buffer_done ( )
inline

Definition at line 283 of file nvstreammux_pads.h.

References buffer_count, and mutex_buffer_count.

◆ push_event()

virtual void SinkPad::push_event ( SourcePad src_pad,
QueueEntry  
)
inlinevirtual

Reimplemented in GstSinkPad.

Definition at line 226 of file nvstreammux_pads.h.

◆ push_events()

void SinkPad::push_events ( SourcePad src_pad)

◆ queue_entry()

void SinkPad::queue_entry ( std::shared_ptr< QueueEntry )

◆ release()

void SinkPad::release ( )

◆ reset()

void SinkPad::reset ( )

◆ reset_frame_count()

void SinkPad::reset_frame_count ( )
inline

Definition at line 237 of file nvstreammux_pads.h.

References frame_count.

◆ set_debug_interface()

void SinkPad::set_debug_interface ( INvStreammuxDebug a_debug_iface)
inline

Definition at line 312 of file nvstreammux_pads.h.

◆ set_eos()

void SinkPad::set_eos ( bool  aEos)
inline

Definition at line 273 of file nvstreammux_pads.h.

◆ set_max_buffer_count()

void SinkPad::set_max_buffer_count ( unsigned int  max_buffer_c)
inline

Definition at line 300 of file nvstreammux_pads.h.

References max_buffer_count, and mutex_buffer_count.

◆ set_mime_type()

void SinkPad::set_mime_type ( PAD_MIME_TYPE  n_mime_type)
inline

Definition at line 263 of file nvstreammux_pads.h.

◆ set_switched_to_active()

void SinkPad::set_switched_to_active ( bool  val)
inline

Definition at line 248 of file nvstreammux_pads.h.

◆ set_switched_to_idle()

void SinkPad::set_switched_to_idle ( bool  val)
inline

Definition at line 243 of file nvstreammux_pads.h.

◆ update_frame_count()

void SinkPad::update_frame_count ( unsigned int  count)

◆ wait_if_queue_full()

void SinkPad::wait_if_queue_full ( )

always call after queue_entry() for type=ENTRY_BUFFER

◆ wait_till_empty()

void SinkPad::wait_till_empty ( )

Friends And Related Function Documentation

◆ SourcePad

friend class SourcePad
friend

Definition at line 342 of file nvstreammux_pads.h.

Field Documentation

◆ buffer_count

unsigned long SinkPad::buffer_count
protected

Definition at line 348 of file nvstreammux_pads.h.

Referenced by pop_buffer_done(), push_buffer_done(), and SinkPad().

◆ cv

std::condition_variable SinkPad::cv
protected

cv which shall be notified when we have input buffer in queue

Definition at line 344 of file nvstreammux_pads.h.

◆ cv_input_full

std::condition_variable SinkPad::cv_input_full
protected

cv which shall be notified when we have space left in queue

Definition at line 346 of file nvstreammux_pads.h.

Referenced by pop_buffer_done().

◆ event_indices

std::vector<unsigned int> SinkPad::event_indices

Definition at line 321 of file nvstreammux_pads.h.

◆ frame_count

unsigned long SinkPad::frame_count
protected

Definition at line 347 of file nvstreammux_pads.h.

Referenced by reset_frame_count(), and SinkPad().

◆ id

unsigned int SinkPad::id

Definition at line 323 of file nvstreammux_pads.h.

◆ max_buffer_count

unsigned long SinkPad::max_buffer_count
protected

◆ mutex

std::mutex SinkPad::mutex

Definition at line 325 of file nvstreammux_pads.h.

◆ mutex_buffer_count

std::mutex SinkPad::mutex_buffer_count

◆ queue

std::vector<std::shared_ptr<QueueEntry> > SinkPad::queue

Definition at line 320 of file nvstreammux_pads.h.

◆ source_id

unsigned int SinkPad::source_id

Definition at line 328 of file nvstreammux_pads.h.

◆ state

SOURCE_STATE SinkPad::state

Definition at line 317 of file nvstreammux_pads.h.

Referenced by SinkPad().

◆ top_event_index

unsigned int SinkPad::top_event_index

Definition at line 327 of file nvstreammux_pads.h.

◆ wrapped

void* SinkPad::wrapped

Definition at line 324 of file nvstreammux_pads.h.


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