Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
M
mediasoup
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
聂卓夫
mediasoup
Commits
af04dc66
提交
af04dc66
authored
9月 27, 2017
作者:
José Luis Millán
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
C++ cleanup: cppcheck
上级
db8b6df8
隐藏空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
14 行增加
和
52 行删除
+14
-52
VP8.hpp
worker/include/RTC/Codecs/VP8.hpp
+1
-1
IceServer.hpp
worker/include/RTC/IceServer.hpp
+1
-1
CompoundPacket.hpp
worker/include/RTC/RTCP/CompoundPacket.hpp
+3
-0
RemoteBitrateEstimator.hpp
...ude/RTC/RemoteBitrateEstimator/RemoteBitrateEstimator.hpp
+0
-13
RemoteBitrateEstimatorAbsSendTime.hpp
...oteBitrateEstimator/RemoteBitrateEstimatorAbsSendTime.hpp
+0
-8
RemoteBitrateEstimatorSingleStream.hpp
...teBitrateEstimator/RemoteBitrateEstimatorSingleStream.hpp
+2
-4
RtpDataCounter.hpp
worker/include/RTC/RtpDataCounter.hpp
+3
-0
RtpDictionaries.hpp
worker/include/RTC/RtpDictionaries.hpp
+1
-1
Transport.hpp
worker/include/RTC/Transport.hpp
+1
-1
IceServer.cpp
worker/src/RTC/IceServer.cpp
+1
-1
Producer.cpp
worker/src/RTC/Producer.cpp
+1
-2
RemoteBitrateEstimatorAbsSendTime.cpp
...oteBitrateEstimator/RemoteBitrateEstimatorAbsSendTime.cpp
+0
-9
RemoteBitrateEstimatorSingleStream.cpp
...teBitrateEstimator/RemoteBitrateEstimatorSingleStream.cpp
+0
-11
没有找到文件。
worker/include/RTC/Codecs/VP8.hpp
浏览文件 @
af04dc66
...
...
@@ -88,7 +88,7 @@ namespace RTC
class
PayloadDescriptorHandler
:
public
RTC
::
Codecs
::
PayloadDescriptorHandler
{
public
:
PayloadDescriptorHandler
(
PayloadDescriptor
*
payloadDescriptor
);
explicit
PayloadDescriptorHandler
(
PayloadDescriptor
*
payloadDescriptor
);
~
PayloadDescriptorHandler
()
=
default
;
public
:
...
...
worker/include/RTC/IceServer.hpp
浏览文件 @
af04dc66
...
...
@@ -40,7 +40,7 @@ namespace RTC
};
public
:
IceServer
(
Listener
*
listener
,
std
::
string
usernameFragment
,
std
::
string
password
);
IceServer
(
Listener
*
listener
,
const
std
::
string
&
usernameFragment
,
const
std
::
string
&
password
);
void
Destroy
();
void
ProcessStunMessage
(
RTC
::
StunMessage
*
msg
,
RTC
::
TransportTuple
*
tuple
);
...
...
worker/include/RTC/RTCP/CompoundPacket.hpp
浏览文件 @
af04dc66
...
...
@@ -13,6 +13,9 @@ namespace RTC
{
class
CompoundPacket
{
public
:
CompoundPacket
()
=
default
;
public
:
const
uint8_t
*
GetData
()
const
;
size_t
GetSize
()
const
;
...
...
worker/include/RTC/RemoteBitrateEstimator/RemoteBitrateEstimator.hpp
浏览文件 @
af04dc66
...
...
@@ -46,7 +46,6 @@ namespace RTC
};
protected
:
static
const
int64_t
processIntervalMs
{
500
};
static
const
int64_t
streamTimeOutMs
{
2000
};
public
:
...
...
@@ -67,18 +66,6 @@ namespace RTC
// currently being received and of which the bitrate estimate is based upon.
virtual
bool
LatestEstimate
(
std
::
vector
<
uint32_t
>*
ssrcs
,
uint32_t
*
bitrateBps
)
const
=
0
;
virtual
void
SetMinBitrate
(
int
minBitrateBps
)
=
0
;
// (jmillan) borrowed from webrtc/modules/include/module.h.
//
// Returns the number of milliseconds until the module wants a worker
// thread to call Process.
// This method is called on the same worker thread as Process will
// be called on.
// TODO(tommi): Almost all implementations of this function, need to know
// the current tick count. Consider passing it as an argument. It could
// also improve the accuracy of when the next callback occurs since the
// thread that calls Process() will also have it's tick count reference
// which might not match with what the implementations use.
virtual
int64_t
TimeUntilNextProcess
()
=
0
;
// Process any pending tasks such as timeouts.
// Called on a worker thread.
virtual
void
Process
()
=
0
;
...
...
worker/include/RTC/RemoteBitrateEstimator/RemoteBitrateEstimatorAbsSendTime.hpp
浏览文件 @
af04dc66
...
...
@@ -63,7 +63,6 @@ namespace RTC
// This class relies on Process() being called periodically (at least once
// every other second) for streams to be timed out properly.
void
Process
()
override
;
int64_t
TimeUntilNextProcess
()
override
;
void
OnRttUpdate
(
int64_t
avgRttMs
,
int64_t
maxRttMs
)
override
;
void
RemoveStream
(
uint32_t
ssrc
)
override
;
bool
LatestEstimate
(
std
::
vector
<
uint32_t
>*
ssrcs
,
uint32_t
*
bitrateBps
)
const
override
;
...
...
@@ -137,13 +136,6 @@ namespace RTC
{
}
inline
int64_t
RemoteBitrateEstimatorAbsSendTime
::
TimeUntilNextProcess
()
{
static
const
int64_t
DisabledModuleTime
{
1000
};
return
DisabledModuleTime
;
}
inline
void
RemoteBitrateEstimatorAbsSendTime
::
OnRttUpdate
(
int64_t
avgRttMs
,
int64_t
/*maxRttMs*/
)
{
this
->
remoteRate
.
SetRtt
(
avgRttMs
);
...
...
worker/include/RTC/RemoteBitrateEstimator/RemoteBitrateEstimatorSingleStream.hpp
浏览文件 @
af04dc66
...
...
@@ -39,7 +39,6 @@ namespace RTC
const
RtpPacket
&
packet
,
uint32_t
transmissionTimeOffset
)
override
;
void
Process
()
override
;
int64_t
TimeUntilNextProcess
()
override
;
void
OnRttUpdate
(
int64_t
avgRttMs
,
int64_t
maxRttMs
)
override
;
void
RemoveStream
(
uint32_t
ssrc
)
override
;
bool
LatestEstimate
(
std
::
vector
<
uint32_t
>*
ssrcs
,
uint32_t
*
bitrateBps
)
const
override
;
...
...
@@ -80,7 +79,7 @@ namespace RTC
std
::
unique_ptr
<
AimdRateControl
>
remoteRate
;
Listener
*
observer
{
nullptr
};
int64_t
lastProcessTime
{
-
1
};
int64_t
processIntervalMs
{
0
};
int64_t
processIntervalMs
{
50
0
};
bool
umaRecorded
{
false
};
};
...
...
@@ -95,8 +94,7 @@ namespace RTC
}
inline
RemoteBitrateEstimatorSingleStream
::
RemoteBitrateEstimatorSingleStream
(
Listener
*
observer
)
:
incomingBitrate
(),
remoteRate
(
new
AimdRateControl
()),
observer
(
observer
),
processIntervalMs
(
RemoteBitrateEstimator
::
processIntervalMs
)
:
incomingBitrate
(),
remoteRate
(
new
AimdRateControl
()),
observer
(
observer
)
{
// assert(this->observer);
}
...
...
worker/include/RTC/RtpDataCounter.hpp
浏览文件 @
af04dc66
...
...
@@ -49,6 +49,9 @@ namespace RTC
class
RtpDataCounter
{
public
:
RtpDataCounter
()
=
default
;
public
:
void
Update
(
RTC
::
RtpPacket
*
packet
);
uint32_t
GetRate
(
uint64_t
now
);
...
...
worker/include/RTC/RtpDictionaries.hpp
浏览文件 @
af04dc66
...
...
@@ -160,7 +160,7 @@ namespace RTC
{
public
:
RtpCodecParameters
(){};
RtpCodecParameters
(
Json
::
Value
&
data
);
explicit
RtpCodecParameters
(
Json
::
Value
&
data
);
Json
::
Value
ToJson
()
const
;
...
...
worker/include/RTC/Transport.hpp
浏览文件 @
af04dc66
...
...
@@ -134,7 +134,7 @@ namespace RTC
RtpListener
rtpListener
;
struct
HeaderExtensionIds
headerExtensionIds
;
// Others (Mirroring).
MirroringOptions
mirroringOptions
;
MirroringOptions
mirroringOptions
{}
;
struct
sockaddr_storage
mirrorAddrStorage
{
};
...
...
worker/src/RTC/IceServer.cpp
浏览文件 @
af04dc66
...
...
@@ -15,7 +15,7 @@ namespace RTC
/* Instance methods. */
IceServer
::
IceServer
(
Listener
*
listener
,
std
::
string
usernameFragment
,
std
::
string
password
)
IceServer
::
IceServer
(
Listener
*
listener
,
const
std
::
string
&
usernameFragment
,
const
std
::
string
&
password
)
:
listener
(
listener
),
usernameFragment
(
std
::
move
(
usernameFragment
)),
password
(
std
::
move
(
password
))
{
...
...
worker/src/RTC/Producer.cpp
浏览文件 @
af04dc66
...
...
@@ -27,12 +27,11 @@ namespace RTC
struct
RtpMapping
&
rtpMapping
,
bool
paused
)
:
producerId
(
producerId
),
kind
(
kind
),
notifier
(
notifier
),
transport
(
transport
),
rtpParameters
(
rtpParameters
),
paused
(
paused
)
rtpParameters
(
rtpParameters
),
rtpMapping
(
rtpMapping
),
paused
(
paused
)
{
MS_TRACE
();
this
->
outputEncodings
=
this
->
rtpParameters
.
encodings
;
this
->
rtpMapping
=
rtpMapping
;
// Fill ids of well known RTP header extensions with the mapped ids (if any).
FillHeaderExtensionIds
();
...
...
worker/src/RTC/RemoteBitrateEstimator/RemoteBitrateEstimatorAbsSendTime.cpp
浏览文件 @
af04dc66
...
...
@@ -48,15 +48,6 @@ namespace RTC
return
keys
;
}
uint32_t
convertMsTo24Bits
(
int64_t
timeMs
)
{
uint32_t
time24Bits
=
static_cast
<
uint32_t
>
(((
static_cast
<
uint64_t
>
(
timeMs
)
<<
AbsSendTimeFraction
)
+
500
)
/
1000
)
&
0x00FFFFFF
;
return
time24Bits
;
}
bool
RemoteBitrateEstimatorAbsSendTime
::
IsWithinClusterBounds
(
int
sendDeltaMs
,
const
Cluster
&
clusterAggregate
)
{
...
...
worker/src/RTC/RemoteBitrateEstimator/RemoteBitrateEstimatorSingleStream.cpp
浏览文件 @
af04dc66
...
...
@@ -109,17 +109,6 @@ namespace RTC
}
}
int64_t
RemoteBitrateEstimatorSingleStream
::
TimeUntilNextProcess
()
{
MS_TRACE
();
if
(
this
->
lastProcessTime
<
0
)
return
0
;
// MS_ASSERT(this->processIntervalMs > 0);
return
this
->
lastProcessTime
+
this
->
processIntervalMs
-
DepLibUV
::
GetTime
();
}
void
RemoteBitrateEstimatorSingleStream
::
UpdateEstimate
(
int64_t
nowMs
)
{
MS_TRACE
();
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论