Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
RsRTSPClient Class Reference

#include <RsRtspClient.h>

Inheritance diagram for RsRTSPClient:
Inheritance graph
[legend]

Public Member Functions

virtual int addStream (rs2_video_stream t_stream, rtp_callback *t_frameCallBack)
 
virtual int close ()
 
void describe ()
 
virtual std::vector< IpDeviceControlDatagetControls ()
 
virtual DeviceData getDeviceData ()
 
char & getEventLoopWatchVariable ()
 
virtual int getOption (const std::string &t_sensorName, rs2_option t_option, float &t_value)
 
virtual std::vector< rs2_video_streamgetStreams ()
 
std::mutex & getTaskSchedulerMutex ()
 
void initFunc (MemoryPool *t_pool)
 
unsigned sendGetParameterCommand (responseHandler *responseHandler, char const *parameterName, Authenticator *authenticator=NULL)
 
unsigned sendSetParameterCommand (responseHandler *responseHandler, char const *parameterName, char const *parameterValue, Authenticator *authenticator=NULL)
 
void setDeviceData (DeviceData t_data)
 
void setGetParamResponse (float t_res)
 
virtual int setOption (const std::string &t_sensorName, rs2_option t_option, float t_value)
 
Boolean setRequestFields (RequestRecord *request, char *&cmdURL, Boolean &cmdURLWasAllocated, char const *&protocolStr, char *&extraHeaders, Boolean &extraHeadersWereAllocated)
 
void setup (rs2_video_stream t_stream)
 
virtual int start ()
 
virtual int stop ()
 

Static Public Member Functions

static void continueAfterDESCRIBE (RTSPClient *rtspClient, int resultCode, char *resultString)
 
static void continueAfterGETCOMMAND (RTSPClient *rtspClient, int resultCode, char *resultString)
 
static void continueAfterOPTIONS (RTSPClient *rtspClient, int resultCode, char *resultString)
 
static void continueAfterPAUSE (RTSPClient *rtspClient, int resultCode, char *resultString)
 
static void continueAfterPLAY (RTSPClient *rtspClient, int resultCode, char *resultString)
 
static void continueAfterSETCOMMAND (RTSPClient *rtspClient, int resultCode, char *resultString)
 
static void continueAfterSETUP (RTSPClient *rtspClient, int resultCode, char *resultString)
 
static void continueAfterTEARDOWN (RTSPClient *rtspClient, int resultCode, char *resultString)
 
static IRsRtspcreateNew (char const *t_rtspURL, char const *t_applicationName, portNumBits t_tunnelOverHTTPPortNum, int idx)
 
static int getPhysicalSensorUniqueKey (rs2_stream stream_type, int sensors_index)
 
static long long int getStreamProfileUniqueKey (rs2_video_stream t_profile)
 
static void subsessionAfterPlaying (void *clientData)
 
static void subsessionByeHandler (void *clientData, char const *reason)
 

Private Member Functions

 RsRTSPClient (TaskScheduler *t_scheduler, UsageEnvironment *t_env, char const *t_rtspURL, int t_verbosityLevel, char const *t_applicationName, portNumBits t_tunnelOverHTTPPortNum, int idx)
 
virtual ~RsRTSPClient ()
 

Private Attributes

bool isActiveSession = false
 
bool m_commandDone = false
 
std::mutex m_commandMtx
 
std::condition_variable m_cv
 
DeviceData m_deviceData
 
UsageEnvironment * m_env
 
char m_eventLoopWatchVariable = 0
 
float m_getParamRes
 
int m_idx
 
RsRtspReturnValue m_lastReturnValue
 
MemoryPoolm_memPool
 
TaskScheduler * m_scheduler
 
StreamClientState m_scs
 
std::map< long long int, RsMediaSubsession * > m_subsessionMap
 
std::vector< rs2_video_streamm_supportedProfiles
 
std::mutex m_taskSchedulerMutex
 

Static Private Attributes

static int m_streamCounter
 

Detailed Description

Definition at line 26 of file RsRtspClient.h.

Constructor & Destructor Documentation

RsRTSPClient::RsRTSPClient ( TaskScheduler *  t_scheduler,
UsageEnvironment *  t_env,
char const *  t_rtspURL,
int  t_verbosityLevel,
char const *  t_applicationName,
portNumBits  t_tunnelOverHTTPPortNum,
int  idx 
)
private

Definition at line 50 of file RsRtspClient.cpp.

RsRTSPClient::~RsRTSPClient ( )
privatevirtual

Definition at line 59 of file RsRtspClient.cpp.

Member Function Documentation

int RsRTSPClient::addStream ( rs2_video_stream  t_stream,
rtp_callback t_frameCallBack 
)
virtual

Implements IRsRtsp.

Definition at line 100 of file RsRtspClient.cpp.

int RsRTSPClient::close ( )
virtual

Implements IRsRtsp.

Definition at line 197 of file RsRtspClient.cpp.

void RsRTSPClient::continueAfterDESCRIBE ( RTSPClient *  rtspClient,
int  resultCode,
char *  resultString 
)
static

Definition at line 379 of file RsRtspClient.cpp.

void RsRTSPClient::continueAfterGETCOMMAND ( RTSPClient *  rtspClient,
int  resultCode,
char *  resultString 
)
static

Definition at line 663 of file RsRtspClient.cpp.

void RsRTSPClient::continueAfterOPTIONS ( RTSPClient *  rtspClient,
int  resultCode,
char *  resultString 
)
static

Definition at line 590 of file RsRtspClient.cpp.

void RsRTSPClient::continueAfterPAUSE ( RTSPClient *  rtspClient,
int  resultCode,
char *  resultString 
)
static

Definition at line 567 of file RsRtspClient.cpp.

void RsRTSPClient::continueAfterPLAY ( RTSPClient *  rtspClient,
int  resultCode,
char *  resultString 
)
static

Definition at line 521 of file RsRtspClient.cpp.

void RsRTSPClient::continueAfterSETCOMMAND ( RTSPClient *  rtspClient,
int  resultCode,
char *  resultString 
)
static

Definition at line 638 of file RsRtspClient.cpp.

void RsRTSPClient::continueAfterSETUP ( RTSPClient *  rtspClient,
int  resultCode,
char *  resultString 
)
static

Definition at line 496 of file RsRtspClient.cpp.

void RsRTSPClient::continueAfterTEARDOWN ( RTSPClient *  rtspClient,
int  resultCode,
char *  resultString 
)
static

Definition at line 544 of file RsRtspClient.cpp.

IRsRtsp * RsRTSPClient::createNew ( char const *  t_rtspURL,
char const *  t_applicationName,
portNumBits  t_tunnelOverHTTPPortNum,
int  idx 
)
static

Definition at line 41 of file RsRtspClient.cpp.

void RsRTSPClient::describe ( )
std::vector< IpDeviceControlData > RsRTSPClient::getControls ( )
virtual

Implements IRsRtsp.

Definition at line 319 of file RsRtspClient.cpp.

virtual DeviceData RsRTSPClient::getDeviceData ( )
inlinevirtual

Implements IRsRtsp.

Definition at line 47 of file RsRtspClient.h.

char& RsRTSPClient::getEventLoopWatchVariable ( )
inline

Definition at line 63 of file RsRtspClient.h.

int RsRTSPClient::getOption ( const std::string t_sensorName,
rs2_option  t_option,
float &  t_value 
)
virtual

Implements IRsRtsp.

Definition at line 266 of file RsRtspClient.cpp.

int RsRTSPClient::getPhysicalSensorUniqueKey ( rs2_stream  stream_type,
int  sensors_index 
)
static

Definition at line 36 of file RsRtspClient.cpp.

long long int RsRTSPClient::getStreamProfileUniqueKey ( rs2_video_stream  t_profile)
static

Definition at line 29 of file RsRtspClient.cpp.

std::vector< rs2_video_stream > RsRTSPClient::getStreams ( )
virtual

Implements IRsRtsp.

Definition at line 63 of file RsRtspClient.cpp.

std::mutex& RsRTSPClient::getTaskSchedulerMutex ( )
inline

Definition at line 67 of file RsRtspClient.h.

void RsRTSPClient::initFunc ( MemoryPool t_pool)

Definition at line 306 of file RsRtspClient.cpp.

unsigned RsRTSPClient::sendGetParameterCommand ( responseHandler *  responseHandler,
char const *  parameterName,
Authenticator *  authenticator = NULL 
)

Definition at line 714 of file RsRtspClient.cpp.

unsigned RsRTSPClient::sendSetParameterCommand ( responseHandler *  responseHandler,
char const *  parameterName,
char const *  parameterValue,
Authenticator *  authenticator = NULL 
)

Definition at line 703 of file RsRtspClient.cpp.

void RsRTSPClient::setDeviceData ( DeviceData  t_data)

Definition at line 313 of file RsRtspClient.cpp.

void RsRTSPClient::setGetParamResponse ( float  t_res)

Definition at line 261 of file RsRtspClient.cpp.

int RsRTSPClient::setOption ( const std::string t_sensorName,
rs2_option  t_option,
float  t_value 
)
virtual

Implements IRsRtsp.

Definition at line 230 of file RsRtspClient.cpp.

Boolean RsRTSPClient::setRequestFields ( RequestRecord *  request,
char *&  cmdURL,
Boolean &  cmdURLWasAllocated,
char const *&  protocolStr,
char *&  extraHeaders,
Boolean &  extraHeadersWereAllocated 
)

Definition at line 738 of file RsRtspClient.cpp.

void RsRTSPClient::setup ( rs2_video_stream  t_stream)
int RsRTSPClient::start ( )
virtual

Implements IRsRtsp.

Definition at line 156 of file RsRtspClient.cpp.

int RsRTSPClient::stop ( )
virtual

Implements IRsRtsp.

Definition at line 177 of file RsRtspClient.cpp.

void RsRTSPClient::subsessionAfterPlaying ( void clientData)
static

Definition at line 694 of file RsRtspClient.cpp.

void RsRTSPClient::subsessionByeHandler ( void clientData,
char const *  reason 
)
static

Definition at line 701 of file RsRtspClient.cpp.

Member Data Documentation

bool RsRTSPClient::isActiveSession = false
private

Definition at line 83 of file RsRtspClient.h.

bool RsRTSPClient::m_commandDone = false
private

Definition at line 91 of file RsRtspClient.h.

std::mutex RsRTSPClient::m_commandMtx
private

Definition at line 90 of file RsRtspClient.h.

std::condition_variable RsRTSPClient::m_cv
private

Definition at line 89 of file RsRtspClient.h.

DeviceData RsRTSPClient::m_deviceData
private

Definition at line 92 of file RsRtspClient.h.

UsageEnvironment* RsRTSPClient::m_env
private

Definition at line 96 of file RsRtspClient.h.

char RsRTSPClient::m_eventLoopWatchVariable = 0
private

Definition at line 97 of file RsRtspClient.h.

float RsRTSPClient::m_getParamRes
private

Definition at line 94 of file RsRtspClient.h.

int RsRTSPClient::m_idx
private

Definition at line 100 of file RsRtspClient.h.

RsRtspReturnValue RsRTSPClient::m_lastReturnValue
private

Definition at line 86 of file RsRtspClient.h.

MemoryPool* RsRTSPClient::m_memPool
private

Definition at line 93 of file RsRtspClient.h.

TaskScheduler* RsRTSPClient::m_scheduler
private

Definition at line 95 of file RsRtspClient.h.

StreamClientState RsRTSPClient::m_scs
private

Definition at line 82 of file RsRtspClient.h.

int RsRTSPClient::m_streamCounter
staticprivate

Definition at line 87 of file RsRtspClient.h.

std::map<long long int, RsMediaSubsession*> RsRTSPClient::m_subsessionMap
private

Definition at line 85 of file RsRtspClient.h.

std::vector<rs2_video_stream> RsRTSPClient::m_supportedProfiles
private

Definition at line 84 of file RsRtspClient.h.

std::mutex RsRTSPClient::m_taskSchedulerMutex
private

Definition at line 98 of file RsRtspClient.h.


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


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:32