Pleora Technologies Inc. eBUS SDK v6.5.1.6797 API



PvStreamRTP.h
1 // *****************************************************************************
2 //
3 // Copyright (c) 2013, Pleora Technologies Inc., All rights reserved.
4 //
5 // *****************************************************************************
6 
7 #ifndef __PVSTREAMRTP_H__
8 #define __PVSTREAMRTP_H__
9 
10 #include <PvStream.h>
11 
12 class PvSessionInfoSDP;
13 
14 
22 class PV_STREAM_API PvStreamRTP
23  : public PvStream
24 {
25 public:
26 
30  PvStreamRTP();
31 
35  virtual ~PvStreamRTP();
36 
44  PvResult Open( const PvDeviceInfo *aDeviceInfo );
45 
53  PvResult Open( const PvString &aInfo );
54 
65  PvResult PrepareFor( uint32_t aWidth, uint32_t aHeight, PvPixelType aPixelType, uint16_t aPaddingX = 0 );
66 
72  PvResult PrepareForH264();
73 
79  PvResult ResetPayloadType();
80 
90  PvResult Open( const PvSessionInfoSDP *aSession, const PvString &aLocalIPAddress, uint16_t aLocalPort = 0 );
91 
100  PvResult Open( const PvString &aLocalIpAddress, uint16_t aLocalPort );
101 
111  PvResult Open( const PvString &aMulticastAddress, uint16_t aDataPort, const PvString &aLocalIpAddress );
112 
121  PvResult OpenTCP( const PvString &aServerIpAddress, uint16_t aServerPort );
122 
128  PvStreamType GetType() const;
129 
135  uint16_t GetLocalPort() const;
136 
142  PvString GetLocalIPAddress() const;
143 
149  PvString GetMulticastIPAddress() const;
150 
158  PvString GetTCPServerIPAddress() const;
159 
167  uint16_t GetTCPServerPort() const;
168 
174  uint32_t GetThreadPriority() const;
175 
192  PvResult SetThreadPriority( uint32_t aPriority );
193 
194 private:
195 
196 private:
197 
198  // Not implemented
199  PvStreamRTP( const PvStreamRTP & );
200  const PvStreamRTP &operator=( const PvStreamRTP & );
201 };
202 
203 
204 #endif
PvPixelType
Definition: PvPixelType.h:58
Information identifying a device.
Definition: PvDeviceInfo.h:27
Result information.
Definition: PvResult.h:30
A class to read every SDP attribute for a given session.
Definition: PvSessionInfoSDP.h:22
Receive data from a GigE Vision or USB3 Vision transmitter.
Definition: PvStream.h:51
virtual PvStreamType GetType() const
Returns whether the object is a GigE Vision or USB3 Vision stream receiver.
Definition: PvStream.cpp:206
Receive data from a RTP transmitter.
Definition: PvStreamRTP.h:24
String class.
Definition: PvString.h:26

Copyright (c) 2002-2024 Pleora Technologies Inc.
www.pleora.com