RsSimpleRTPSink.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2020 Intel Corporation. All Rights Reserved.
3 
4 #pragma once
5 
6 #include "RsDevice.hh"
7 #include "liveMedia.hh"
9 
10 class RsSimpleRTPSink : public SimpleRTPSink
11 {
12 public:
13  static RsSimpleRTPSink* createNew(UsageEnvironment& env,
14  Groupsock* RTPgs,
15  unsigned char rtpPayloadFormat,
16  unsigned rtpTimestampFrequency,
17  char const* sdpMediaTypeString,
18  char const* rtpPayloadFormatName,
19  rs2::video_stream_profile& video_stream,
20  std::shared_ptr<RsDevice> device,
21  unsigned numChannels = 1,
22  Boolean allowMultipleFramesPerPacket = True,
23  Boolean doNormalMBitRule = True);
24 
25 protected:
26  RsSimpleRTPSink(UsageEnvironment& env,
27  Groupsock* RTPgs,
28  unsigned char rtpPayloadFormat,
29  unsigned rtpTimestampFrequency,
30  char const* sdpMediaTypeString,
31  char const* rtpPayloadFormatName,
32  rs2::video_stream_profile& video_stream,
33  std::shared_ptr<RsDevice> device,
34  unsigned numChannels = 1,
35  Boolean allowMultipleFramesPerPacket = True,
36  Boolean doNormalMBitRule = True);
37 
38 private:
40  virtual char const* auxSDPLine(); // for the "a=fmtp:" SDP line
41 };
RsSimpleRTPSink(UsageEnvironment &env, Groupsock *RTPgs, unsigned char rtpPayloadFormat, unsigned rtpTimestampFrequency, char const *sdpMediaTypeString, char const *rtpPayloadFormatName, rs2::video_stream_profile &video_stream, std::shared_ptr< RsDevice > device, unsigned numChannels=1, Boolean allowMultipleFramesPerPacket=True, Boolean doNormalMBitRule=True)
static int numChannels(const std::string &encoding)
static RsSimpleRTPSink * createNew(UsageEnvironment &env, Groupsock *RTPgs, unsigned char rtpPayloadFormat, unsigned rtpTimestampFrequency, char const *sdpMediaTypeString, char const *rtpPayloadFormatName, rs2::video_stream_profile &video_stream, std::shared_ptr< RsDevice > device, unsigned numChannels=1, Boolean allowMultipleFramesPerPacket=True, Boolean doNormalMBitRule=True)
auto device
Definition: pyrs_net.cpp:17
virtual char const * auxSDPLine()


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