Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: correctly map selected layers to simulcast layers #134

Open
wants to merge 2 commits into
base: m125_release
Choose a base branch
from

Conversation

holzgeist
Copy link

this partly fixes #133.
Quick summary:

  • on lower resolutions, simulcast only sends 2 (or even 1) layer.
  • The layers are ordered from low to high resolution (downscale factors 4, 2, 1)
  • previously, when only sending 2 layers (factors 2, 1), the layer with factor 2 was mapped to the layer with factor 4, i.e. scaled down again)
  • with this patch, the layers are mapped to the correct factor and not scaled down again

this partly fixes webrtc-sdk#133.
Quick summary:
- on lower resolutions, simulcast only sends 2 (or even 1) layer.
- The layers are ordered from low to high resolution (downscale factors 4, 2, 1)
- previously, when only sending 2 layers (factors 2, 1), the layer with factor 2
  was mapped to the layer with factor 4, i.e. scaled down again)
- with this patch, the layers are mapped to the correct factor and not scaled
  down again
encoder_config.simulcast_layers.size() is always >= layers.size(),
otherwise it not have worked before, so get rid of the (erronous) max
Copy link
Contributor

@davidliu davidliu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't think we can use this PR, as noted in the related issue:

#133 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Low resolution on some Android phones
2 participants