Pleora Technologies Inc. eBUS SDK v6.2.8.5877 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 class PV_STREAM_API PvStreamRTP
15  : public PvStream
16 {
17 public:
18 
19  PvStreamRTP();
20  virtual ~PvStreamRTP();
21 
22  // Not supported with RTP
23  PvResult Open( const PvDeviceInfo *aDeviceInfo );
24  PvResult Open( const PvString &aInfo );
25 
26  // Explicitly set payload type
27  PvResult PrepareFor( uint32_t aWidth, uint32_t aHeight, PvPixelType aPixelType, uint16_t aPaddingX = 0 );
28  PvResult PrepareForH264();
29  PvResult ResetPayloadType();
30 
31  // Open methods
32  PvResult Open( const PvSessionInfoSDP *aSession, const PvString &aLocalIPAddress, uint16_t aLocalPort = 0 ); // From SDP
33  PvResult Open( const PvString &aLocalIpAddress, uint16_t aLocalPort ); // Unicast
34  PvResult Open( const PvString &aMulticastAddress, uint16_t aDataPort, const PvString &aLocalIpAddress ); // Multicast
35  PvResult OpenTCP( const PvString &aServerIpAddress, uint16_t aServerPort ); // TCP
36 
37  PvStreamType GetType() const;
38 
39  uint16_t GetLocalPort() const;
40  PvString GetLocalIPAddress() const;
41  PvString GetMulticastIPAddress() const;
42  PvString GetTCPServerIPAddress() const;
43  uint16_t GetTCPServerPort() const;
44 
45  uint32_t GetThreadPriority() const;
46  PvResult SetThreadPriority( uint32_t aPriority );
47 
48 private:
49 
50 private:
51 
52  // Not implemented
53  PvStreamRTP( const PvStreamRTP & );
54  const PvStreamRTP &operator=( const PvStreamRTP & );
55 };
56 
57 
58 #endif
PvResult
Result information.
Definition: PvResult.h:13
PvStream
Receive data from a GigE Vision or USB3 Vision transmitter.
Definition: PvStream.h:39
PvString
String class.
Definition: PvString.h:21
PvStreamRTP
Receive data from a RTP transmitter.
Definition: PvStreamRTP.h:14
PvSessionInfoSDP
Definition: PvSessionInfoSDP.h:17
PvPixelType
PvPixelType
Definition: PvPixelType.h:53
PvStream::GetType
virtual PvStreamType GetType() const
Returns whether the object is a GigE Vision or USB3 Vision stream receiver.
Definition: PvStream.cpp:259
PvDeviceInfo
Information identifying a device.
Definition: PvDeviceInfo.h:18

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