NVIDIA DeepStream SDK API Reference

6.4 Release
GstSinkPad Class Reference

Detailed Description

Definition at line 199 of file gstnvstreammux_impl.h.

Inheritance diagram for GstSinkPad:
Collaboration diagram for GstSinkPad:

Public Member Functions

 GstSinkPad (GstNvStreamMux *elem, unsigned int id, GstPad *pad)
 
 ~GstSinkPad ()
 
void push_event (SourcePad *src_pad, QueueEntry *)
 
GstNvDsNtpCalculatorget_ntp_calc (GstNvDsNtpCalculatorMode mode, GstClockTime frame_duration)
 
void release ()
 
void wait_till_empty ()
 
bool check_queue_empty ()
 
void queue_entry (std::shared_ptr< QueueEntry >)
 
void push_events (SourcePad *src_pad)
 
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

GstVideoInfo vid_info
 
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 GstSourcePad
 

Constructor & Destructor Documentation

◆ GstSinkPad()

GstSinkPad::GstSinkPad ( GstNvStreamMux elem,
unsigned int  id,
GstPad *  pad 
)
inline

Definition at line 202 of file gstnvstreammux_impl.h.

◆ ~GstSinkPad()

GstSinkPad::~GstSinkPad ( )
inline

Definition at line 208 of file gstnvstreammux_impl.h.

References gst_nvds_ntp_calculator_free().

Member Function Documentation

◆ adjust_event_indices()

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

◆ check_queue_empty()

bool SinkPad::check_queue_empty ( )
inherited

◆ clear_frames()

void SinkPad::clear_frames ( )
inherited

◆ get_available()

unsigned int SinkPad::get_available ( )
inherited

◆ get_eos()

bool SinkPad::get_eos ( )
inlineinherited

Definition at line 278 of file nvstreammux_pads.h.

◆ get_frame_count()

unsigned long SinkPad::get_frame_count ( )
inherited

◆ get_max_buffer_count()

unsigned int SinkPad::get_max_buffer_count ( )
inlineinherited

Definition at line 306 of file nvstreammux_pads.h.

References SinkPad::max_buffer_count, and SinkPad::mutex_buffer_count.

◆ get_mime_type()

PAD_MIME_TYPE SinkPad::get_mime_type ( )
inlineinherited

Definition at line 268 of file nvstreammux_pads.h.

◆ get_ntp_calc()

GstNvDsNtpCalculator* GstSinkPad::get_ntp_calc ( GstNvDsNtpCalculatorMode  mode,
GstClockTime  frame_duration 
)
inline

Definition at line 219 of file gstnvstreammux_impl.h.

References gst_nvds_ntp_calculator_new().

◆ get_switched_to_active()

bool SinkPad::get_switched_to_active ( )
inlineinherited

Definition at line 258 of file nvstreammux_pads.h.

◆ get_switched_to_idle()

bool SinkPad::get_switched_to_idle ( )
inlineinherited

Definition at line 253 of file nvstreammux_pads.h.

◆ pop_buffer_done()

void SinkPad::pop_buffer_done ( )
inlineinherited

◆ push_buffer_done()

void SinkPad::push_buffer_done ( )
inlineinherited

Definition at line 283 of file nvstreammux_pads.h.

References SinkPad::buffer_count, and SinkPad::mutex_buffer_count.

◆ push_event()

void GstSinkPad::push_event ( SourcePad src_pad,
QueueEntry  
)
virtual

Reimplemented from SinkPad.

◆ push_events()

void SinkPad::push_events ( SourcePad src_pad)
inherited

◆ queue_entry()

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

◆ release()

void SinkPad::release ( )
inherited

◆ reset()

void SinkPad::reset ( )
inherited

◆ reset_frame_count()

void SinkPad::reset_frame_count ( )
inlineinherited

Definition at line 237 of file nvstreammux_pads.h.

References SinkPad::frame_count.

◆ set_debug_interface()

void SinkPad::set_debug_interface ( INvStreammuxDebug a_debug_iface)
inlineinherited

Definition at line 312 of file nvstreammux_pads.h.

◆ set_eos()

void SinkPad::set_eos ( bool  aEos)
inlineinherited

Definition at line 273 of file nvstreammux_pads.h.

◆ set_max_buffer_count()

void SinkPad::set_max_buffer_count ( unsigned int  max_buffer_c)
inlineinherited

Definition at line 300 of file nvstreammux_pads.h.

References SinkPad::max_buffer_count, and SinkPad::mutex_buffer_count.

◆ set_mime_type()

void SinkPad::set_mime_type ( PAD_MIME_TYPE  n_mime_type)
inlineinherited

Definition at line 263 of file nvstreammux_pads.h.

◆ set_switched_to_active()

void SinkPad::set_switched_to_active ( bool  val)
inlineinherited

Definition at line 248 of file nvstreammux_pads.h.

◆ set_switched_to_idle()

void SinkPad::set_switched_to_idle ( bool  val)
inlineinherited

Definition at line 243 of file nvstreammux_pads.h.

◆ update_frame_count()

void SinkPad::update_frame_count ( unsigned int  count)
inherited

◆ wait_if_queue_full()

void SinkPad::wait_if_queue_full ( )
inherited

always call after queue_entry() for type=ENTRY_BUFFER

◆ wait_till_empty()

void SinkPad::wait_till_empty ( )
inherited

Friends And Related Function Documentation

◆ GstSourcePad

friend class GstSourcePad
friend

Definition at line 217 of file gstnvstreammux_impl.h.

Field Documentation

◆ buffer_count

unsigned long SinkPad::buffer_count
protectedinherited

◆ cv

std::condition_variable SinkPad::cv
protectedinherited

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
protectedinherited

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

Definition at line 346 of file nvstreammux_pads.h.

Referenced by SinkPad::pop_buffer_done().

◆ event_indices

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

Definition at line 321 of file nvstreammux_pads.h.

◆ frame_count

unsigned long SinkPad::frame_count
protectedinherited

Definition at line 347 of file nvstreammux_pads.h.

Referenced by SinkPad::reset_frame_count(), and SinkPad::SinkPad().

◆ id

unsigned int SinkPad::id
inherited

Definition at line 323 of file nvstreammux_pads.h.

◆ max_buffer_count

unsigned long SinkPad::max_buffer_count
protectedinherited

◆ mutex

std::mutex SinkPad::mutex
inherited

Definition at line 325 of file nvstreammux_pads.h.

◆ mutex_buffer_count

std::mutex SinkPad::mutex_buffer_count
inherited

◆ queue

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

Definition at line 320 of file nvstreammux_pads.h.

◆ source_id

unsigned int SinkPad::source_id
inherited

Definition at line 328 of file nvstreammux_pads.h.

◆ state

SOURCE_STATE SinkPad::state
inherited

Definition at line 317 of file nvstreammux_pads.h.

Referenced by SinkPad::SinkPad().

◆ top_event_index

unsigned int SinkPad::top_event_index
inherited

Definition at line 327 of file nvstreammux_pads.h.

◆ vid_info

GstVideoInfo GstSinkPad::vid_info

Definition at line 215 of file gstnvstreammux_impl.h.

◆ wrapped

void* SinkPad::wrapped
inherited

Definition at line 324 of file nvstreammux_pads.h.


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