InputType Class Reference

Defines the input type used in the ZED SDK. Can be used to select a specific camera with ID or serial number, or a svo file. More...

Functions

 InputType ()
 
 InputType (const InputType &type)
 
void setFromCameraID (unsigned int id)
 
void setFromSerialNumber (unsigned int serial_number)
 
void setFromSVOFile (sl::String svo_input_filename)
 
void setFromStream (sl::String senderIP, unsigned short port=30000)
 

Detailed Description

Defines the input type used in the ZED SDK. Can be used to select a specific camera with ID or serial number, or a svo file.

Constructor and Destructor

◆ InputType() [1/2]

InputType ( )

Default constructor

◆ InputType() [2/2]

InputType ( const InputType type)

Copy constructor

Functions

◆ setFromCameraID()

void setFromCameraID ( unsigned int  id)

Set the input as the camera with specified id

◆ setFromSerialNumber()

void setFromSerialNumber ( unsigned int  serial_number)

Set the input as the camera with specified serial number

◆ setFromSVOFile()

void setFromSVOFile ( sl::String  svo_input_filename)

Set the input as the svo specified with the filename

◆ setFromStream()

void setFromStream ( sl::String  senderIP,
unsigned short  port = 30000 
)

Set the input as the stream defined by the IP and the port of the sending device

Note
the following notes are only available for v2.8.5 and up. Previously, the internal port used to receive stream was randomly choosen between a list of available ports.
Since 2.8.5: Internally, the receiving part will try to use the same port number. If the port number is already taken by a process, the session will retry on port + 2, +4, +6, ..... Therefore the internal port used to receive the stream will be the closest upper port available.
the protocol used for the streaming module is based on RTP/RTCP. Port must be even number, since the port+1 is used for control data.