Skip to content

Minor changes to width/height config members. - #186

Merged
chcunningham merged 2 commits into
mainfrom
minor_change_config_sizes
Apr 23, 2021
Merged

chcunningham merged 2 commits into
mainfrom
minor_change_config_sizes

Conversation

@chcunningham

@chcunningham chcunningham commented Apr 21, 2021 •

Copy link
Copy Markdown
Collaborator

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 aboba and padenot April 21, 2021 05:55
@chcunningham

Copy link
Copy Markdown
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