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

Minor changes to width/height config members. #186

Merged
merged 2 commits into from
Apr 23, 2021

Conversation

chcunningham
Copy link
Collaborator

@chcunningham chcunningham commented Apr 21, 2021

For VideoDecoderConfig, the coded size attributes are no longer
required. They only serve as a hint for the UA to create an approriate
underlying decoder (e.g. hardware accelerated for higher resolutions)
and are not strictly required. Fixes #94.

For VideoEncoderConfig, cropWidth and cropHeight are renamed to simply
be width and height. The crop prefix was added in #113 as I realized
that we were describing the "crop" size of the encoded VideoFrames. But
I now think this risks giving the impression that the encoder is going
to crop frames. Being intuitive is more important than being pedantic.


Preview | Diff

For VideoDecoderConfig, the coded size attributes are no longer
required. They only serve as a hint for the UA to create an approriate
underlying decoder (e.g. hardware accelerated for higher resolutions)
and are not strictly required. Fixes #94.

For VideoEncoderConfig, cropWidth and cropHeight are renamed to simply
be width and height. The crop prefix was added in #113 as I realized
that we were describing the "crop" size of the encoded VideoFrames. But
I now think this risks giving the impression that the encoder is going
to crop frames. Being intuitive is more important than being pedantic.
@chcunningham chcunningham requested review from padenot and aboba April 21, 2021 05:55
@chcunningham
Copy link
Collaborator Author

@padenot I'll go ahead and land this very minor edit w/ just Bernard's approval. Happy to address any feedback you may have in a follow up.

@chcunningham chcunningham merged commit 464f905 into main Apr 23, 2021
@chcunningham chcunningham deleted the minor_change_config_sizes branch April 23, 2021 21:10
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.

It's hard to set size(width/height) information in VideoDecoderConfig
2 participants