Compare commits
12 Commits
cd3d5a7606
...
28c0e1731a
Author | SHA1 | Date | |
---|---|---|---|
28c0e1731a | |||
cbd8cb1959 | |||
6905472e9c | |||
d96a44ca92 | |||
e1adbd1c31 | |||
e4cabeb981 | |||
80b751e95e | |||
16412f2dd9 | |||
b599ed68f8 | |||
cc87a77917 | |||
fea80950c3 | |||
22aaec2c13 |
50
Android.bp
50
Android.bp
@ -148,6 +148,8 @@ cc_defaults {
|
||||
},
|
||||
riscv64: {
|
||||
},
|
||||
loongarch64: {
|
||||
},
|
||||
x86_64: {
|
||||
cflags: [
|
||||
"-mavx2",
|
||||
@ -351,6 +353,9 @@ cc_library_static {
|
||||
riscv64: {
|
||||
enabled: false,
|
||||
},
|
||||
loongarch64: {
|
||||
enabled: false,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@ -1844,6 +1849,9 @@ cc_library_static {
|
||||
riscv64: {
|
||||
enabled: false,
|
||||
},
|
||||
loongarch64: {
|
||||
enabled: false,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@ -1907,6 +1915,12 @@ cc_library_static {
|
||||
"common_audio/signal_processing/filter_ar_fast_q12.c",
|
||||
],
|
||||
},
|
||||
loongarch64: {
|
||||
srcs: [
|
||||
"common_audio/signal_processing/complex_bit_reverse.c",
|
||||
"common_audio/signal_processing/filter_ar_fast_q12.c",
|
||||
],
|
||||
},
|
||||
x86_64: {
|
||||
srcs: [
|
||||
"common_audio/signal_processing/complex_bit_reverse.c",
|
||||
@ -1940,6 +1954,9 @@ cc_library_static {
|
||||
riscv64: {
|
||||
enabled: false,
|
||||
},
|
||||
loongarch64: {
|
||||
enabled: false,
|
||||
},
|
||||
x86_64: {
|
||||
enabled: false,
|
||||
},
|
||||
@ -1974,6 +1991,9 @@ cc_library_static {
|
||||
riscv64: {
|
||||
enabled: false,
|
||||
},
|
||||
loongarch64: {
|
||||
enabled: false,
|
||||
},
|
||||
x86_64: {
|
||||
enabled: false,
|
||||
},
|
||||
@ -1999,6 +2019,9 @@ cc_library_static {
|
||||
riscv64: {
|
||||
enabled: false,
|
||||
},
|
||||
loongarch64: {
|
||||
enabled: false,
|
||||
},
|
||||
x86_64: {
|
||||
enabled: false,
|
||||
},
|
||||
@ -2029,6 +2052,9 @@ cc_library_static {
|
||||
riscv64: {
|
||||
enabled: false,
|
||||
},
|
||||
loongarch64: {
|
||||
enabled: false,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@ -2210,6 +2236,12 @@ cc_library_static {
|
||||
"-DHAVE_SSE42=0",
|
||||
],
|
||||
},
|
||||
loongarch64: {
|
||||
cflags: [
|
||||
"-DHAVE_MM_PREFETCH=0",
|
||||
"-DHAVE_SSE42=0",
|
||||
],
|
||||
},
|
||||
x86_64: {
|
||||
cflags: [
|
||||
"-DHAVE_MM_PREFETCH=1",
|
||||
@ -2260,6 +2292,12 @@ cc_library_static {
|
||||
"-DHAVE_SSE42=0",
|
||||
],
|
||||
},
|
||||
loongarch64: {
|
||||
cflags: [
|
||||
"-DHAVE_MM_PREFETCH=0",
|
||||
"-DHAVE_SSE42=0",
|
||||
],
|
||||
},
|
||||
x86_64: {
|
||||
cflags: [
|
||||
"-DHAVE_MM_PREFETCH=1",
|
||||
@ -2309,6 +2347,12 @@ cc_library_static {
|
||||
"-DHAVE_SSE42=0",
|
||||
],
|
||||
},
|
||||
loongarch64: {
|
||||
cflags: [
|
||||
"-DHAVE_MM_PREFETCH=0",
|
||||
"-DHAVE_SSE42=0",
|
||||
],
|
||||
},
|
||||
x86_64: {
|
||||
cflags: [
|
||||
"-DHAVE_MM_PREFETCH=1",
|
||||
@ -4361,6 +4405,9 @@ cc_library_static {
|
||||
riscv64: {
|
||||
enabled: false,
|
||||
},
|
||||
loongarch64: {
|
||||
enabled: false,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@ -5120,6 +5167,9 @@ cc_library_static {
|
||||
riscv64: {
|
||||
srcs: ["common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c"],
|
||||
},
|
||||
loongarch64: {
|
||||
srcs: ["common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c"],
|
||||
},
|
||||
x86_64: {
|
||||
srcs: ["common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c"],
|
||||
},
|
||||
|
@ -187,9 +187,10 @@ void ExtractStats(const cricket::VoiceReceiverInfo& info,
|
||||
{StatsReport::kStatsValueNameAccelerateRate, info.accelerate_rate},
|
||||
{StatsReport::kStatsValueNamePreemptiveExpandRate,
|
||||
info.preemptive_expand_rate},
|
||||
{StatsReport::kStatsValueNameTotalAudioEnergy, info.total_output_energy},
|
||||
{StatsReport::kStatsValueNameTotalAudioEnergy,
|
||||
static_cast<float>(info.total_output_energy)},
|
||||
{StatsReport::kStatsValueNameTotalSamplesDuration,
|
||||
info.total_output_duration}};
|
||||
static_cast<float>(info.total_output_duration)}};
|
||||
|
||||
const IntForAdd ints[] = {
|
||||
{StatsReport::kStatsValueNameCurrentDelayMs, info.delay_estimate_ms},
|
||||
@ -243,9 +244,10 @@ void ExtractStats(const cricket::VoiceSenderInfo& info,
|
||||
SetAudioProcessingStats(report, info.apm_statistics);
|
||||
|
||||
const FloatForAdd floats[] = {
|
||||
{StatsReport::kStatsValueNameTotalAudioEnergy, info.total_input_energy},
|
||||
{StatsReport::kStatsValueNameTotalAudioEnergy,
|
||||
static_cast<float>(info.total_input_energy)},
|
||||
{StatsReport::kStatsValueNameTotalSamplesDuration,
|
||||
info.total_input_duration}};
|
||||
static_cast<float>(info.total_input_duration)}};
|
||||
|
||||
RTC_DCHECK_GE(info.audio_level, 0);
|
||||
const IntForAdd ints[] = {
|
||||
@ -339,7 +341,8 @@ void ExtractStats(const cricket::VideoReceiverInfo& info,
|
||||
{StatsReport::kStatsValueNamePlisSent, info.plis_sent},
|
||||
{StatsReport::kStatsValueNameRenderDelayMs, info.render_delay_ms},
|
||||
{StatsReport::kStatsValueNameTargetDelayMs, info.target_delay_ms},
|
||||
{StatsReport::kStatsValueNameFramesDecoded, info.frames_decoded},
|
||||
{StatsReport::kStatsValueNameFramesDecoded,
|
||||
static_cast<int>(info.frames_decoded)},
|
||||
};
|
||||
|
||||
for (const auto& i : ints)
|
||||
@ -383,15 +386,19 @@ void ExtractStats(const cricket::VideoSenderInfo& info,
|
||||
info.encode_usage_percent},
|
||||
{StatsReport::kStatsValueNameFirsReceived, info.firs_rcvd},
|
||||
{StatsReport::kStatsValueNameFrameHeightSent, info.send_frame_height},
|
||||
{StatsReport::kStatsValueNameFrameRateInput, round(info.framerate_input)},
|
||||
{StatsReport::kStatsValueNameFrameRateInput,
|
||||
static_cast<int>(round(info.framerate_input))},
|
||||
{StatsReport::kStatsValueNameFrameRateSent, info.framerate_sent},
|
||||
{StatsReport::kStatsValueNameFrameWidthSent, info.send_frame_width},
|
||||
{StatsReport::kStatsValueNameNacksReceived, info.nacks_rcvd},
|
||||
{StatsReport::kStatsValueNameNacksReceived,
|
||||
static_cast<int>(info.nacks_rcvd)},
|
||||
{StatsReport::kStatsValueNamePacketsLost, info.packets_lost},
|
||||
{StatsReport::kStatsValueNamePacketsSent, info.packets_sent},
|
||||
{StatsReport::kStatsValueNamePlisReceived, info.plis_rcvd},
|
||||
{StatsReport::kStatsValueNameFramesEncoded, info.frames_encoded},
|
||||
{StatsReport::kStatsValueNameHugeFramesSent, info.huge_frames_sent},
|
||||
{StatsReport::kStatsValueNameFramesEncoded,
|
||||
static_cast<int>(info.frames_encoded)},
|
||||
{StatsReport::kStatsValueNameHugeFramesSent,
|
||||
static_cast<int>(info.huge_frames_sent)},
|
||||
};
|
||||
|
||||
for (const auto& i : ints)
|
||||
@ -780,19 +787,25 @@ StatsReport* LegacyStatsCollector::AddConnectionInfoReport(
|
||||
AddCandidateReport(remote_candidate_stats, false)->id());
|
||||
|
||||
const Int64ForAdd int64s[] = {
|
||||
{StatsReport::kStatsValueNameBytesReceived, info.recv_total_bytes},
|
||||
{StatsReport::kStatsValueNameBytesSent, info.sent_total_bytes},
|
||||
{StatsReport::kStatsValueNamePacketsSent, info.sent_total_packets},
|
||||
{StatsReport::kStatsValueNameRtt, info.rtt},
|
||||
{StatsReport::kStatsValueNameBytesReceived,
|
||||
static_cast<int64_t>(info.recv_total_bytes)},
|
||||
{StatsReport::kStatsValueNameBytesSent,
|
||||
static_cast<int64_t>(info.sent_total_bytes)},
|
||||
{StatsReport::kStatsValueNamePacketsSent,
|
||||
static_cast<int64_t>(info.sent_total_packets)},
|
||||
{StatsReport::kStatsValueNameRtt, static_cast<int64_t>(info.rtt)},
|
||||
{StatsReport::kStatsValueNameSendPacketsDiscarded,
|
||||
info.sent_discarded_packets},
|
||||
static_cast<int64_t>(info.sent_discarded_packets)},
|
||||
{StatsReport::kStatsValueNameSentPingRequestsTotal,
|
||||
info.sent_ping_requests_total},
|
||||
static_cast<int64_t>(info.sent_ping_requests_total)},
|
||||
{StatsReport::kStatsValueNameSentPingRequestsBeforeFirstResponse,
|
||||
info.sent_ping_requests_before_first_response},
|
||||
{StatsReport::kStatsValueNameSentPingResponses, info.sent_ping_responses},
|
||||
{StatsReport::kStatsValueNameRecvPingRequests, info.recv_ping_requests},
|
||||
{StatsReport::kStatsValueNameRecvPingResponses, info.recv_ping_responses},
|
||||
static_cast<int64_t>(info.sent_ping_requests_before_first_response)},
|
||||
{StatsReport::kStatsValueNameSentPingResponses,
|
||||
static_cast<int64_t>(info.sent_ping_responses)},
|
||||
{StatsReport::kStatsValueNameRecvPingRequests,
|
||||
static_cast<int64_t>(info.recv_ping_requests)},
|
||||
{StatsReport::kStatsValueNameRecvPingResponses,
|
||||
static_cast<int64_t>(info.recv_ping_responses)},
|
||||
};
|
||||
for (const auto& i : int64s)
|
||||
report->AddInt64(i.name, i.value);
|
||||
|
@ -194,7 +194,7 @@ void* GetProgramCounter(void* const vuc) {
|
||||
#elif defined(__e2k__)
|
||||
return reinterpret_cast<void*>(context->uc_mcontext.cr0_hi);
|
||||
#elif defined(__loongarch__)
|
||||
return reinterpret_cast<void*>(context->uc_mcontext.__pc);
|
||||
return reinterpret_cast<void*>(context->uc_mcontext.sc_pc);
|
||||
#else
|
||||
#error "Undefined Architecture."
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user