LeviLamina
Loading...
Searching...
No Matches
RtpPacketizer.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/webrtc/VideoCodecType.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace webrtc { class RtpPacketToSend; }
11namespace webrtc { struct RTPVideoHeader; }
12// clang-format on
13
14namespace webrtc {
15
17public:
18 // RtpPacketizer inner types declare
19 // clang-format off
20 struct PayloadSizeLimits;
21 // clang-format on
22
23 // RtpPacketizer inner types define
24 struct PayloadSizeLimits {
25 public:
26 // member variables
27 // NOLINTBEGIN
32 // NOLINTEND
33
34 public:
35 // prevent constructor by default
36 PayloadSizeLimits& operator=(PayloadSizeLimits const&);
37 PayloadSizeLimits(PayloadSizeLimits const&);
38 PayloadSizeLimits();
39 };
40
41public:
42 // virtual functions
43 // NOLINTBEGIN
44 virtual ~RtpPacketizer() = default;
45
46 virtual uint64 NumPackets() const = 0;
47
48 virtual bool NextPacket(::webrtc::RtpPacketToSend*) = 0;
49 // NOLINTEND
50
51public:
52 // static functions
53 // NOLINTBEGIN
54 MCNAPI static ::std::unique_ptr<::webrtc::RtpPacketizer> Create(
55 ::std::optional<::webrtc::VideoCodecType> type,
58 ::webrtc::RTPVideoHeader const& rtp_video_header
59 );
60
61 MCNAPI static ::std::vector<int>
63 // NOLINTEND
64
65public:
66 // virtual function thunks
67 // NOLINTBEGIN
68
69 // NOLINTEND
70};
71
72} // namespace webrtc
Definition _HeaderOutputPredefine.h:309
Definition RtpPacketToSend.h:16
Definition RtpPacketizer.h:16
static MCAPI ::std::vector< int > SplitAboutEqually(int payload_len, ::webrtc::RtpPacketizer::PayloadSizeLimits const &limits)
static MCAPI ::std::unique_ptr<::webrtc::RtpPacketizer > Create(::std::optional<::webrtc::VideoCodecType > type, ::rtc::ArrayView< uchar const > payload, ::webrtc::RtpPacketizer::PayloadSizeLimits limits, ::webrtc::RTPVideoHeader const &rtp_video_header)
Definition Alias.h:14
Definition RTPVideoHeader.h:12
Definition RtpPacketizer.h:24