Remove GetScalabilityMode2.
Change-Id: Ibe3162dbcaca31c3c22df0fdc8fe55b78ad7990b Bug: b/327381318 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/342400 Commit-Queue: Jeremy Leconte <jleconte@google.com> Reviewed-by: Henrik Andreassson <henrika@webrtc.org> Cr-Commit-Position: refs/heads/main@{#41878}
This commit is contained in:
parent
793add9dfb
commit
83d29d5988
@ -36,16 +36,4 @@ absl::optional<ScalabilityMode> SimulcastStream::GetScalabilityMode() const {
|
||||
return scalability_modes[numberOfTemporalLayers - 1];
|
||||
}
|
||||
|
||||
absl::optional<ScalabilityMode> SimulcastStream::GetScalabilityMode2() const {
|
||||
static const ScalabilityMode scalability_modes[3] = {
|
||||
ScalabilityMode::kL1T1,
|
||||
ScalabilityMode::kL1T2,
|
||||
ScalabilityMode::kL1T3,
|
||||
};
|
||||
if (numberOfTemporalLayers < 1 || numberOfTemporalLayers > 3) {
|
||||
return absl::nullopt;
|
||||
}
|
||||
return scalability_modes[numberOfTemporalLayers - 1];
|
||||
}
|
||||
|
||||
} // namespace webrtc
|
||||
|
||||
@ -23,8 +23,6 @@ struct SimulcastStream {
|
||||
// setting to ScalabilityMode.
|
||||
unsigned char GetNumberOfTemporalLayers() const;
|
||||
absl::optional<ScalabilityMode> GetScalabilityMode() const;
|
||||
// TODO(b/327381318): Rename to GetScalabilityMode.
|
||||
absl::optional<ScalabilityMode> GetScalabilityMode2() const;
|
||||
void SetNumberOfTemporalLayers(unsigned char n);
|
||||
|
||||
int width = 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user