Format almost everything.

This CL was generated by running

git ls-files | grep -P "(\.h|\.cc)$" | grep -v 'sdk/' | grep -v 'rtc_base/ssl_' | \
grep -v 'fake_rtc_certificate_generator.h' | grep -v 'modules/audio_device/win/' | \
grep -v 'system_wrappers/source/clock.cc' | grep -v 'rtc_base/trace_event.h' | \
grep -v 'modules/audio_coding/codecs/ilbc/' | grep -v 'screen_capturer_mac.h' | \
grep -v 'spl_inl_mips.h' | grep -v 'data_size_unittest.cc' | grep -v 'timestamp_unittest.cc' \
| xargs clang-format -i ; git cl format

Most of these changes are clang-format grouping and reordering includes
differently.

Bug: webrtc:9340
Change-Id: Ic83ddbc169bfacd21883e381b5181c3dd4fe8a63
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/144051
Commit-Queue: Jonas Olsson <jonasolsson@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#28505}
This commit is contained in:
Jonas Olsson
2019-07-05 19:08:33 +02:00
committed by Commit Bot
parent c93bfcfd2f
commit a4d873786f
1202 changed files with 2991 additions and 1995 deletions

View File

@ -15,7 +15,9 @@
#include "modules/audio_coding/codecs/isac/bandwidth_info.h"
typedef struct { void* dummy; } ISACFIX_MainStruct;
typedef struct {
void* dummy;
} ISACFIX_MainStruct;
#if defined(__cplusplus)
extern "C" {

View File

@ -9,6 +9,7 @@
*/
#include "modules/audio_coding/codecs/isac/fix/source/lpc_masking_model.h"
#include "system_wrappers/include/cpu_features_wrapper.h"
#include "test/gtest.h"

View File

@ -167,12 +167,10 @@ typedef struct {
uint32_t prevSendTime; /* Send time for previous packet, from RTP header */
uint32_t prevArrivalTime; /* Arrival time for previous packet (in ms using
timeGetTime()) */
uint16_t
prevRtpRate; /* rate of previous packet, derived from RTP timestamps (in
bits/s) */
uint32_t
lastUpdate; /* Time since the last update of the Bottle Neck estimate (in
samples) */
uint16_t prevRtpRate; /* rate of previous packet, derived from RTP timestamps
(in bits/s) */
uint32_t lastUpdate; /* Time since the last update of the Bottle Neck estimate
(in samples) */
uint32_t lastReduction; /* Time sinse the last reduction (in samples) */
int32_t countUpdates; /* How many times the estimate was update in the
beginning */
@ -197,9 +195,8 @@ typedef struct {
uint32_t sendBwAvg; /* The estimated bottle neck rate from here to there (in
bits/s) */
int32_t
sendMaxDelayAvg; /* The estimated mean absolute jitter value, as seen on
the other siee (in ms) */
int32_t sendMaxDelayAvg; /* The estimated mean absolute jitter value, as seen
on the other siee (in ms) */
int16_t countRecPkts; /* number of packets received since last update */
int16_t highSpeedRec; /* flag for marking that a high speed network has been
@ -308,8 +305,8 @@ typedef struct {
packet */
int16_t payloadLimitBytes60; /* Maximum allowed number of bits for a 30 msec
packet */
int16_t maxPayloadBytes; /* Maximum allowed number of bits for both 30 and 60
msec packet */
int16_t maxPayloadBytes; /* Maximum allowed number of bits for both 30 and 60
msec packet */
int16_t maxRateInBytes; /* Maximum allowed rate in bytes per 30 msec packet */
int16_t enforceFrameSize; /* If set iSAC will never change packet size */
@ -339,8 +336,8 @@ typedef struct {
} ISACFIX_SubStruct;
typedef struct {
int32_t lpcGains
[12]; /* 6 lower-band & 6 upper-band we may need to double it for 60*/
int32_t lpcGains[12]; /* 6 lower-band & 6 upper-band we may need to double it
for 60*/
/* */
uint32_t W_upper; /* Upper boundary of interval W */
uint32_t streamval;

View File

@ -8,9 +8,10 @@
* be found in the AUTHORS file in the root of the source tree.
*/
#include "modules/audio_coding/codecs/isac/main/include/audio_encoder_isac.h"
#include <limits>
#include "modules/audio_coding/codecs/isac/main/include/audio_encoder_isac.h"
#include "test/gtest.h"
namespace webrtc {

View File

@ -7,9 +7,10 @@
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
#include "modules/audio_coding/codecs/isac/main/include/isac.h"
#include <string>
#include "modules/audio_coding/codecs/isac/main/include/isac.h"
#include "test/gtest.h"
#include "test/testsupport/file_utils.h"

View File

@ -18,9 +18,8 @@
#ifndef MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_LPC_TABLES_H_
#define MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_LPC_TABLES_H_
#include "modules/audio_coding/codecs/isac/main/source/structs.h"
#include "modules/audio_coding/codecs/isac/main/source/settings.h"
#include "modules/audio_coding/codecs/isac/main/source/structs.h"
#define KLT_STEPSIZE 1.00000000
#define KLT_NUM_AVG_GAIN 0

View File

@ -16,6 +16,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <iostream>
/* include API */