mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-12 21:30:45 +01:00
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:
parent
b6653d9967
commit
1e157a9596
12 changed files with 22 additions and 26 deletions
|
@ -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);
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -69,7 +69,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
|
||||
|
||||
|
|
|
@ -75,8 +75,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;
|
||||
|
|
Loading…
Reference in a new issue