Bug 1766646 - Vendor libwebrtc from 1e157a95966

Upstream commit: https://webrtc.googlesource.com/src/+/1e157a959662f4af2c9948b841691af33b3acf7e
    Remove more top-level const from parameters in function declarations

    This CL removes even more top-level const from parameters in function
    declarations. This change is safe because top-level const in function
    declarations (not function definitions) are ignored by the compiler
    and so change is just a no-op cleanup.

    Bug: webrtc:13610
    Change-Id: Icf6868c27b1fdb9d9915b3a7020eb34bdcf07a09
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/249989
    Reviewed-by: Harald Alvestrand <hta@webrtc.org>
    Commit-Queue: Ali Tofigh <alito@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#35866}
This commit is contained in:
Michael Froman 2022-07-09 16:47:54 -05:00 коммит произвёл Connor Sheehan
Родитель 93a3a3b16c
Коммит 1244141941
14 изменённых файлов: 27 добавлений и 26 удалений

3
third_party/libwebrtc/README.moz-ff-commit поставляемый
Просмотреть файл

@ -11136,3 +11136,6 @@ e804e60be0f
# MOZ_LIBWEBRTC_SRC=/home/mfroman/git-checkouts/trial-webrtc-builds/moz-libwebrtc-checkout/src MOZ_LIBWEBRTC_COMMIT=mjfdev bash dom/media/webrtc/third_party_build/fast-forward-libwebrtc.sh
# base of lastest vendoring
b6653d99676
# MOZ_LIBWEBRTC_SRC=/home/mfroman/git-checkouts/trial-webrtc-builds/moz-libwebrtc-checkout/src MOZ_LIBWEBRTC_COMMIT=mjfdev bash dom/media/webrtc/third_party_build/fast-forward-libwebrtc.sh
# base of lastest vendoring
1e157a95966

2
third_party/libwebrtc/README.mozilla поставляемый
Просмотреть файл

@ -7434,3 +7434,5 @@ libwebrtc updated from /home/mfroman/git-checkouts/trial-webrtc-builds/moz-libwe
libwebrtc updated from /home/mfroman/git-checkouts/trial-webrtc-builds/moz-libwebrtc-checkout/src commit mjfdev on 2022-07-09T21:46:28.878030.
# python3 vendor-libwebrtc.py --from-local /home/mfroman/git-checkouts/trial-webrtc-builds/moz-libwebrtc-checkout/src --commit mjfdev libwebrtc
libwebrtc updated from /home/mfroman/git-checkouts/trial-webrtc-builds/moz-libwebrtc-checkout/src commit mjfdev on 2022-07-09T21:47:09.053276.
# python3 vendor-libwebrtc.py --from-local /home/mfroman/git-checkouts/trial-webrtc-builds/moz-libwebrtc-checkout/src --commit mjfdev libwebrtc
libwebrtc updated from /home/mfroman/git-checkouts/trial-webrtc-builds/moz-libwebrtc-checkout/src commit mjfdev on 2022-07-09T21:47:48.192620.

Просмотреть файл

@ -208,8 +208,7 @@ class VideoSendStream {
// Note: This starts stream activity if it is inactive and one of the layers
// is active. This stops stream activity if it is active and all layers are
// inactive.
virtual void UpdateActiveSimulcastLayers(
const std::vector<bool> active_layers) = 0;
virtual void UpdateActiveSimulcastLayers(std::vector<bool> active_layers) = 0;
// Starts stream activity.
// When a stream is active, it can receive, process and deliver packets.

Просмотреть файл

@ -33,7 +33,7 @@ class FixedLengthEncodingParametersV3 final {
static FixedLengthEncodingParametersV3 CalculateParameters(
uint64_t base,
const rtc::ArrayView<const uint64_t> values,
rtc::ArrayView<const uint64_t> values,
uint64_t value_bit_width,
bool values_optional);
static absl::optional<FixedLengthEncodingParametersV3> ParseDeltaHeader(

Просмотреть файл

@ -193,8 +193,7 @@ class FakeVideoSendStream final
void OnFrame(const webrtc::VideoFrame& frame) override;
// webrtc::VideoSendStream implementation.
void UpdateActiveSimulcastLayers(
const std::vector<bool> active_layers) override;
void UpdateActiveSimulcastLayers(std::vector<bool> active_layers) override;
void Start() override;
void Stop() override;
bool started() override { return IsSending(); }

Просмотреть файл

@ -24,9 +24,9 @@ int WebRtcIsac_EncLogisticMulti2(
Bitstr* streamdata, /* in-/output struct containing bitstream */
int16_t* dataQ7, /* input: data vector */
const uint16_t*
env, /* input: side info vector defining the width of the pdf */
const int N, /* input: data vector length */
const int16_t isSWB12kHz); /* if the codec is working in 12kHz bandwidth */
env, /* input: side info vector defining the width of the pdf */
int N, /* input: data vector length */
int16_t isSWB12kHz); /* if the codec is working in 12kHz bandwidth */
/* returns the number of bytes in the stream */
int WebRtcIsac_EncTerminate(
@ -38,15 +38,15 @@ int WebRtcIsac_DecLogisticMulti2(
Bitstr* streamdata, /* in-/output struct containing bitstream */
const uint16_t*
env, /* input: side info vector defining the width of the pdf */
const int16_t* dither, /* input: dither vector */
const int N, /* input: data vector length */
const int16_t isSWB12kHz); /* if the codec is working in 12kHz bandwidth */
const int16_t* dither, /* input: dither vector */
int N, /* input: data vector length */
int16_t isSWB12kHz); /* if the codec is working in 12kHz bandwidth */
void WebRtcIsac_EncHistMulti(
Bitstr* streamdata, /* in-/output struct containing bitstream */
const int* data, /* input: data vector */
const uint16_t* const* cdf, /* input: array of cdf arrays */
const int N); /* input: data vector length */
int N); /* input: data vector length */
int WebRtcIsac_DecHistBisectMulti(
int* data, /* output: data vector */
@ -54,7 +54,7 @@ int WebRtcIsac_DecHistBisectMulti(
const uint16_t* const* cdf, /* input: array of cdf arrays */
const uint16_t*
cdf_size, /* input: array of cdf table sizes+1 (power of two: 2^k) */
const int N); /* input: data vector length */
int N); /* input: data vector length */
int WebRtcIsac_DecHistOneStepMulti(
int* data, /* output: data vector */
@ -62,6 +62,6 @@ int WebRtcIsac_DecHistOneStepMulti(
const uint16_t* const* cdf, /* input: array of cdf arrays */
const uint16_t*
init_index, /* input: vector of initial cdf table search entries */
const int N); /* input: data vector length */
int N); /* input: data vector length */
#endif /* MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_ARITH_ROUTINES_H_ */

Просмотреть файл

@ -29,7 +29,7 @@ class AudioDeviceDataObserver {
size_t num_samples,
size_t bytes_per_sample,
size_t num_channels,
const uint32_t samples_per_sec) = 0;
uint32_t samples_per_sec) = 0;
virtual void OnRenderData(const void* audio_samples,
size_t num_samples,

Просмотреть файл

@ -49,7 +49,7 @@ class AlignmentMixer {
int selected_channel_ = 0;
size_t block_counter_ = 0;
void Downmix(const rtc::ArrayView<const std::vector<float>> x,
void Downmix(rtc::ArrayView<const std::vector<float>> x,
rtc::ArrayView<float, kBlockSize> y) const;
int SelectChannel(rtc::ArrayView<const std::vector<float>> x);
};

Просмотреть файл

@ -339,8 +339,8 @@ int16_t WebRtcAecm_CalcSuppressionGain(AecmCore* const aecm);
//
void WebRtcAecm_CalcEnergies(AecmCore* aecm,
const uint16_t* far_spectrum,
const int16_t far_q,
const uint32_t nearEner,
int16_t far_q,
uint32_t nearEner,
int32_t* echoEst);
///////////////////////////////////////////////////////////////////////////////

Просмотреть файл

@ -73,7 +73,7 @@ class DeviceInfoDS : public DeviceInfoImpl {
uint32_t productUniqueIdUTF8Length = 0);
int32_t GetWindowsCapability(
const int32_t capabilityIndex,
int32_t capabilityIndex,
VideoCaptureCapabilityWindows& windowsCapability);
static void GetProductId(const char* devicePath,

Просмотреть файл

@ -185,7 +185,7 @@ class VideoProcessor {
// lower layer frames, we merge and store the layer frames in this method.
const webrtc::EncodedImage* BuildAndStoreSuperframe(
const EncodedImage& encoded_image,
const VideoCodecType codec,
VideoCodecType codec,
size_t frame_number,
size_t simulcast_svc_idx,
bool inter_layer_predicted) RTC_RUN_ON(sequence_checker_);

Просмотреть файл

@ -47,9 +47,8 @@ class FecControllerDefault : public FecController {
uint8_t fraction_lost,
std::vector<bool> loss_mask_vector,
int64_t round_trip_time_ms) override;
void UpdateWithEncodedData(
const size_t encoded_image_length,
const VideoFrameType encoded_image_frametype) override;
void UpdateWithEncodedData(size_t encoded_image_length,
VideoFrameType encoded_image_frametype) override;
bool UseLossVectorMask() override;
float GetProtectionOverheadRateThreshold();

Просмотреть файл

@ -41,7 +41,7 @@ std::unique_ptr<VideoEncoderFactory> JavaToNativeVideoEncoderFactory(
// of ResolutionBitrateLimits.
std::vector<VideoEncoder::ResolutionBitrateLimits>
JavaToNativeResolutionBitrateLimits(JNIEnv* jni,
const jobjectArray j_bitrate_limits_array);
jobjectArray j_bitrate_limits_array);
} // namespace webrtc

Просмотреть файл

@ -74,8 +74,7 @@ class VideoSendStream : public webrtc::VideoSendStream {
void DeliverRtcp(const uint8_t* packet, size_t length);
// webrtc::VideoSendStream implementation.
void UpdateActiveSimulcastLayers(
const std::vector<bool> active_layers) override;
void UpdateActiveSimulcastLayers(std::vector<bool> active_layers) override;
void Start() override;
void Stop() override;
bool started() override;